v2

latestOpenAPI 3.1.02026-07-262937191.0 MB
beta.libraries.accesses

Create or update an access level.

Given a library id, you can create or update the access level of an entity. You have to be owner of the library to share a library. An owner cannot change their own role. A library cannot be shared outside of the organization.

put/v1/libraries/{library_id}/share

Path parameters

library_idstring uuid required

Request body

org_idstring uuid nullable
level'Viewer' | 'Editor' required
share_with_uuidstring uuid required

The id of the entity (user, workspace or organization) to share with

share_with_type'User' | 'Workspace' | 'Org' required

The type of entity, used to share a library.

Response

Successful Response

library_idstring uuid required
user_idstring uuid nullable
org_idstring uuid required
rolestring required
share_with_typestring required
share_with_uuidstring uuid nullable required