Environments
Update a given environment
PUT
environment_id*integerThe ID of the environment.
Range
1 <= valueAccept*stringapplication/json
Content-Type*stringapplication/json
A JSON object containing the resource data
application/json- body
id*integerThe unique ID of the given Environment.
type*EnvironmentTypeEnvironment's type
Value in
"development""production""staging"name*stringThe environment's name. Must not be greater than 60 characters.
description?stringThe environment's description. Must not be greater than 255 characters.
No Content
curl -X PUT 'https://api.devopness.com/environments/123' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <your_api_token>' \ -H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \ -d '{ "id": 1, "type": "staging", "name": "My staging"}'Example Response
Empty