Skip to main content

Update

Update

Path Parameters
    id int64 required

    The Content Generation id.

Request Body required
    account_id int64 required

    The account id bound to this content generation.

    deleted boolean

    Default value: false

    The deleted flag.

    graphql_query string required

    The GraphQL query which will be used to import entity data from the Knowledge Graph.

    max_tokens int32

    Possible values: <= 2000

    Default value: 64

    The maximum number of tokens.

    min_words int32

    Default value: 0

    Minimum amount of words per completion.

    model_id int64

    Possible values: >= 1

    Default value: 1

    The model ID.

    name string required

    Possible values: <= 250 characters

    The model name.

    penalty double

    Possible values: >= 0.5 and <= 1.9

    Default value: 0.5

    The penalty score.

    prompt_template string

    The prompt template.

    stop string

    Default value: ###

    The stop sequence.

    temperature double

    Possible values: >= 0.4 and <= 0.8

    Default value: 0.4

    The temperature score.

    words_to_ignore string[]

    Words to ignore when checking for words not in prompt.

Responses

Update


Schema
    account_id int64 required

    The Account id bound to this Content Generation.

    created_at date-time

    The create date-time.

    deleted boolean required

    Default value: false

    True if the project has been deleted.

    deleted_at date-time

    The delete date-time.

    graphql_query string required

    The GraphQL query which will be used to import entity data from the Knowledge Graph.

    id int64

    The unique id.

    max_tokens int32

    Possible values: <= 2000

    Default value: 64

    The maximum number of tokens.

    min_words int32

    Minimum amount of words per completion

    model_id int64

    Possible values: >= 1

    Default value: 1

    The model ID.

    modified_at date-time

    The last modified date-time.

    name string required

    Possible values: <= 250 characters

    The name.

    penalty double

    Possible values: >= 0.5 and <= 1.9

    Default value: 0.5

    The penalty score.

    prompt_template string

    The prompt template.

    stop string

    Default value: ###

    The stop sequence.

    temperature double

    Possible values: >= 0.4 and <= 0.8

    Default value: 0.4

    The temperature score.

    words_to_ignore string[]

    Words to ignore when checking for words not in prompt.

PUT /content-generations/:id

Authorization

name: security_oauth2type: oauth2flows: {
  "authorizationCode": {
    "authorizationUrl": "https://s.wordlift.io/oauth/authorize/",
    "scopes": {
      "basic": "basic scope"
    },
    "tokenUrl": "https://s.wordlift.io/oauth/token/"
  }
}

Request

Base URL
https://api.wordlift.io
Bearer Token
id — path required
Body required
{
"account_id": 0,
"deleted": false,
"graphql_query": "string",
"max_tokens": 64,
"min_words": 0,
"model_id": 1,
"name": "string",
"penalty": 0.5,
"prompt_template": "string",
"stop": "###",
"temperature": 0.4,
"words_to_ignore": [
"string"
]
}
curl / cURL
curl -L -X PUT 'https://api.wordlift.io/content-generations/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"account_id": 0,
"deleted": false,
"graphql_query": "string",
"max_tokens": 64,
"min_words": 0,
"model_id": 1,
"name": "string",
"penalty": 0.5,
"prompt_template": "string",
"stop": "###",
"temperature": 0.4,
"words_to_ignore": [
"string"
]
}'