Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

POST /subaccounts/rename

Rename one of the authenticated main account's subaccounts. See Subaccounts.

POST https://api.aevo.xyz/subaccounts/rename

Authentication required. Include your AEVO-KEY and AEVO-SECRET headers. See Authentication. Call it with the main account's API key and no AEVO-SUBACCOUNT header. Read-only API keys can't call this endpoint.

Body Parameters

Field
Type
Required
Description

subaccount

string

Yes

The subaccount to rename. Example: 0xYourSubaccountAddress

name

string

Yes

New name: 1 to 16 characters, letters, numbers, spaces, _ and -, with no leading or trailing spaces. Unique among the main account's active subaccounts. Example: Options Desk

Example Request

curl --request POST \
     --url https://api.aevo.xyz/subaccounts/rename \
     --header 'accept: application/json' \
     --header 'AEVO-KEY: <your-api-key>' \
     --header 'AEVO-SECRET: <your-api-secret>' \
     --header 'content-type: application/json' \
     --data '{ "subaccount": "0xYourSubaccountAddress", "name": "Options Desk" }'

Responses

200 — The subaccount was renamed.

Field
Type
Required
Description

parent

string

Yes

The main account. Example: 0xYourMainAccountAddress

subaccount

string

Yes

The subaccount. Example: 0xYourSubaccountAddress

name

string

Yes

The new name. Example: Options Desk

400 — Bad request.

Field
Type
Required
Description

error

string

Yes

Error message: SUBACCOUNT_NOT_FOUND, SUBACCOUNT_ARCHIVED, SUBACCOUNT_INVALID_NAME or SUBACCOUNT_NAME_TAKEN. Example: SUBACCOUNT_NAME_TAKEN

401 — Unauthorized.

Field
Type
Required
Description

error

string

Yes

Error message. Example: UNAUTHORIZED

429 — Rate limit exceeded.

Field
Type
Required
Description

error

string

Yes

Error message. Example: RATE_LIMIT_EXCEEDED

500 — Internal server error.

Field
Type
Required
Description

error

string

Yes

Error message. Example: INTERNAL_ERROR

Last updated

Was this helpful?