Create a project variable

POST https://{{base_url}}/v1/projects/{{project_uid}}/variables

The Create a project variable request lets you create a project variable in a project.

To use the API Request, you need to authenticate yourself with an Organization UID and Authtoken. Read more about it in Authentication.


For more information, refer to the Create a project variable API Reference document

Request Body

{"key"=>"Key3", "type"=>"text", "value"=>"password@1234"}

HEADERS

KeyDatatypeRequiredDescription
authtokenstringEnter your authtoken. Refer Authentication for more details.
organization_uidstringEnter the Organization UID.
Content-TypestringEnter "application/json" to pass a request body.