Update for prompt
Send a list of word biases for this prompt. Existing words will be deleted.
Path Parameters
contentGenerationId int64 required
The Content Generation id.
application/json
Request Body array
- Array [
- ]
bias int32 required
The bias.
word string required
Possible values: <= 1000 characters
The actual word.
Responses
- 201
- 401
- 404
Created
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
bias int32 required
The bias.
cluster string required
Possible values: <= 1000 characters
The cluster of the word.
content_generation_id int64 required
The content generation id.
created_at date-time
The create date-time.
id int64
The unique id.
modified_at date-time
The last modified date-time.
token_id string required
Possible values: <= 1000 characters
The token id for the word.
word string required
Possible values: <= 1000 characters
The actual word.
[
{
"bias": 0,
"cluster": "string",
"content_generation_id": 0,
"created_at": "2025-05-20T15:55:41.047Z",
"id": 0,
"modified_at": "2025-05-20T15:55:41.047Z",
"token_id": "string",
"word": "string"
}
]
Authentication Failure
Not Found
PUT /content-generations/:contentGenerationId/words
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
Request
curl / cURL
curl -L -X PUT 'https://api.wordlift.io/content-generations/:contentGenerationId/words' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '[
{
"bias": 0,
"word": "string"
}
]'
python / requests
curl -L -X PUT 'https://api.wordlift.io/content-generations/:contentGenerationId/words' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '[
{
"bias": 0,
"word": "string"
}
]'
nodejs / axios
curl -L -X PUT 'https://api.wordlift.io/content-generations/:contentGenerationId/words' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '[
{
"bias": 0,
"word": "string"
}
]'
php / cURL
curl -L -X PUT 'https://api.wordlift.io/content-generations/:contentGenerationId/words' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '[
{
"bias": 0,
"word": "string"
}
]'