documentSpaces

Adds contributors to the specified document space.

Changed on

Adds contributors and changes their access to the document space and its documents.

<Check title="Required Permissions" icon="key">The user must be an admin.</Check>

post/documentspaces/{documentSpaceId}/contributors

Request

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

Path parameters

documentSpaceIdstring uuid required

The id of the document space.

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

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      api operation id PostDocumentSpaceContributorsByDocumentSpaceId removed and replaced with documentSpaces_PostDocumentSpaceContributorsByDocumentSpaceId