curl --location --request POST '/api/v1/users' \
--header 'Content-Type: application/json' \
--data-raw '{
"first_name": "string",
"last_name": "string",
"email": "user@example.com",
"user_accesses_attributes": [
{
"company_id": 0,
"access_id": 0,
"primary": true
}
]
}'{
"user": {
"id": 0,
"first_name": "string",
"last_name": "string",
"email": "user@example.com",
"status": "string",
"full_name": "string",
"avatar_route": "string",
"primary_access": {
"id": 0,
"company_id": 0,
"access_id": 0,
"access_name": "string"
},
"primary_company": {
"id": 0,
"name": "string",
"default": true,
"parent_company_id": 0
}
}
}