Call SetOwners to set the library and table owners.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | SetOwners |
The operation that you want to perform. Set the value to SetOwners . |
OwnerIds | String | Yes | 123, 456 |
The user ID that is set to Owner. Separate multiple user IDs with commas (,). |
OwnerType | String | Yes | DATABASE |
The Owner type. The values and descriptions are as follows:
|
ResourceId | String | Yes | 123 |
The resource ID, which points to different resources according to OwnerType. OwnerType and the corresponding resource ID are interpreted as follows:
|
Tid | Long | Yes | -1 |
The ID of the tenant. Note The tenant ID is taken from the avatar in the upper-right corner of the system. For
more information, see Tenant ID and Tenant .
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
ErrorCode | String | UnknownError |
The error code. |
ErrorMessage | String | UnknownError |
The error message. |
RequestId | String | A99CD576-1E18-4E86-931E-C3CCE56DC030 |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request is successful. Valid values:
|
Examples
Sample requests
http(s)://[Endpoint]/? Action=SetOwners &OwnerIds=123, 456 &OwnerType=DATABASE &ResourceId=123 &Tid=-1 &<common request parameters>
Sample success responses
XML
format
<RequestId>A99CD576-1E18-4E86-931E-C3CCE56DC030</RequestId> <Success>true</Success>
JSON
Format
{ "RequestId": "A99CD576-1E18-4E86-931E-C3CCE56DC030", "Success": true }
Error codes
Go to the Error Center For more information, see error codes.