memberId
(path) - ID do vínculo membro-workspaceCampo | Tipo | Obrigatório | Descrição |
---|---|---|---|
type | string | Não | Novo tipo de membro |
role | number | Não | Novo ID do papel/cargo |
status | string | Não | Novo status (active , inactive , blocked ) |
De → Para | Permitido | Observações |
---|---|---|
owner → qualquer | ❌ | Owner não pode mudar de tipo |
qualquer → owner | ❌ | Use endpoint específico de transferência |
full ↔ standard | ✅ | - |
viewer → full/standard | ✅ | - |
full/standard → viewer | ✅ | - |
v1_compatibility=true
:owner
ou viewer
owner
ou viewer
full
ignora campo role
{
"type": "standard",
"role": 5,
}
inactive
remove acesso mas mantém o vínculocurl --location --request PUT 'https://api-develop.enspace.io/ws/members/' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--header 'en-workspace;' \
--data-raw '{
"type": "full",
"status": "active",
"role": 0
}'
{
"id": 0,
"created_at": "string",
"updated_at": "string",
"user": {
"id": 0,
"created_at": "string",
"email": "string",
"meta": {
"fname": "string",
"lname": "string"
}
},
"email": "string",
"type": "owner",
"role": 0,
"status": "active"
}