Description
Adds a tenant variable to a project. A Secret default is stored encrypted and never returned.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
projectId |
body | string | yes | ID of the project. |
name |
body | string | yes | Variable name. Unique in the project, and not the name of a project variable or a workspace variable used in the project. |
variableType |
body | string | no | Text (default), Number, Boolean, Date, Secret, Script, Map or Json. |
isRequired |
body | boolean | no | true when every tenant must have a value (or the default is used). Defaults to false. |
defaultValue |
body | string | no | Used for tenants that don't have their own value. Must be valid for the type. |
description |
body | string | no | Explains what to fill in. |
sortOrder |
body | integer | no | Position in the list. Defaults to last. |
Errors
| Status | Meaning |
|---|---|
400 |
Invalid projectId, an unknown variableType, a name that is taken, or a default that is not valid for the type. |
401 |
Missing or invalid Basic auth credentials, or the service account can't edit this project. |