Polyrankdocs
Auth

PATCH /v1/auth/me

Update the current user’s display name, email, and/or X handle. With EMAIL_CONFIRMATION_ENABLED=1 this route never sets an address: `email: <address>` is a 409 `conflict` with `reason: use_email_code` (confirm it with POST /v1/auth/email/start and /verify; an address equal to the account’s current email is ignored). `email: null` removes the email (and any pending one) as before; the previous address gets a notice.

PATCH
/v1/auth/me

Update the current user’s display name, email, and/or X handle. With EMAIL_CONFIRMATION_ENABLED=1 this route never sets an address: email: <address> is a 409 conflict with reason: use_email_code (confirm it with POST /v1/auth/email/start and /verify; an address equal to the account’s current email is ignored). email: null removes the email (and any pending one) as before; the previous address gets a notice.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/auth/me" \  -H "Content-Type: application/json" \  -d '{}'
{  "user": {    "user_id": "string",    "eoa": "string",    "email": "string",    "display_name": "string",    "x_username": "string",    "created_at": "string"  }}
{  "error": "string",  "message": "string",  "feature": "string",  "field": "string",  "plan": "string",  "retry_after_sec": 0,  "retry_after_seconds": 0,  "reason": "string",  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "feature": "string",  "field": "string",  "plan": "string",  "retry_after_sec": 0,  "retry_after_seconds": 0,  "reason": "string",  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "feature": "string",  "field": "string",  "plan": "string",  "retry_after_sec": 0,  "retry_after_seconds": 0,  "reason": "string",  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "feature": "string",  "field": "string",  "plan": "string",  "retry_after_sec": 0,  "retry_after_seconds": 0,  "reason": "string",  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "feature": "string",  "field": "string",  "plan": "string",  "retry_after_sec": 0,  "retry_after_seconds": 0,  "reason": "string",  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "feature": "string",  "field": "string",  "plan": "string",  "retry_after_sec": 0,  "retry_after_seconds": 0,  "reason": "string",  "issues": [    null  ],  "trace_id": "string"}
{  "error": "string",  "message": "string",  "feature": "string",  "field": "string",  "plan": "string",  "retry_after_sec": 0,  "retry_after_seconds": 0,  "reason": "string",  "issues": [    null  ],  "trace_id": "string"}