You can call this operation to create 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

POST /pop/v1/wam/application HTTP/1.1

Request parameters

Parameter Type Required? Example Description
AppDescription String No This is an application

The description of the application to be created.

AppName String No app1

The name of the application to be created.

CategoryName String No Java

The platform type of the application to be created.

Response parameters

Parameter Type Example Description
Application

The information about the application.

AppDescription String This is an application

The description of the application.

AppId String wa-5d3ea7cf2977ca5251e*****

The ID of the application.

AppName String newApplication

The name of the application.

CategoryName String Java

The platform type of the application.

CreateTime Long 1562333864469

The time when the application was created.

CreateUsername String userName

The name of the user who created the application.

UpdateTime Long 1562333864469

The time when the application was last updated.

UpdateUsername String userName

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 BFD4C1BA-897D-4306-A79D-4D20D7E*****

The ID of the request.

Examples

Sample request


http://webplus.cn-hangzhou.aliyuncs.com/pop/v1/wam/application?ServiceCode=webx&<Common request parameters>
{
  "AppName","app1",
  "AppDescription","This is an application",
  "CategoryName","Java",
}

Sample success response

XML format

<CreateApplicationResponse>
      <Message>success</Message>
      <Application>
            <AppName>newApplication</AppName>
            <CategoryName>Java</CategoryName>
            <AppDescription>This is an application. </AppDescription>
            <UpdateUsername>yourUsername</UpdateUsername>
            <CreateUsername>yourUsername</CreateUsername>
            <CreateTime>1562333864469</CreateTime>
            <UpdateTime>1562333864469</UpdateTime>
            <AppId>wa-5d243437f314934e2ab*****</AppId>
      </Application>
      <RequestId>BFD4C1BA-897D-4306-A79D-4D20D7E*****</RequestId>
      <Code>OK</Code>
</CreateApplicationResponse>

JSON format

{
	"Message":"success",
	"Application":{
		"CategoryName":"Java",
		"UpdateUsername":"yourUsername",
		"CreateUsername":"yourUsername",
		"CreateTime":1564387279787,
		"AppId":"wa-5d3ea7cf2977ca5251e*****",
		"UpdateTime":1564387279787,
		"AppDescription":"app desc",
		"AppName":"newApplication"
	},
	"RequestId":"27BE2428-060D-47DB-8A3C-CD86A53*****",
	"Code":"OK"
}

Error codes

HTTP status code Error code Error message Description
404 CategoryNotExists The specified application category does not exist. The error message returned because the platform type specified for the application to be created does not exist. You may have specified an incorrect platform type or the parameter passed in may be invalid.
400 AppNameUsed The specified application name already exists in this region. Enter another application name. The error message returned because the name specified for the application to be created has been used in this region. Application names can be identical across different regions but must be unique in one region. Change the application name and try again.

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