メインコンテンツへスキップ
POST
Assign User Workspace Role

承認

Authorization
string
header
必須

OAuth 2.0 client credentials. Alternatively, you can authenticate with a personal access token (PAT) by sending Authorization: Basic base64(email:PAT).

Scopes

management:users:write

Write access to user resources.

パスパラメータ

id
string<uuid>
必須

User identifier (UUID).

workspace_id
string<uuid>
必須

Workspace identifier (UUID).

ボディ

application/json
role_id
string<uuid>
必須

Role to assign. Must exist in the organization.

レスポンス

Created. Returns the new workspace role assignment.

A workspace-scoped role assignment for a user.

id
string<uuid>

Assignment identifier.

user_id
string<uuid>

The user this workspace role is assigned to.

workspace_id
string<uuid>

The workspace this role is assigned to.

role_id
string<uuid>

The role identifier.

role_name
string

The name of the role.

role_type
enum<string>

system_role: built-in, non-modifiable. access_role: custom, fully manageable.

利用可能なオプション:
system_role,
access_role
granted_at
string<date-time>

ISO 8601 UTC.

granted_by
string<uuid>

The user who granted the workspace role.

最終更新日 2026年11月13日