Vai al contenuto principale
PATCH
Update Profile

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corpo

application/json

Fields the customer can update on their own profile.

The lengths are the columns' (FON-14): beyond them Postgres refused the UPDATE and the profile answered a bare 500; now it is a 422 on the field.

full_name
string | null
Maximum string length: 255
avatar_url
string | null
Maximum string length: 512
language
string | null
business_type
enum<string> | null

Customer legal type. company carries the fiscal identity (NIPT/VAT + company name) used to pre-fill the order's fiscal snapshot at checkout.

Opzioni disponibili:
private,
company
company_name
string | null
Maximum string length: 255
tax_id
string | null
Maximum string length: 64
vat_number
string | null
Maximum string length: 64

Risposta

Successful Response

data
UserOut · object | null

Public user representation returned from profile endpoints.

meta
PaginationMeta · object | null
error
string | null
error_code
string | null