PersonalData

Rota responsável pelo registro dos dados pessoais de um cliente

SecurityoAuth2ClientCredentials
Request
path Parameters
userId
required
string or null
Request Body schema:
mothersName
required
string
rg
required
string
nationality
required
string
equityValue
required
string
gender
required
string
civilStatus
required
string
Responses
200

Add personal data for a user registered in the system

400

Unable to add a personal data for a user due to validation error

404

No user with this user id registered in the system was found

post/api/v1/users/{userId}/personalData
Request samples
{
  • "mothersName": "Francisca Maria Alves Cunha",
  • "rg": "2884394",
  • "nationality": "Brasileira",
  • "equityValue": "R$ 10.000,00",
  • "gender": "Feminino",
  • "civilStatus": "Casada"
}
Response samples
application/json
{
  • "id": 1,
  • "mothersName": "Francisca Maria Alves Cunha",
  • "rg": "1234567",
  • "nationality": "Brasileiro",
  • "equityValue": "R$ 10.000,00",
  • "gender": "Feminino",
  • "civilStatus": "Filho"
}