Update the member’s contact and personal details
const url = 'https://api.vimine.network/v1/me';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"phone":"example","dob":"2026-04-15","gender":"M","birthplace":"example","birth_country":"example","codicefiscale":"example","codicefiscale_confirmed":true,"locale":"it"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.vimine.network/v1/me \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "phone": "example", "dob": "2026-04-15", "gender": "M", "birthplace": "example", "birth_country": "example", "codicefiscale": "example", "codicefiscale_confirmed": true, "locale": "it" }'Writable: phone, gender, locale, and the identification — dob, birthplace, birth_country, codicefiscale. A person is identified by a fiscal code OR by date, place and country of birth; the fiscal code is optional and can be added later. A code is validated and cross-checked against the stored name, the date of birth and the place — the comune for people born in Italy, only the STATE (birth_country) for everybody else; sex is not cross-checked. A code that disagrees answers 422 codicefiscale_mismatch with mismatches, hints (names_swapped) and confirmable: when confirmable is true the person may confirm it is the code on their tessera sanitaria — send codicefiscale_confirmed: true — and codicefiscale_check becomes mismatch_confirmed.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Comune (born in Italy) or city, free text (born abroad)
ISO 3166-1 alpha-2
Write-only: the person confirms a code that disagrees with their particulars (see confirmable)
The person’s language; null clears the choice. 422 unsupported for a language the platform does not ship
Responses
Section titled “Responses”The updated profile
object
The subject identifier of this person, as in the ID token
Demographic only
ISO 3166-1 alpha-2
Optional: a person may have none
How the person is identified. matched: a fiscal code that agrees with their particulars; mismatch_confirmed: a code that disagrees, confirmed by the person; absent: no code — date, place and country of birth identify them; null: not identified yet (they cannot request a membership)
The language the person chose for the platform and its mails; null: never chosen — the language of the request, then of the association, applies
Example
{ "gender": "M", "codicefiscale_check": "matched", "locale": "it"}Invalid request
object
object
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}Missing or invalid credentials
object
object
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}Not allowed
object
object
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}Not found
object
object
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}Validation failed (errors[]: invalid_codicefiscale, codicefiscale_mismatch, invalid, age_below_minimum, not_writable)
Rate limited
object
object
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}Internal error
object
object
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}