---
title: "Set subaccount smtp limit"
method: POST
path: "/subaccounts/{Id}/updatesubaccountsmtplimit"
tags: ["subaccounts"]
---

# Set subaccount smtp limit

`POST /subaccounts/{Id}/updatesubaccountsmtplimit`

Set subaccount smtp limit.

## Path parameters

- `Id` integer, required

## Request body

- SubaccountSMTPLimit
  - `limit` integer, required — The ammount of emails the sub account is allowed to send over the period specified by plan_limit_interval. Value -1 means no limit.

## Response `200`

Subaccount smtp limit set sucessfully

- SubaccountActivePlan
  - `ip` string — IP address to use for sending emails.
  - `active` boolean, required — Active subaccounts can be used for login purpose, while users can´t login to inactive subaccounts. Notice that in order to be able to send emails the subaccount subscription must also be active. User can set subaccounts to active / inactive from the dashboard.
  - `subaccount_id` integer — Sub account Id
  - `parent_id` integer — Sub account parent Id
  - `limit` integer, required — The ammount of emails the sub account is allowed to send over the period specified by plan_limit_interval. Value -1 means no limit.
  - `sent` integer — The ammount of sent emails from the sub account over the current period.
  - `last_used` string, nullable
  - `plan_expiration` string, nullable
  - `plan_limit_interval` 'Daily' | 'Monthly' | 'Yearly' — Limit interval that specifies if the sub account sending limit is specified daily, monthly or yearly. * Important Note: The limit interval allways follows the main account limit.
  - `expired` boolean — Expired if plan expiration date is overdue.

## Other responses

- `400` — Bad Request ###### Produces: * missing_required_parameter_limit * limit_should_be_integer * limit_should_not_be_higher_than_parent_account_limit * limit_should_not_be_lower_than_-1
- `401` — Unauthorized This API requires a valid API Key to be provided. (Use [/authentication/authorize](#/authentication/AuthenticationLogin) to obtain an API Key) Produces: * missing_authorization_key * invalid_authorization_key * account_is_inactive
- `403` — Forbidden The current active plan does not include this feature, upgrade is required to use this feature.
- `404` — Not Found Please verify the subaccount id is valid.

---

[API](https://skmtc.net/serversmtp/apis/turbosmtp-public-apis.md) · [All operations](https://skmtc.net/serversmtp/apis/turbosmtp-public-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/serversmtp/turbosmtp-public-apis/revisions/8503e099b215/schema)
