Update profile photo
Updates the profile photo of the logged-in ABHA user (X-token). Send the photo as a Base64 string.
Endpoint: PATCH /abha/api/v3/profile/account
Flow: Profile - Update Photo - step 1 of 1
- Previous: none (first call of this flow)
- Next: none (last call of this flow)
Headers (plus Authorization: Bearer <gateway token>):
| Header | Required | Description |
|---|---|---|
| TIMESTAMP | yes | Current UTC timestamp in ISO-8601 format. |
| REQUEST-ID | yes | Unique UUID for every request. |
| X-token | yes | User token (Bearer <token>) received after verification / login. |
Request body for this use case:
| Field | Value / Type | Required | Description |
|---|---|---|---|
profilePhoto |
string | no | Base64 encoded profile photo. |
Note: The source spec has no response example for this use case. Its only examples are for Child ABHA.
Responses
200Success.
ABHANumberstringpreferredAbhaAddressstringmobilestringfirstNamestringmiddleNamestringlastNamestringyearOfBirthintegermonthOfBirthintegerdayOfBirthintegergenderstringstatusstringstateCodeintegerdistrictCodeintegerstateNamestringdistrictNamestringsubdistrictNamestringauthMethodsstring[]tagsobjectkycVerifiedbooleanverificationStatusstringverificationTypestringcreatedDatestring400Bad Request (request validation failed).
errorobjecterror.messagestringerror.timestampstring401Unauthorized (invalid / expired gateway token, X-token or benefit access).
errorobjecterror.codestringerror.messagestring422Unprocessable Entity (business rule or UIDAI failure).
errorobjecterror.codestringerror.messagestring