Skip to main content

PUT Update Environment

This API updates an environment linked to the environment identifier for any project

Updated this week

API Endpoint


{{apiUrl}}/api/v1/properties/environment/{{environmentIdentifier}}

Headers


To authenticate the API request, you need to provide the Vansah Connect Token that is generated from the Jira workspace's Vansah configuration page.

Authorization

{{vansahConnectToken}}


Generate a Token from Vansah

Request Path Parameter


  • environmentIdentifier (String, Required): The unique identifier (GUID) of the environment to be updated

Request Body Parameters


  1. name (String, Required): The name of the environment (e.g., "UAT").

  2. project (Object, Required): Contains project-related details.

    • key (String, Required): Workspace project key (e.g., "DEMO").

Example Request Body


{

"name": "UAT", //Required: Name of the environment, e.g, UAT

"project" :{

"key":"DEMO", // Required: Workspace Project Key is required when using vansah connect API token

}

}

Response Body Parameters


  1. success (Boolean, Required): Indicates whether the request was successful (true or false).

  2. message (String, Required): A message describing the result of the request (e.g., "Environment is updated successfully").

  3. data (Object, Required): Contains the updated details of the environment.

    • name (String, Required): The name of the environment.

    • identifier (String, Required): The unique identifier for the environment.

Example Response Body


{

"success": true,

"message": "Environment is Updated successfully",

"data": {

"identifier": "f94d0e7d-1edb-11ed-bdf2-ae827922bf87",

"name": "UAT"

}

}

Did this answer your question?