Skip to main content

Update

PUT 

/content-generations/:contentGenerationId/records-collection

Update

Request

Path Parameters

    contentGenerationId int64required

    The Content Generation id.

Body

array

required

  • Array [

  • completion string
    has_upvote booleanrequired

    Whether the user upvoted the completion.

    id int64required
    is_accepted booleanrequired

    Whether the completion is accepted by the user.

  • ]

Responses

Found.

Schema

  • Array [

  • completion string
    content_generation_id int64required

    The parent content generation id.

    data object

    The data from knowledge graph after applying the graphql query.

    errors

    object[]

    The set of errors found for record.

  • Array [

  • levelEnum LevelEnum (string)

    Possible values: [RECOMMENDED, REQUIRED]

    The rule level.

    name string
    result string

    Possible values: [PASS, FAIL, SKIP, FIXED]

  • ]

  • has_upvote booleanrequired

    This indicates whether the user upvoted the completion.

    id int64
    is_accepted booleanrequired

    This indicates whether the completion is accepted by the user.

    modified_at date-time

    The last modified date-time.

    not_in_prompt_words string[]

    Words in completion that are not in the prompt.

    prompt stringrequired

    The prompt.

    repeated_words

    object

    Words in completion which are repeated.

    property name*

    WordRepetitionData

    Words in completion which are repeated.

    count int32
    repeated_in_same_sentence boolean
    status string

    Possible values: [accepted, warnings, errors, valid]

    The status of the record, whether it's accepted, with errors, with warnings or valid.

    validated_at date-time

    The last validation date-time.

    warnings

    object[]

    The set of errors found for record.

  • Array [

  • levelEnum LevelEnum (string)

    Possible values: [RECOMMENDED, REQUIRED]

    The rule level.

    name string
    result string

    Possible values: [PASS, FAIL, SKIP, FIXED]

  • ]

  • ]