PATCH
/v1/meThe same two things the settings screen on the website changes. Send only what changes. The answer is your profile as it reads afterwards, so an app redraws from one shape.
The email address cannot be changed here. It is what signs you in on every device, and changing it on the website starts a verification.
Request
curl -X PATCH https://api.proppertrading.com/v1/me \
-H "Authorization: Bearer ptat_9f2c1a44_3b8e7d2f5c9a1b4e6d8f0a2c4e6b8d1f" \
-H "Content-Type: application/json" \
-d '{"name": "Jamie Doe", "locale": "nl"}'
| Field | Type | Description |
|---|---|---|
name | string | Up to 255 characters |
locale | string | en, nl, es or pt. Emails and notifications follow it |
Response
Your profile, with the change in it.
Errors
| Status | Code | Meaning |
|---|---|---|
| 403 | insufficient_scope | This device does not hold me:write |
| 422 | validation_failed | An empty name, or a language we do not speak |