curl --request PUT \
--url https://api.botpress.cloud/v1/admin/workspace-members/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-workspace-id: <x-workspace-id>' \
--data '
{
"role": "viewer"
}
'{
"id": "<string>",
"email": "<string>",
"createdAt": "<string>",
"role": "viewer",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"profilePicture": "<string>",
"displayName": "<string>"
}Update the member of a workspace
curl --request PUT \
--url https://api.botpress.cloud/v1/admin/workspace-members/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-workspace-id: <x-workspace-id>' \
--data '
{
"role": "viewer"
}
'{
"id": "<string>",
"email": "<string>",
"createdAt": "<string>",
"role": "viewer",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"profilePicture": "<string>",
"displayName": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Workspace ID
Whether the client supports bots with multiple instances of the same integration. Set to "true" to receive integration instances keyed by their alias instead of their id. This header will be removed in the future, and the API will always return multiple instances keyed by alias.
Workspace member ID
Workspace member metadata
viewer, billing, developer, manager, administrator, owner Was this page helpful?