Skip to main content
POST
/
workspaces
/
{id}
/
members
/
{membershipId}
/
roles
/
{roleId}
/
add
Add role to workspace member
curl --request POST \
  --url https://api.wacht.dev/workspaces/{id}/members/{membershipId}/roles/{roleId}/add \
  --cookie session_id=
{
  "id": "333333333333333333",
  "workspace_id": "123456789012345678",
  "organization_membership_id": "777777777777777777",
  "user_id": "555555555555555555",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z"
}

Authorizations

session_id
string
cookie
required

Session-based authentication using cookies

Path Parameters

id
string<uint64>
required

Workspace ID

membershipId
string<uint64>
required

Membership ID

roleId
string<uint64>
required

Role ID

Response

Role added successfully

id
string<uint64>

Membership ID

Example:

"333333333333333333"

workspace_id
string<uint64>

Workspace ID

Example:

"123456789012345678"

organization_membership_id
string<uint64>

Parent organization membership ID

Example:

"777777777777777777"

user_id
string<uint64>

User ID

Example:

"555555555555555555"

created_at
string<date-time>
Example:

"2024-01-15T10:30:00Z"

updated_at
string<date-time>
Example:

"2024-01-15T10:30:00Z"