Update Environment
PUT
/environments/{environment_uid}
Environments
{
"type": "object",
"properties": {
"environment": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 254,
"minLength": 1
},
"values": {
"type": "array",
"maxItems": 100,
"additionalItems": false,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 254,
"minLength": 1
},
"value": {
"type": "string",
"maxLength": 254,
"minLength": 1
},
"type": {
"type": "string"
},
"enabled": {
"type": "boolean"
}
},
"required": [
"key",
"value"
]
}
}
}
}
},
"required": [
"environment"
]
}
id
.Requires API Key as X-Api-Key
request header orapikey
URL query parameter.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.getpostman.com/environments/' \
--header 'Content-Type: application/json' \
--data-raw '{
"environment": {
"name": "New Name",
"values": [
{
"key": "name",
"value": "Bruce Wayne"
},
{
"key": "occupation",
"value": "Vigilante"
}
]
}
}'
Response Response Example
200 - Successful Response
{
"environment": {
"id": "357668d2-84f1-2264-438b-113095359f80",
"name": "New Name",
"uid": "631643-357668d2-84f1-2264-438b-113095359f80"
}
}
Request
Path Params
environment_uid
string
required
Body Params application/json
Responses
Modified at 2023-08-15 05:41:03