PATCH /api/v1/accounts/me
Parameters
| Name | Location | Details |
|---|---|---|
X-Juicebox-Account | header / required | Enrolled account identity, including authority chain and lowercase owner address. Enrollment derives this identity before the account exists. |
X-Juicebox-Signer | header / required | Owner wallet or authorized bot address that signed this request. |
X-Juicebox-Issued-At | header / required | Unix seconds, sent as 1–13 decimal digits without leading zeros; at most 30 seconds ahead of server time. |
X-Juicebox-Expires-At | header / required | Unix seconds, sent as 1–13 decimal digits without leading zeros; in the future and within 300 seconds of issuedAt. |
X-Juicebox-Nonce | header / required | Fresh random 32-byte lowercase nonce. A consumed nonce cannot be retried. |
X-Juicebox-Signature | header / required | EIP-712 CenterRequest signature over every signed field. Contract-owner signatures may vary in length. This is a computed request proof, not a reusable API key. |
X-Juicebox-Grant | header / optional | Authorized bot grant ID. Required for a bot; omit for the owner, signing grantId as the empty string. |
Idempotency-Key | header / optional | Signed retry identity. Required on plan creation and transaction submission. Preserve exact method, target, Content-Type, and body bytes; use a fresh request nonce and signature. |
Request body
| Field | Type | Details |
|---|---|---|
displayName | string optional | Default: |
bio | string optional | Default: |
avatarUri | one of optional | Default: |
JSON schema
{
"type": "object",
"properties": {
"displayName": {
"type": "string",
"default": "",
"x-maxUtf8Bytes": 120
},
"bio": {
"type": "string",
"default": "",
"x-maxUtf8Bytes": 2000
},
"avatarUri": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:https|ipfs)://",
"x-maxUtf8Bytes": 2048
},
{
"type": "null"
}
],
"default": null
}
},
"additionalProperties": false,
"description": "Replaces the profile. Omitted `displayName`/`bio` reset to empty strings; omitted `avatarUri` resets to null."
}Response 200
| Field | Type | Details | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
account | object required | Fields
|
JSON schema
{
"type": "object",
"properties": {
"account": {
"$ref": "#/components/schemas/Account"
}
},
"required": [
"account"
],
"additionalProperties": false
}