Create document permission
Creates a new permission assignment for a user or group within the document, granting them specific roles and access levels. Can also be used to request access to the document when the user doesn’t have editor or workspace manager permissions.
Authorization: Requires document editor or workspace manager permissions, unless requestPermission is true.
Parameters: Use requestPermission to indicate the user is requesting access to the resource.
Roles: Supports editor and viewer roles.
Documentation Index
Fetch the complete documentation index at: https://docs.credibledata.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the organization Standard identifier pattern for resource names
^[a-zA-Z0-9_-]+$The unique identifier of the workspace Standard identifier pattern for resource names
^[a-zA-Z0-9_-]+$The path to the document within the workspace Path pattern supporting slashes, dots, and dashes
^[a-zA-Z0-9_/.-]+$Query Parameters
Indicates that the user is requesting access to the resource
Body
Represents a permission assignment for a user or group within a document
A resource identifier that uniquely identifies either a user or a group within the system. This identifier is used throughout the API for permission management and access control.
Format:
- For users:
user:{email}oruser:{userId} - For groups:
group:{groupName}
^(user:[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}|group:[a-zA-Z0-9._-]+)$The role/permission level granted to the user or group
editor, viewer The permission level inherited from parent workspace
manager, viewer Optional message or note about the permission assignment
ISO 8601 timestamp indicating when the permission was created
ISO 8601 timestamp indicating when the permission was last modified
Response
Document permission created successfully
Represents a permission assignment for a user or group within a document
A resource identifier that uniquely identifies either a user or a group within the system. This identifier is used throughout the API for permission management and access control.
Format:
- For users:
user:{email}oruser:{userId} - For groups:
group:{groupName}
^(user:[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}|group:[a-zA-Z0-9._-]+)$The role/permission level granted to the user or group
editor, viewer The permission level inherited from parent workspace
manager, viewer Optional message or note about the permission assignment
ISO 8601 timestamp indicating when the permission was created
ISO 8601 timestamp indicating when the permission was last modified