Create a user
POST/v1/users
Invites a user to the account. The user is created as pending and emailed an invitation.
Request
Responses
- 201
- 401
- 403
- 422
User created
Response Headers
Location
Path of the created user, e.g. /v1/users/42.
Missing or invalid bearer token.
The public API is not enabled for this account (err_feature_not_enabled), the acting user is not allowed to manage users (requires the users:manage permission), or the API key lacks the users:write scope (err_insufficient_scope).
Validation failed. Error codes:
err_email_already_exists- a user with this email already existserr_user_license_exceeded- the account has no user licenses lefterr_time_zone_invalid-time_zoneis not a valid IANA timezone nameerr_role_not_found-role_idis not a role in the accounterr_reporting_manager_not_found-reporting_manager_idis not a user in the accounterr_reporting_manager_inactive-reporting_manager_idis not an active or pending usererr_department_not_found-department_idor ascoped_department_idsentry is not a department in the accounterr_office_not_found-office_idor ascoped_office_idsentry is not an office in the accounterr_scope_required- the role is scoped and neitherscoped_department_idsnorscoped_office_idswas sent