dinzo.api

Atualizar perfil do usuário

Atualiza campos do perfil financeiro do usuário (name, wage, monthly_living_cost, has_spouse, has_children, is_entrepreneur). Todos os campos do corpo são opcionais e anuláveis; só os enviados são alterados. Retorna o perfil atualizado (sem os blocos plan, scopes e limits). Requer escopo write.

PATCH
/v1/me

Authorization

bearerAuth
AuthorizationBearer <token>

Chave de API no cabeçalho Authorization: Bearer dz_live_...

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PATCH "https://example.com/v1/me" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",  "name": "Helena Duarte",  "wage": 9000,  "monthly_living_cost": 4200,  "has_spouse": true,  "has_children": true,  "is_entrepreneur": false}