Rename a subaccount
Renames an existing subaccount by updating its display name.
Path Parameters
Request Body
Response Body
Notes
- Subaccount
namevalues are allowed to duplicate within the same entity. - If
nameis unchanged, the endpoint is idempotent and returns200with the current subaccount state.
Authentication
x-api-keystring
RootPay API key sent in the x-api-key header. Keys are environment-scoped: live_* for production, test_* for sandbox.
Path parameters
subaccount_id
The ID of the subaccount to rename
Request
This endpoint expects an object.
name
New display name of the subaccount
Response
Subaccount renamed successfully