Skip to navigation

Update workspace access for an asset

Beta

Update the workspace-level access on an asset. Needs edit access to the asset. Set ‘view’ or ‘edit’ to grant workspace-wide access, which also needs permission to share with the workspace. Set ‘none’ (or null) to remove the workspace-wide share, as DELETE does; removing a folder’s share also removes it from the assets inside the folder. People and groups the asset is shared with directly keep their access.

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

asset_idstringRequired
Unique identifier of the asset

Headers

X-Athena-Session-CredentialstringOptional

Request

This endpoint expects an object.
workspace_accessenum or nullRequired

Permission level to grant to the entire workspace: ‘view’ or ‘edit’. Set ‘none’ (or null) to remove the workspace-wide share; people the asset is shared with directly keep their access.

Allowed values:

Response

Workspace access updated successfully
asset_idstring
ID of the asset
workspace_accessstring

Workspace access level now on the asset: ‘view’, ‘edit’, or ‘none’ when the workspace-wide share was removed

Errors

403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error