auth

Complete user profile

Complete or update user profile information. Requires authentication.

post/api/auth/complete-profile

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

third_party_contact_enabledboolean nullable

Enable/disable third-party contact for patient updates

third_party_contact_first_namestring nullable

Third-party contact first name

third_party_contact_last_namestring nullable

Third-party contact last name

third_party_contact_relationshipstring nullable

Third-party contact role/kinship degree

third_party_contact_phonestring nullable

Third-party contact mobile phone

third_party_contact_emailstring nullable

Third-party contact email

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_contact_email": "giulia.bianchi@example.com",
  "third_party_contact_enabled": true,
  "third_party_contact_first_name": "Giulia",
  "third_party_contact_last_name": "Bianchi",
  "third_party_contact_phone": "+39 333 7654321",
  "third_party_contact_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

No recorded changes to this endpoint across all 1 revision of this API.