POST
Grant access to a project

Authorizations

Authorization
string
header
required

Bearer token for authentication. Format: 'Bearer {token}'

Headers

X-Workspace-Id
string

Workspace ID (uses default workspace if not provided)

Path Parameters

project_id
string
required

Project ID or UUID

Body

application/json

Grant access to a project

user_email
string

Email address of the workspace member to grant access to

role_name
string

Name of the workspace role to grant access to; everyone holding that role reaches the project

Response

Grant access to a project

Api_V1_Entities_ProjectRestriction model

id
integer<int32>
required

Access entry ID. Pass it to DELETE /projects/{project_id}/restrictions/{id} to remove the entry.

subject_type
string
required

Who the entry grants access to: "user" for a single workspace member, "role" for everyone holding a workspace role.

user_uuid
string
required

UUID of the granted member, null on role entries. Email addresses are not returned here; they are only accepted when creating an entry.

role_name
string
required

Name of the granted workspace role, null on member entries.