Description
Creates a workspace variable. Imported is not a valid type here - that mode only exists on the project side.
Parameters
| Name | In | Type | Required | Description |
workspaceId |
body |
string |
yes |
ID of the workspace. |
name |
body |
string |
yes |
Variable name. |
description |
body |
string |
no |
Optional description. |
variableType |
body |
string |
no |
Text (default), Sensitive, or Certificate. |
Errors
| Status | Meaning |
400 |
Invalid workspaceId, invalid variableType, or validation failure. |
401 |
Missing or invalid Basic auth credentials, or the service account lacks the required role. |