Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
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": "testetest",
    "projects": [
        {
        "project": "5d9f3ff9200141000647f814",
        "role": "5accf8f60ff2c819a4ffd38f"
        }
    ],
    "projectGroups": [],
    "locale": "en_US"
}'

...

Code Block
languagejs
{
    "username": "example",
    "allProjects": false,
    "email": "example@email.com",
    "resources": [
        "OZmap",
        "OZmob",
        "Loki",
        "API"
    ],
    "name": "Example",
    "phone": "19 914454-4444",
    "observation": "testetest",
    "role": "5accf8f60ff2c819a4ffd38f",
    "projectGroups": [],
    "projects": [
        {
            "role": "5accf8f60ff2c819a4ffd38f",
            "project": "5d9f3ff9200141000647f814",
            "fromGroup": false
        }
    ],
    "email_confirmed": false,
    "creatorData": {
        "id": "63456ff9443ee40013100ed2",
        "name": "example_user",
        "username": "example_user"
    },
    "_id": "67880ddd933efcf4ecc905a9",
    "createdAt": "2025-01-15T19:34:53.754Z",
    "updatedAt": "2025-01-15T19:34:53.754Z",
    "__v": 0,
    "id": "67880ddd933efcf4ecc905a9"
}