Light Logo
Variables

Update a variable

Update the value of an existing variable by its key.

PATCH
/variables/{variable_key}
AuthorizationBearer <token>

In: header

Path Parameters

variable_keyVariable Key
valueValue

The new value of the variable.

Length1 <= length

Response Body

curl -X PATCH "https://api.wrift.ai/v1/variables/string" \  -H "Content-Type: application/json" \  -d '{    "value": "string"  }'
{
  "key": "string",
  "value": "string",
  "secret": true,
  "created_at": "2019-08-24T14:15:22Z"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}