English
cURL
curl "https://api.phrase.com/v2/projects/:project_id/variables/:name" \ -u USERNAME_OR_ACCESS_TOKEN \ -X PATCH \ -d '{"name":"MY_VARIABLE","value":"Hello World"}' \ -H 'Content-Type: application/json'
{ "name": "MY_VARIABLE", "value": "Hello World", "created_at": "2015-01-28T09:52:53Z", "updated_at": "2015-01-28T09:52:53Z" }
Update an existing variable.
Enter your token in the format token TOKEN
token TOKEN
Two-Factor-Authentication token (optional)
Project ID
name
Name of the variable
"MY_VARIABLE"
Value of the variable
"Hello World"
OK
Was this page helpful?