Update the signed-in member's profile
const url = 'https://acme.mykreezalid.com/front_api/v1/account/update';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"email":"jane@example.com","image":"example","first_name":"Jane","last_name":"Doe","display_name":"example","username":"example","business_name":"example","account_type":"individual","external_id":"example","lang":"fr","currency":"EUR","timezone":"Europe/Paris","birthday":"1990-04-12","nationality":"FR","description":"example","phone_country_code":"33","phone_number":"612345678","address_line1":"example","address_line2":"example","address_city":"example","address_zipcode":"example","address_state":"example","address_country":"FR","company_number":"example","company_website_url":"example","company_address_line1":"example","company_address_line2":"example","company_postal_code":"example","company_city":"example","company_state":"example","company_country":"example","ssn_last_4":"example","meta_title":"example","meta_description":"example","meta_keywords":"example","attributes":{}}'};
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://acme.mykreezalid.com/front_api/v1/account/update \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "email": "jane@example.com", "image": "example", "first_name": "Jane", "last_name": "Doe", "display_name": "example", "username": "example", "business_name": "example", "account_type": "individual", "external_id": "example", "lang": "fr", "currency": "EUR", "timezone": "Europe/Paris", "birthday": "1990-04-12", "nationality": "FR", "description": "example", "phone_country_code": "33", "phone_number": "612345678", "address_line1": "example", "address_line2": "example", "address_city": "example", "address_zipcode": "example", "address_state": "example", "address_country": "FR", "company_number": "example", "company_website_url": "example", "company_address_line1": "example", "company_address_line2": "example", "company_postal_code": "example", "company_city": "example", "company_state": "example", "company_country": "example", "ssn_last_4": "example", "meta_title": "example", "meta_description": "example", "meta_keywords": "example", "attributes": {} }'Updates the fields you send on the signed-in member’s profile; the others are left unchanged. Only the fields listed below are accepted: any other field (including password, see POST /account/change-password) rejects the whole request with 400. The response does not return the profile: read it again with GET /auth/me.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example
jane@example.comProfile picture.
Example
JaneExample
DoeIdentifier of the member in your own system.
Example
frExample
EURExample
Europe/ParisExample
1990-04-12Country code.
Example
FRPresentation shown on the member’s profile.
Example
33Example
612345678Country code.
Example
FRCompany registration number.
Last four digits of the member’s social security number.
Search-engine title of the member’s profile page.
Search-engine description of the member’s profile page.
Values of the custom member fields defined by the marketplace, keyed by field alias.
object
Responses
Section titled “Responses”The profile is updated.
object
Example
{ "code": 200, "status": "success", "message": "User updated successfully"}No data provided when the body is empty, Invalid field: <name> when it carries a field that cannot be updated, User could not be updated when a value is refused, User not found when the account is no longer active after the update.
Error body returned by the Front API when it refuses a request.
object
HTTP status code, repeated in the body.
Human-readable reason.
Example
{ "code": 403, "status": "error", "message": "Token not found in request"}No valid access token was sent.
Error body returned by the Front API when it refuses a request.
object
HTTP status code, repeated in the body.
Human-readable reason.
Example
{ "code": 403, "status": "error", "message": "Token not found in request"}