cURL
curl --request PATCH \ --url https://api.example.com/api/v1/workspaces/{workspace_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>" } '
{ "name": "<string>", "memberships": [ { "userId": "<string>", "workspaceId": "<string>", "privileges": [ "ROLE_WORKSPACE_OWNER" ], "id": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } ], "id": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"workspaceMemberships"
1 - 128
Successful Response
Show child attributes
ROLE_WORKSPACE_OWNER
ROLE_WORKSPACE_ADMIN
ROLE_WORKSPACE_MEMBER
Was this page helpful?