AddWorksAuthorization
Creates a collaborative authorization record for a resource.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:AddWorksAuthorization |
create |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
The resource type. Valid values:
|
dashboard |
| ResourceId |
string |
Yes |
The resource ID. |
al*************7ufv |
| AuthorizedId |
string |
Yes |
The ID of the authorized object. For more information, see the description of AuthorizeScope. |
ASDAS-WDAS****ASDA |
| AuthorizeScope |
integer |
Yes |
The authorization scope. Valid values:
|
0 |
| ExpireDay |
string |
No |
The expiration date of the authorization. Format: yyyy-MM-dd. Example: 2022-02-16. Note: The authorization period must be at least N+1 days. This parameter is required when the AuthPoints parameter is not set to 11. |
2099-12-31 |
| AuthPoints |
integer |
Yes |
The type of granted permissions. Valid values:
|
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
78C1AA***************C462E57A95 |
| Result |
string |
The authorization ID. |
asdasf8****sda |
| Success |
boolean |
Indicates whether the request is 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.