v1

latestOpenAPI 3.1.02026-08-066984441.1 MB
documents

Adds a list of document teams to a document with the specified id.

Adding document teams will affect their access to the document. Recalculation of permissions for related entities considering the new document teams will be done in the background asynchronously.

        <Check title="Required Permissions" icon="key">The user must have at least `write` permissions for the specified document.</Check>
post/documents/{documentId}/teams

Path parameters

documentIdstring uuid required

The id of the document.

Headers

Authorizationstring required

Bearer authentication

Request body

accessLevel'read' | 'manage' required

Determines the level of access granted to this contributor or team with respect to the referenced entity. Can be either set to read or manage where read allows viewing the entity and manage allows full control over it (read, write and permission changes).

teamIdstring uuid required

The id of the team to be added.

Response

OK

idstring uuid

The id of the entity to team.

teamIdstring uuid

The id of the team this entity to team references.

accessLevelstring nullable

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