You can call this operation to update an application.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request headers

This operation uses common request headers, instead of special request headers. For more information, see the "Common request headers" section in "Common request and response headers."

Request syntax

PUT /pop/v1/wam/application HTTP/1.1

Request parameters

Parameter Type Required? Example Description
AppId String Yes wa-5d1af9c802470221ab7*****

The ID of the application to be updated.

AppDescription String No This is a updated Description

The description of the application.

Response parameters

Parameter Type Example Description
Application

The information about the application.

AppDescription String This is a updated Description

The description of the application.

AppId String wa-5d1af9c802470221ab7*****

The ID of the application.

AppName String user1

The name of the application.

CategoryName String Java

The platform type of the application.

CreateTime Long 1562048968834

The time when the application was created.

CreateUsername String user1

The name of the user who created the application.

UpdateTime Long 1564139945132

The time when the application was last updated.

UpdateUsername String user1

The name of the user who last updated the application.

Code String OK

The response code. The value is OK if the request is successful.

Message String success

The response message. The value is success if the request is successful.

RequestId String 18A1F87E-591D-4491-90D5-2B101FA*****

The ID of the request.

Examples

Sample request


http://webplus.cn-hangzhou.aliyuncs.com/pop/v1/wam/application&<Common request parameters>
{
  "AppId":"wa-5d1af9c802470221ab7*****",
  "AppDescription":"This is a updated Description"
}

Sample success response

XML format

<UpdateApplicationResponse>
    <Message>success</Message>
    <RequestId>FBE82ECD-4200-4390-BEAC-B1CCF14*****</RequestId>
    <Application>
        <CategoryName>Java</CategoryName>
        <UpdateUsername>user1</UpdateUsername>
        <CreateUsername>user1</CreateUsername>
        <CreateTime>1562048968834</CreateTime>
        <AppId>wa-5d1af9c802470221ab7*****</AppId>
        <AppDescription>This is a updated Description</AppDescription>
        <UpdateTime>1564139945498</UpdateTime>
        <AppName>user1</AppName>
    </Application>
    <Code>OK</Code>
</UpdateApplicationResponse>

JSON format

{
	"Message":"success",
	"Application":{
		"CategoryName":"Java",
		"UpdateUsername":"user1",
		"CreateUsername":"user1",
		"CreateTime":1562048968834,
		"AppId":"wa-5d1af9c802470221ab7*****",
		"UpdateTime":1564139945132,
		"AppDescription":"This is a updated Description",
		"AppName":"user1"
	},
	"RequestId":"DBF81777-FD55-4A42-818F-FBC2F3E*****",
	"Code":"OK"
}

Error codes

HTTP status code Error code Error message Description
403 ResourceAuthFailed The specified resource does not exist or it does not belong to this Alibaba Cloud account. The error message returned because the specified resource does not exist or it does not belong to your Alibaba Cloud account.
400 AppNotExist A corresponding application was not found based on the application ID. The error message returned because the application of the specified ID does not exist.

For more information about error codes, see API Error Center.