Modifying an Environment
Function
This API is used to modify the information about a specified environment. Only the name and remark attributes of an environment can be modified.
URI
The following table lists the HTTP/HTTPS request method and URI of the API.
| Request Method | URI |
|---|---|
| PUT | /v1.0/apigw/envs/{id} |
The following table lists the parameter in the URI.
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| id | Yes | String | Environment ID, which can be obtained by querying the environment information |
Request
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | Yes | String | Environment name An environment name consists of 3–64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed. |
| remark | No | String | Description of the environment The description cannot exceed 255 characters. |
Example request:
{
"name": "DEVELOP",
"remark": "Development environment"
} Response
| Parameter | Type | Description |
|---|---|---|
| id | String | Environment ID |
| name | String | Environment name |
| create_time | Timestamp | Time when the environment is created |
| remark | String | Description of the environment |
Example response:
{
"id": "cca3616a-f368-4b32-9064-b2a631cb3eeb",
"name": "DEVELOP",
"remark": "Development environment",
"create_time": "2017-12-28T12:50:47Z"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 500 | Server Internal Error |
Last Article: Creating an Environment
Next Article: Deleting an Environment
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.