/v1/permissionItems/addItemspostAdd permission items to a workspace. Permission items define what actions entities (users, permission groups, or agent tokens) can or cannot perform on specific targets (files, folders, or workspace resources). Each permission item specifies: - A target (what resource the permission applies to) - An entity (who the permission applies to) - An action (what operation is being permitted/denied) - Access level (grant or deny)
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Access token Example: Bearer <token> |
Content-Type | string | Yes | HTTP JSON request content type Example: application/json |
Parameters for adding permission items to a workspace.
Input for creating a new permission item. Must specify target (targetId, filepath, folderpath, or workspaceRootname), entity, action, and access level.
| Field | Type | Required | Description |
|---|---|---|---|
Content-Type | string | Yes | HTTP JSON response content type Example: application/json |
Content-Length | string | Yes | HTTP response content length in bytes |