POST
/
workspaces
/
{workspace_id}
/
application_variables
curl --request POST \
  --url https://app.getcensus.com/api/v1/workspaces/{workspace_id}/application_variables \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "value": "<string>",
  "secret": true
}'
{
  "status": "success",
  "data": {
    "key": "<string>",
    "value": "<string>",
    "secret": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authorization using your Personal Access Token. Generate a new PAT on your user settings page.

Path Parameters

workspace_id
integer
required

ID of the workspace

Body

application/json

The key, value, and secret status of a workspace variable

Response

201
application/json
Successfully created workspace variable.

The response is of type object.