PUT
/
workspaces
/
{workspace_id}
/
application_variables
/
{variable_key}
curl --request PUT \
  --url https://app.getcensus.com/api/v1/workspaces/{workspace_id}/application_variables/{variable_key} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "value": "<string>"
}'
{
  "status": "updated",
  "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

variable_key
string
required

Key of the variable

Body

application/json

The new value for a workspace variable

value
required

Response

200
application/json
Successfully updated workspace variable.
status
enum<string>
required

The outcome of the update request

Available options:
updated
Example:

"updated"

data
object
required

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