auth

Complete user profile

Changed on

Complete or update user profile information. Requires authentication.

post/api/auth/complete-profile

Request

  • Base URL: https://api.corabea.it (the document declares no server; this is the origin it was published from)
  • URL: https://api.corabea.it/api/auth/complete-profile
  • Auth: HTTP bearer

Request body

first_namestring nullable

User first name

last_namestring nullable

User last name

phonestring nullable

User phone number

home_addressstring nullable

User home address

citystring nullable

User city

provincestring nullable

User province

postal_codestring nullable

User postal code

place_of_birthstring nullable

User place of birth

tax_codestring nullable

User tax code (codice fiscale)

genderstring nullable

User gender

registration_reasonstring nullable

Reason for registration

commercial_communications_consentboolean nullable

Consent to receive commercial and promotional communications

how_did_you_hear_about_usstring nullable

How did you hear about us

date_of_birthstring nullable

User date of birth (YYYY-MM-DD). Can only be set once.

tax_code_typestring nullable

Tax code type: 'italian' or 'foreign' (required if tax_code is provided)

country_of_residencestring nullable

User country of residence

gp_first_namestring nullable

General practitioner first name

gp_last_namestring nullable

General practitioner last name

gp_emailstring nullable

General practitioner email

gp_phonestring nullable

General practitioner phone

Example request

{
  "city": "Rome",
  "commercial_communications_consent": true,
  "country_of_residence": "Italy",
  "date_of_birth": "1990-01-01",
  "first_name": "John",
  "gender": "male",
  "gp_email": "mario.rossi@example.com",
  "gp_first_name": "Mario",
  "gp_last_name": "Rossi",
  "gp_phone": "+39 333 1234567",
  "home_address": "Via Example 123",
  "how_did_you_hear_about_us": "Social media",
  "last_name": "Doe",
  "phone": "+39 123 456 7890",
  "place_of_birth": "Rome",
  "postal_code": "00100",
  "province": "RM",
  "registration_reason": "WANT_TO_START_JOURNEY",
  "tax_code": "RSSMRA90A01H501X",
  "tax_code_type": "italian",
  "third_party_contacts": [
    {
      "email": "giulia.bianchi@example.com",
      "first_name": "Giulia",
      "last_name": "Bianchi",
      "phone": "+39 333 7654321",
      "relationship": "Madre"
    }
  ]
}

Response

Successful Response

titlestring

Response title

messagestring

Response message

warningsstring[] nullable

List of warnings (e.g., tax code auto-calculation failed)

Example response

{
  "message": "Profilo aggiornato con successo",
  "user": {
    "email": "user@example.com",
    "first_name": "John",
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "last_name": "Doe",
    "phone": "+39 123 456 7890",
    "place_of_birth": "Rome",
    "roles": [
      "patient"
    ]
  }
}

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status