Modifying an SMS Application
Function
This API is used to modify application information.
URI
PUT /v2/{project_id}/msgsms/apps/{id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| id | Yes | String | Primary key ID of the application. For details, see id in Table 5. |
| project_id | Yes | String | Project ID. For details, see Obtaining Account, User, and Project Information. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| Content-Type | Yes | String | Request body parameter type. This parameter must be set to application/json. |
| X-Auth-Token | Yes | String | User token. It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| app_name | Yes | String | Application name. |
| region | Yes | String | Region.
|
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| app_key | String | Application key. |
| app_name | String | Application name. |
| id | String | Primary key ID of the application. |
Request Example
PUT /v2/845ada5bc7444f1295cd517af0123da1/msgsms/apps/9e61f59c-1a6b-4ee5-9651-5bca450694b3
Host: 100.85.***.***:30300
Content-Type: application/json
X-Auth-Token:******
Content-Length: 148
{
"app_name":"auto_test7890",
"region":"intl"
} Response Example
{
"id": "******9c-1a6b-4ee5-9651-5bca450694b3",
"app_key": "******3baZf4c856O4Qrbqvui3K2",
"app_name": "auto_test7890"
} Returned Values
| Status Code | Description |
|---|---|
| 200 | OK |
| 201 | Created |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 500 | System error |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.