Grant access to a project
Adds one subject — a workspace member or a workspace role — to the project’s access list. A project whose access list is empty is open to the whole workspace, so adding the first entry is what closes the project. Once closed it is reachable only by the listed members, everyone holding a listed role, the workspace owner and holders of the built-in admin role; a custom role never bypasses a restriction, whatever permissions it carries. Supply exactly one of user_email or role_name. Restricting projects is available on organization and enterprise workspaces only; elsewhere the request is refused with 422.
Authorizations
Bearer token for authentication. Format: 'Bearer {token}'
Headers
Workspace ID (uses default workspace if not provided)
Path Parameters
Project ID or UUID
Body
Response
Grant access to a project
Api_V1_Entities_ProjectRestriction model
Access entry ID. Pass it to DELETE /projects/{project_id}/restrictions/{id} to remove the entry.
Who the entry grants access to: "user" for a single workspace member, "role" for everyone holding a workspace role.
UUID of the granted member, null on role entries. Email addresses are not returned here; they are only accepted when creating an entry.
Name of the granted workspace role, null on member entries.

