documents

Adds contributors to the specified document.

Adds contributors and grants them access to the document. Access for related entities is recalculated asynchronously. <Check title="Required Permissions" icon="key">The user must have at least write permission for the specified document.</Check>

post/documents/{documentId}/contributors

Request

  • Base URL: https://api.awork.com/api/v1
  • URL: https://api.awork.com/api/v1/documents/{documentId}/contributors
  • Auth: HTTP bearer

Path parameters

documentIdstring uuid required

The id of the document to add contributors to.

Request body

accessLevel'read' | 'manage' required

Determines the level of access granted to this contributor with respect to the referenced entity. Can be either set to read or manage.

userIdstring uuid required

The id of the user this contributor references.

Response

OK

idstring uuid

The id of the contributor.

userIdstring uuid

The id of the user this contributor references.

accessLevelstring nullable

Determines the level of access granted to this contributor with respect to the specific entity. Can be either set to read or manage.

Changes