/v1/permissionItems/addItems
post
Path Parameters
Request Headers
HttpEndpointRequestHeaders_AuthRequired_JsonContentType

FieldTypeRequiredDescription
AuthorizationstringYes

Access token

Example: Bearer <token>

Content-TypestringYes

HTTP JSON request content type

Example: application/json

Request Query
Request Body
AddPermissionItemsEndpointParams

Parameters for adding permission items to a workspace.

{
workspaceId?: string
items: Array<PermissionItemInput>
}
PermissionItemInput

Input for creating a new permission item. Must specify target (targetId, filepath, folderpath, or workspaceRootname), entity, action, and access level.

{
targetId?: string | Array<string>
filepath?: string | Array<string>
folderpath?: string | Array<string>
workspaceRootname?: string
access: boolean
entityId: string | Array<string>
action: string | Array<string>
}
200 Response Headers
200 Response Body
4XX or 5XX Response Headers
HttpEndpointResponseHeaders_ContentType_ContentLength

FieldTypeRequiredDescription
Content-TypestringYes

HTTP JSON response content type

Example: application/json

Content-LengthstringYes

HTTP response content length in bytes

4XX or 5XX Response Body
EndpointErrorResult

Endpoint error result

{
errors?: Array<ExternalError>
}
ExternalError

{
message: string
}