Add User
POST {{baseUrl}}/users
Add user to the organization with given role if not exists. Returns the user object in response.
Requires access_token
as a Bearer {{token}}
in the Authorization
header with user-write
scope.
Request Body
{"email"=>"<string>", "role"=>"<string>", "first_name"=>"<string>", "last_name"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | null | ||
Content-Type | string |
RESPONSES
status: Created
{"data":{"id":"5e9c204dbde1298f6bcb5ef2","first_name":"Example","last_name":"User","username_for_display":"user","email":"user@example.com","contact":{"dial_code":"","phone_number":""},"secondary_emails":null,"email_verified":false,"time_zone":"","title":"","bio":"","notification_rules":[{"type":"Email","time":0},{"type":"Push","time":0},{"type":"SMS","time":1},{"type":"Phone","time":2}],"user_image":false}}