Request
REQUIRED SCOPES
VARIABLE_MANAGE
URL PARAMETERS
workspacerequiredstring
The human-readable ID of the workspaceExample: "my-company"
variable_idrequiredinteger
The ID of the variableExample: 123
POST PARAMETERS
urlread-onlystring
API endpoint to GET this objecthtml_urlread-onlystring
Web URL to view this object in Buddy.workskeyrequiredstring
The name of the variablevaluestring
The value of the variablesettableboolean
If set to true the variable value can be set by Buddy actionsrun_only_settableboolean
Available only if type=VAR. If set to true the variable value can be set by Buddy actions only for execution timeencryptedboolean
If set to true the variable value will be encrypted and hiddendescriptionstring
The optional description of the variableinit_pathstring
Initial path for the variabledefaultsstring
Default value for the variablefile_pathstring
Specifies where to copy the file on each run. Set if type is SSH_KEYfile_chmodstring
File permission set on copy to a container on each run. Set if type is SSH_KEYfile_placestring enum
Set if type is SSH_KEY. If it's NONE, the variable can be used as a parameter in an action. For CONTAINER, the given key is additionally copied to an action container on each runAllowed enum:
NONE,CONTAINERpasswordstring
Password for certificatespassphrasestring
Passphrase for encrypted SSH keyskey_identifierstring
GPG key identifierResponse
RESPONSE BODY
typestring enum
The type of the added variableAllowed enum:
VAR,FILE,SSH_KEY,IOS_KEYCHAIN,IOS_PROVISION_PROFILES,SSH_PUBLIC_KEY,GPG_KEYurlread-onlystring
API endpoint to GET this objecthtml_urlread-onlystring
Web URL to view this object in Buddy.worksidinteger
The ID of the variablekeyrequiredstring
The name of the variablevaluestring
The value of the variableencryptedboolean
If set to true the variable value will be encrypted and hiddendescriptionstring
The optional description of the variablesettableboolean
If set to true the variable value can be set by Buddy actionsprojectProjectView
pipelineShortPipelineView
Short representation of a pipelineactionActionIdView
Action referencesandboxSandboxIdView
Sandbox referenceenvironmentEnvironmentIdView
Environment referencerun_only_settableboolean
Available only if type=VAR. If set to true the variable value can be set by Buddy actions only for execution timeinit_pathstring
Initial path for the variabledefaultsstring
Default value for the variablefile_pathstring
Specifies where to copy the file on each run. Set if type is SSH_KEYfile_chmodstring
File permission set on copy to a container on each run. Set if type is SSH_KEYfile_placestring enum
Set if type is SSH_KEY. If it's NONE, the variable can be used as a parameter in an action. For CONTAINER, the given key is additionally copied to an action container on each runAllowed enum:
NONE,CONTAINERbinaryboolean
Whether the file is binarypublic_valuestring
Public value for SSH key type variableskey_fingerprintstring
Fingerprint of SSH keychecksumstring
Checksum of the variable valuepasswordstring
Password for certificatespassphrasestring
Passphrase for encrypted SSH keyskey_identifierstring
GPG key identifierLast modified on Jan 26, 2026
Request example
curl -X PATCH "https://api.buddy.works/workspaces/:workspace/variables/:variable_id" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"key": "API_TOKEN_UPDATED",
"value": "new-secret-token-value",
"encrypted": true,
"description": "Updated API token for external service",
"settable": true
}'