...
Code Block | ||
---|---|---|
| ||
curl --location 'https://sandbox.ozmap.com.br:9994/api/v2/users' \
--header 'Content-Type: application/json' \
--header 'authorization: AUTHORIZATION_TOKEN'
--data-raw '{
"resources": [
"OZmap",
"OZmob",
"Loki",
"API"
],
"username": "example",
"password": "example123",
"email": "example@email.com",
"name": "Example",
"phone": "19 914454-4444",
"role": "5accf8f60ff2c819a4ffd38f",
"observation": "test",
"projects": [
{
"project": "5d9f3ff9200141000647f814",
"role": "5accf8f60ff2c819a4ffd38f"
}
],
"projectGroups": [],
"locale": "en_US"
}' |
If the user is successfully created, the API will return a 201 Created status and the following response:
...