---
title: "Update Subaccount"
method: POST
path: "/subaccounts/updateSubaccount"
tags: ["Subaccount API"]
---

# Update Subaccount

`POST /subaccounts/updateSubaccount`

## Request

- Base URL: `https://emailapi.netcorecloud.net/v5.1`
- URL: `https://emailapi.netcorecloud.net/v5.1/subaccounts/updateSubaccount`
- Auth: API key in header `api_key`

Update subaccount credentials or credit mode.

## Headers

- `api_key` string, required

## Request body

- object
  - `username` string, required: Add the username of the subaccount you want to update.
  - `new_email` string: Add the new email address to replace the existing subaccount email.
  - `new_password` string: Add a new password for the subaccount login.
  - `confirm_password` string: Re-enter the new password to confirm it matches.
  - `credit_type` string: Choose the new credit mode — unlimited or one_time_credit.

## Response `200`

Subaccount updated successfully

---

[API](https://skmtc.dev/netcorecloud/apis/email-api-v5.md) - [All operations](https://skmtc.dev/netcorecloud/apis/email-api-v5/llms.txt) - [OpenAPI document](https://skmtc.dev/netcorecloud/apis/email-api-v5/revisions/7f81d8722ba3?raw)
