See Stacksync in action with a solution architect. Book a demo ↗
Variables

Variables

Delete a variable

DELETE
/v1/workspaces/{workspace_id}/variables/{workflows_variable_id}

Delete a variable or secret; workflow steps referencing it no longer resolve it.

Authorization

Authorizationstringheaderrequired

Bearer <key>, where <key> is a workspace API key or a user API key. See Authentication.

Path Parameters

workspace_id*integer

The workspace. List the ones your key can reach with GET /v1/workspaces.

workflows_variable_id*string

The variable.

Formatuuid

Query Parameters

region*Regions

Region of the resource: besg (Europe) or usnv (United States), as GET /v1/regions lists them

Value in"besg""usnv"

Response Body

OK

application/json
  1. response
variable_id*Variable Id
variable_name*Variable Name
Delete a variable
curl -X DELETE 'https://api.stacksync.com/v1/workspaces/0/variables/497f6eca-6276-4993-bfeb-53cbbbba6f08?region=besg'
{  "variable_id": "<variable_id>",  "variable_name": "<variable_name>"}