memberId
(path) - ID of the member-workspace linkField | Type | Required | Description |
---|---|---|---|
type | string | No | New member type |
role | number | No | New role ID |
status | string | No | New status (active , inactive , blocked ) |
From → To | Allowed | Notes |
---|---|---|
owner → any | ❌ | Owner cannot change type |
any → owner | ❌ | Use specific transfer endpoint |
full ↔ standard | ✅ | - |
viewer → full/standard | ✅ | - |
full/standard → viewer | ✅ | - |
v1_compatibility=true
:owner
or viewer
types is not allowedowner
or viewer
is not allowedfull
type ignores the role
field{
"type": "standard",
"role": 5
}
curl --location --request PUT 'https://api-develop.enspace.io/ws/members/' \
--header 'x-api-key: <api-key>' \
--header 'en-workspace: <api-key>' \
--header 'Content-Type: application/json' \
--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"
}