POST
/
api
/
organizations
/
{organizationId}
/
whitelabel
/
organizations
/
{innerOrganizationId}
/
members
White Label Admin - Add user to an organization
curl --request POST \
  --url https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/members \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "usernameOrEmail": "janjongboom",
  "role": "admin",
  "datasets": [
    "<string>"
  ]
}'
{
  "success": true,
  "error": "<string>"
}

Authorizations

x-api-key
string
header
required

Path Parameters

organizationId
integer
required

Organization ID

innerOrganizationId
integer
required

Organization ID within the context of a white label

Body

application/json
role
enum<string>
required
Available options:
admin,
member,
guest
datasets
string[]
required

Only used for 'guest' users. Limits the datasets the user has access to.

usernameOrEmail
string

Username or email of the user to be added to the project or organization. If no user is provided, the user ID attached to the JWT will be used.

Example:

"janjongboom"

Response

200 - application/json

OK

success
boolean
required

Whether the operation succeeded

error
string

Optional error description (set if 'success' was false)