curl --request POST \
--url http://{host}:{port}/{contextPath}/user/create \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"profile": {
"id": "jonny1",
"firstName": "John",
"lastName": "Doe",
"email": "anEmailAddress"
},
"credentials": {
"password": "s3cret"
}
}
'