Submit First Admin User - POST /Users/FirstAdmin (v2.0 and up)



Define the first admin user.

Usage:

  1. POST /Users/FirstAdmin and define the first admin user
  2. GET /Users/FirstAdminExistence and confirm that a first admin user exists.

URL

/cxrestapi/auth/Users/FirstAdmin

Method:

POST

Media Type (header):

Authorization: Bearer <access token value>
Content-Type: application/json;v=1.0

Parameters

Required:

createUserModel=[body]: Specifies the first admin user details to define:
username=[string] - User name
password=[string] - User password
firstName=[string] - User first name
lastName=[string] - User last name
email=[string] - User email address

Success Response:

Code: 201 Success

Error Response:

Code: 400 Bad request
Code: 401 Unauthorized
Code: 403 Forbidden

Sample Response:

no content

Notes:

Returns location of the created user in the response header. If the request fails, it returns an error response.




Send Documentation Feedback - If you have comments about this documentation, you can contact the documentation team by sending your feedback to usWe appreciate your feedback!