Skip to content

Update the signed-in member's profile

PATCH
/account/update
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.

Media typeapplication/json
object
email
string format: email

Example

jane@example.com
image

Profile picture.

string
first_name
string

Example

Jane
last_name
string

Example

Doe
display_name
string
username
string
business_name
string
account_type
string
Allowed values: individual company soletrader non_profit
external_id

Identifier of the member in your own system.

string
lang
string

Example

fr
currency
string

Example

EUR
timezone
string

Example

Europe/Paris
birthday
string format: date

Example

1990-04-12
nationality

Country code.

string

Example

FR
description

Presentation shown on the member’s profile.

string
phone_country_code
string

Example

33
phone_number
string

Example

612345678
address_line1
string
address_line2
string
address_city
string
address_zipcode
string
address_state
string
address_country

Country code.

string

Example

FR
company_number

Company registration number.

string
company_website_url
string
company_address_line1
string
company_address_line2
string
company_postal_code
string
company_city
string
company_state
string
company_country
string
ssn_last_4

Last four digits of the member’s social security number.

string
meta_title

Search-engine title of the member’s profile page.

string
meta_description

Search-engine description of the member’s profile page.

string
meta_keywords
string
attributes

Values of the custom member fields defined by the marketplace, keyed by field alias.

object
key
additional properties
any

The profile is updated.

Media typeapplication/json
object
code
integer
status
string
message
string

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.

Media typeapplication/json

Error body returned by the Front API when it refuses a request.

object
code

HTTP status code, repeated in the body.

integer
status
string
message

Human-readable reason.

string

Example

{
"code": 403,
"status": "error",
"message": "Token not found in request"
}

No valid access token was sent.

Media typeapplication/json

Error body returned by the Front API when it refuses a request.

object
code

HTTP status code, repeated in the body.

integer
status
string
message

Human-readable reason.

string

Example

{
"code": 403,
"status": "error",
"message": "Token not found in request"
}