PUT
/
textItems
curl --request PUT \
--url https://api.dittowords.com/v2/textItems \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"updates": [
{
"developerId": "greeting",
"text": "Hello!"
}
]
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Body

application/json
updates
object[]
required

Array of updates to text items. All text items must be in the same project

variantId
string

Developer ID of the target variant. If a text item does not already have the target variant, it will be added. Omit if targeting base text

forceVariantCreation
boolean

If true, and the provided variantId is not found, create the variant. A variant name will be generated based on the passed in ID.

Response

200 - application/json

Returns success status of the update operation

success
boolean
required

Indicates whether the update was successful