CreateDataPermissions
Batch add permissions: - Dataset permissions
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
RAM authorization
No authorization for this operation. If you encounter issues with this operation, contact technical support.
Request parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| WorkspaceId | string | Yes | The unique identifier of the Alibaba Cloud Model Studio workspace. For more information, see Get workspaceId. | llm-xxx |
| DataType | string | Yes | The permission type. Currently, only `dataset` is supported. | dataset |
| DataId | string | Yes | A unique identifier for the permission. | SystemSearch.QuarkCommonNews |
| PermissionUserInfos | array<object> | Yes | The users to whom you want to assign permissions. | |
object | No | A user. | ||
| PermissionUserId | string | Yes | The user ID.
| 1 |
| PermissionUsername | string | No | The username. | xxx |
Response elements
Element | Type | Description | Example |
|---|---|---|---|
object | The response. | ||
| RequestId | string | The unique ID of the request. | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
| Success | boolean | Indicates whether the request was successful. A value of `true` indicates success. A value of `false` indicates failure. | true |
| Code | string | The status code. | NoData |
| Message | string | The error message. | success |
| HttpStatusCode | integer | The HTTP status code. | 200 |
Examples
Success response
JSON format
{
"RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
"Success": true,
"Code": "NoData",
"Message": "success",
"HttpStatusCode": 200
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.