Grants a sub-account or Resource Access Management (RAM) user the permissions on one or more applications.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request header. For more information, see Common request parameters.

Request syntax

POST|DELETE|PUT /pop/v5/account/authorize_app HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
AppIds String Query Yes 5fdf50e8-*****;696-******

The ID of the application. Separate multiple application IDs with semicolons (;). If you set the value to null, you revoke the permissions on the application.

TargetUserId String Query Yes test@133434434****

The ID of the sub-account or RAM user to be authorized. The value of the parameter is in the sub-account name@ primary account UID format.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

Message String success

The returned message.

RequestId String E3DA95D3-**********

The ID of the request.


Sample requests

POST /pop/v5/account/authorize_app HTTP/1.1
Common request header
"AppIds": "5fdf50e8-*****;696-******",
"TargetUserId": "test@133434434****"

Sample success responses

XML format


JSON format

	"RequestId": "E3DA95D3-***********",
	"Code": "200",
	"Message": "success"

Error codes

For a list of error codes, visit the API Error Center.