What is API Url for creating user in AE server, what to put in request body

what is API Url for creating user in AE server, what to put in request body?

To create a tenant user in AutomationEdge Server, use the following API details:

API URL:
/aeengine/rest/tenants//users?ep=false

Replace with your AutomationEdge Server base URL and with your organization code.

HTTP Method: POST

Headers:

  • Content-Type: application/json
  • X-session-token: <Your_Session_Token>

Sample Request Body:
{
“firstName”: “Ram”,
“lastName”: “Lakhan”,
“emailId”: “ramlakhan@ram.com”,
“userName”: “ramlakhan”,
“authType”: “NATIVE”,
“password”: “Ram@123”,
“forcePasswordChange”: true,
“roles”: [
{
“id”: 3,
“roleName”: “ROLE_TENANT_USER”
}
]
}

Replace the sample user details with the required values. Ensure that the session token is valid and that the role ID and role name match the roles configured on your AE Server.