Editing an Environment in an Application
Function
This API is used to edit an environment in an application.
Calling Method
For details, see Calling APIs.
URI
PUT /v1/applications/{application_id}/environments/{environment_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
application_id |
Yes |
String |
Application ID |
|
environment_id |
Yes |
String |
Environment ID |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
Content-Type |
Yes |
String |
Message body type (format). |
|
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
name |
No |
String |
Environment name |
|
description |
No |
String |
Environment description |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
status |
String |
Request success or failure status |
|
id |
String |
Environment ID |
Example Requests
https://{endpoint}/v1/applications/8ddf0566c1784da29faac80516fa8425/environments/54e5b8b0d10148cc96142ac9d6c1c1f6
{
"description" : "description",
"name" : "newEnvironmentName"
}
Example Responses
Status code: 200
OK: The request is successful.
{
"status" : "success",
"id" : "54e5b8b0d10148cc96142ac9d6c1c1f6"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK: The request is successful. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.