Skip to main content
POST
/
organizations
/
current
/
invitations
Invite user to organization
curl --request POST \
  --url https://app.azalt.co/api/v1/organizations/current/invitations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "assignedSiteIds": [
    "<string>"
  ],
  "role": "COLLECTOR"
}
'
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string<email>
required
assignedSiteIds
string[]
required
Minimum array length: 1
role
enum<string>
default:COLLECTOR
Available options:
COLLECTOR,
APPROVER,
VIEWER,
MANAGER,
OWNER

Response

Successful response

success
boolean
required
message
string
required