Field | Type | Required | Description |
---|---|---|---|
email | string | Yes | Email of the user to be added |
type | string | Yes | Member type: full , standard , or viewer |
role | number | No | ID of the role |
mgroups | array | No | IDs of the groups the member will be linked to (deprecated) |
fname | string | No | First name of the user to be added |
lname | string | No | Last name of the user to be added |
v1_compatibility | boolean | No | Enables v1 interface compatibility |
v1_compatibility=true
:full
, standard
owner
, viewer
full
member will have full access (ignores role)standard
member will be limited only by groups{
"email": "new.user@company.com",
"type": "standard"
}
curl --location --request POST '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 '{
"email": "rafaela.franco@bol.com.br",
"fname": "Rafaela",
"lname": "Franco",
"type": "full"
}'
{
"email": "juca@homail.com",
"type": "full",
"mgroups": [
300
],
"role": 3
}