Create a new user.
Method
POST /user/create
Parameters
Request Body
A JSON object with the following properties:
Name | Type | Description |
---|---|---|
profile | Array | A JSON object containing variable key-value pairs. The object contains the following properties: id (String) , firstName (String) , lastName (String) and email (String) . |
credentials | Array | A JSON object containing variable key-value pairs. The object contains the following property: password (String) . |
Result
This method returns no content.
Response Codes
Code | Media type | Description |
---|---|---|
204 | Request successful. | |
403 | application/json | Identity service is read-only (Cannot modify users / groups / memberships). |
500 | application/json | The user could not be created due to an internal server error. See the Introduction for the error response format. |
Example
Request
POST /user/create
Request Body:
{"profile":
{"id": "jonny1",
"firstName":"John",
"lastName":"Doe",
"email":"aNewEmailAddress"},
"credentials":
{"password":"s3cret"}
}
Response
Status 204. No content.
原文: https://docs.camunda.org/manual/7.9/reference/rest/user/post-create/