cURL
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 } }
Create a new workspace variable in this workspace.
Bearer authorization using your Personal Access Token. Generate a new PAT on your user settings page.
ID of the workspace
The key, value, and secret status of a workspace variable
Keys cannot contain whitespaces
Whether this variable contains secret or sensitive information, like a password. Secret variables can only be used in secret connection credentials.
Successfully created workspace variable.
The outcome of the creation request
success
"success"
Show child attributes
Was this page helpful?