cURL
curl --request PUT \ --url https://api.dualship.run/api/v1/workspaces/{id}/members/{userId}/role \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "role_id": "<string>" } '
{ "id": "550e8400-e29b-41d4-a716-446655440000", "joined_at": "2024-01-15T10:30:00Z", "role": { "id": "550e8400-e29b-41d4-a716-446655440002", "name": "admin" }, "user": { "avatar_url": "https://cdn.example.com/avatar.png", "email": "[email protected]", "first_name": "John", "id": "550e8400-e29b-41d4-a716-446655440001", "last_name": "Doe" } }
Change a member’s role in a workspace (requires owner role)
JWT Bearer token authentication
Workspace ID
User ID
New role
Role updated
Workspace member information
"550e8400-e29b-41d4-a716-446655440000"
"2024-01-15T10:30:00Z"
Role information
Show child attributes
User information
Was this page helpful?