PUT
/
components
curl --request PUT \
  --url https://api.dittowords.com/v1/components \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": {
    "signup_username": {
      "text": "Nom d'\''utilisateur",
      "status": "FINAL"
    },
    "signup_password": {
      "text": "Mot de passe"
    },
    "signup_register": {
      "text": "S'\''inscrire"
    }
  }
}'
{
  "componentsUpdated": 1,
  "componentsSkipped": 0
}

Authorizations

Authorization
string
header
required

Query Parameters

variant
string
required

The API ID of the variant.

Example:

"french"

format
enum<string>

Optional parameter to specify the format of the request body. Passing in this query parameter will validate the request body against the specified format preventing unexpected results if an invalid payload is provided.

Available options:
flat,
structured,
nested
Example:

"structured"

Body

application/json
data
object
required

Object that maps component API IDs to their new attributes.

Example:
{
  "signup_username": {
    "text": "Nom d'utilisateur",
    "status": "FINAL"
  }
}

Response

200 - application/json
Update/skip counts
componentsUpdated
number
required
componentsSkipped
number
required