documentSpaces

Updates a document space team's access.

Changed on

Updates the specified team's access to the document space and its documents.

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

put/documentspaces/{documentSpaceId}/teams/{documentSpaceToTeamId}

Request

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

Path parameters

documentSpaceIdstring uuid required

The id of the document space.

documentSpaceToTeamIdstring uuid required

The id of the document space to team connection.

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).

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.

Changes

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      api operation id PutDocumentSpaceTeamByDocumentSpaceIdAndDocumentSpaceToTeamId removed and replaced with documentSpaces_PutDocumentSpaceTeamByDocumentSpaceIdAndDocumentSpaceToTeamId