cURL
curl --request POST \ --url https://staging-api.getpartna.com/v4/user/admin \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --header 'x-api-user: <api-key>' \ --data '{ "email": "", "fullname": "", "roles": {}, "username": "" }'
{ "message": "success" }
The first value of the roles array should be ‘admin’ followed by other permissions (view, operation, settings)
fullname should be between 2 to 100 characters long
should be admin followed by any of view, operation or settings
username should be alphanumeric, lowercase and between 2 to 40 characters long
post user admin ok