Skip to Content
Environments

Update a given environment

PUT
/environments/{environment_id}

Path Parameters

environment_id*integer

The ID of the environment.

Range1 <= value

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Request Body

A JSON object containing the resource data

application/json
  1. body
id*integer

The unique ID of the given Environment.

type*EnvironmentType

Environment's type

Value in"development""production""staging"
name*string

The environment's name. Must not be greater than 60 characters.

description?string

The environment's description. Must not be greater than 255 characters.

Response Body

No Content

Example Request
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