v1

latestOpenAPI 3.0.0Proprietary2026-07-26316155742.7 KB
Variables

Create a variable

Create a new variable.

post/projects/{project_id}/variables

Path parameters

project_idstring required

Project ID

Headers

X-PhraseApp-OTPstring

Two-Factor-Authentication token (optional)

Request body

namestring required

Name of the variable

valuestring

Value of the variable

Example request

{
  "name": "MY_VARIABLE",
  "value": "Hello World"
}

Response

Created

namestring
valuestring
created_atstring date-time
updated_atstring date-time

Example response

{
  "name": "MY_VARIABLE",
  "value": "Hello World",
  "created_at": "2015-01-28T09:52:53Z",
  "updated_at": "2015-01-28T09:52:53Z"
}