Update workspace object permissions
post
/20260430/aiDataPlatforms/{aiDataPlatformId}/workspaces/{workspaceKey}/objects/{objectKey}/actions/managePermission
Updates permissions on a workspace object.
Request
Path Parameters
-
aiDataPlatformId(required): string
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the AI Data Platform (Data Lake) instance.
-
objectKey(required): string
The key of the workspace object.
-
workspaceKey(required): string
The key of the Workspace
Header Parameters
-
if-match: string
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. The only valid characters for request IDs are letters, numbers, underscore, and dash.
The information to be updated.
Root Schema : ManageWorkspaceObjectPermissionDetails
Type:
objectInformation to update permissions on a workspace object.
Show Source
-
assignWorkspaceObjectPermissionDetails:
object AssignWorkspaceObjectPermissionDetails
The details of the permissions assigned on the workspace object to assignee.
-
revokeWorkspaceObjectPermissionDetails:
object RevokeWorkspaceObjectPermissionDetails
The details of the permissions revoked from assignees for a workspace object.
Nested Schema : AssignWorkspaceObjectPermissionDetails
Type:
objectThe details of the permissions assigned on the workspace object to assignee.
Show Source
-
assignees(required):
object PermissionAssignees
The information about the assignees
-
isPermissionsInheritable:
boolean
Default Value:
trueProperty to determine if permission should be inheritable or not, its default value is true. This is applicable only on workspace folders not on files. -
permissions(required):
array permissions
Maximum Number of Items:
100The permissions assigned to the assignees.
Nested Schema : RevokeWorkspaceObjectPermissionDetails
Type:
objectThe details of the permissions revoked from assignees for a workspace object.
Show Source
-
assignees(required):
object PermissionAssignees
The information about the assignees
-
isPermissionsInheritable:
boolean
Default Value:
trueProperty to determine that permission which should be removed is inheritable or not. This is applicable only on workspace folders not on files. -
permissions(required):
array permissions
Maximum Number of Items:
100The permissions revoked from the assignees.
Nested Schema : PermissionAssignees
Type:
objectThe information about the assignees
Show Source
-
targets(required):
array targets
The names/ocids of the users, groups or roles.
-
type(required):
string
Allowed Values:
[ "USER", "ROLE", "GROUP" ]Grantee type.
Nested Schema : permissions
Type:
arrayMaximum Number of Items:
100The permissions assigned to the assignees.
Show Source
-
Array of:
string
Allowed Values:
[ "READ", "USE", "MANAGE", "ADMIN" ]
Nested Schema : permissions
Type:
arrayMaximum Number of Items:
100The permissions revoked from the assignees.
Show Source
-
Array of:
string
Allowed Values:
[ "READ", "USE", "MANAGE", "ADMIN" ]
Response
Supported Media Types
- application/json
200 Response
The workspace object permissions are updated.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
400 Response
Bad Request (invalid query parameters, malformed headers, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
401 Response
Unauthorized (missing or expired credentials, and so on).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
404 Response
Not Found. The requested resource was not found.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
405 Response
Method Not Allowed. Request is recognized but not supported.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
412 Response
Precondition Failed (One or more conditions in request failed).
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
429 Response
Too Many Requests. Too many requests sent to the server in a short period.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
500 Response
Internal Server Error. The server encountered an unexpected condition preventing fulfilment of the request.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.
Default Response
Unknown Error. Error is not recognized by the system.
Headers
-
opc-request-id: string
Unique Oracle-assigned ID for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : Error
Type:
objectError information.
Show Source
-
code(required):
string
A short error code that defines the error, meant for programmatic parsing.
-
message(required):
string
A human-readable error message.