Vai al contenuto principale
PATCH
/
workspaces
/
{workspaceId}
/
members
/
{memberId}
Aggiorna il ruolo di un membro
curl --request PATCH \
  --url https://api.altostrat.io/workspaces/{workspaceId}/members/{memberId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "role": "admin"
}'
{
  "user_id": "auth0|64f5a6b7c8d9e0f1a2b3c4d5",
  "workspace_id": "ws_a1b2c3d4e5f6g7h8",
  "role": "admin",
  "created_at": "2025-10-29T00:40:06.000000Z",
  "updated_at": "2025-10-29T00:40:06.000000Z"
}

Authorizations

Authorization
string
header
required

Inserisci il tuo JWT nel formato: Bearer {token}

Path Parameters

workspaceId
string
required

L'ID del workspace.

Example:

"ws_a1b2c3d4e5f6g7h8"

memberId
string
required

L'ID Utente Auth0 (sub) del membro del workspace.

Example:

"auth0|64f5a6b7c8d9e0f1a2b3c4d5"

Body

application/json
role
enum<string>
required

Il nuovo ruolo per il membro del workspace.

Opzioni disponibili:
owner,
admin,
viewer
Example:

"admin"

Response

Il ruolo del membro è stato aggiornato con successo.

user_id
string

L'identificatore univoco per l'utente (Auth0 sub).

Example:

"auth0|64f5a6b7c8d9e0f1a2b3c4d5"

workspace_id
string

L'ID del workspace a cui appartiene questa iscrizione.

Example:

"ws_a1b2c3d4e5f6g7h8"

role
enum<string>

Il ruolo dell'utente all'interno del workspace.

Opzioni disponibili:
owner,
admin,
viewer
Example:

"admin"

created_at
string<date-time>

La data e ora di aggiunta del membro.

Example:

"2025-10-29T00:40:06.000000Z"

updated_at
string<date-time>

La data e ora dell'ultimo aggiornamento del ruolo del membro.

Example:

"2025-10-29T00:40:06.000000Z"