Create a grant
Assign a permission to a principal — an organization, user, or API key — on a directory.
POST
Assigns a permission to a principal on the specified directory. If the principal already has a grant on this directory, the existing grant is updated. See directory access grants for the permission model.
Path parameters
The UUID of the owning organization.
The UUID of the directory to grant access on.
Request body
The type of principal receiving the grant. One of
organization, user, or api_key.The UUID of the principal — the organization ID, user ID, or API key ID depending on
principal_type.The permission to assign. One of
search, upload, or manage.