Adds an authorization for a work.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
The type of the work. Valid values:
|
dashboard |
| ResourceId |
string |
Yes |
The ID of the work. |
al*************7ufv |
| AuthorizedId |
string |
Yes |
The ID of the principal to be authorized. The AuthorizeScope parameter specifies the type of principal. |
ASDAS-WDAS****ASDA |
| AuthorizeScope |
integer |
Yes |
The type of the principal. Valid values:
|
0 |
| ExpireDay |
string |
No |
The expiration date for the permissions. Format: Note: This parameter is required if AuthPoints is not 11. The authorization must be valid for at least one day after the authorization date. |
2099-12-31 |
| AuthPoints |
integer |
Yes |
The permissions to grant. Valid values:
Note: If AuthPoints is set to 11, the authorization is permanent and the ExpireDay parameter is ignored. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
78C1AA***************C462E57A95 |
| Result |
string |
The authorization ID. |
asdasf8****sda |
| Success |
boolean |
Indicates whether the request was successful. |
true |
Examples
Success response
JSON format
{
"RequestId": "78C1AA***************C462E57A95",
"Result": "asdasf8****sda",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Internal.System.Error | An internal system error occurred. | An internal system error occurred. |
| 400 | Invalid.Parameter.Error | The parameter is invalid:%s. | invalid parameter: ${0}. |
| 400 | Work.Not.Exist | The work does not exist. | The work does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.