v1

latestOpenAPI 3.1.02026-07-2616459400.5 KB
Subaccount API

Update Subaccount

Update subaccount credentials or credit mode.

post/subaccounts/updateSubaccount

Headers

api_keystring required
Example:x-api-key-123456789

Add your master account API key.

Request body

usernamestring required

Add the username of the subaccount you want to update.

new_emailstring

Add the new email address to replace the existing subaccount email.

new_passwordstring

Add a new password for the subaccount login.

confirm_passwordstring

Re-enter the new password to confirm it matches.

credit_typestring

Choose the new credit mode — unlimited or one_time_credit.

Example request

{
  "username": "acme_marketing_team",
  "new_email": "new-owner@acme.com",
  "new_password": "NewPass@123",
  "confirm_password": "NewPass@123",
  "credit_type": "unlimited"
}

Response

Subaccount updated successfully