﻿# M2M_CLIENT_CAP_REACHED — tenant M2M client cap reached

`POST /clients` enforces a per-tenant cap (default 100, configurable via `CYODA_IAM_M2M_CLIENT_MAX_PER_TENANT`; 0 means no cap). Delete a client the tenan…

<em>cyoda-go version <a href="https://github.com/Cyoda/cyoda-go/releases/tag/v0.9.0">0.9.0</a></em>

# errors.M2M_CLIENT_CAP_REACHED

## NAME

M2M_CLIENT_CAP_REACHED — the tenant has reached the maximum number of M2M clients.

## SYNOPSIS

HTTP: `400` `Bad Request`. Retryable: `no`.

## DESCRIPTION

`POST /clients` enforces a per-tenant cap (default 100, configurable via `CYODA_IAM_M2M_CLIENT_MAX_PER_TENANT`; 0 means no cap). Delete a client the tenant no longer uses, or raise the cap. Creates on several nodes at the same moment can each pass the check, so a tenant can exceed the cap by at most one client per node.

The cap counts every client record the tenant holds, including a damaged one that `GET /clients` leaves out. A damaged record counts toward the cap until `DELETE` removes it; the log names its id. See `auth.clients` (STORAGE AND CONSISTENCY).

## SEE ALSO

- errors
- auth.clients
- config.auth

## See also

- [`cyoda help errors`](/help/errors/) — Every error response from the Cyoda REST API carries a structured `errorCode` in the `properties` object. Multiple codes may share the same HTTP status. Programmatic handling keys on `errorCode`, not HTTP status.
- [`cyoda help auth clients`](/help/auth/clients/) — auth.clients — provision and manage machine-to-machine (M2M) clients that authenticate against cyoda via the `client_credentials` grant.
- [`cyoda help config auth`](/help/config/auth/) — config.auth — IAM mode, JWT settings, identifier rules, HMAC secret, IAM features and signing-key rotation.

## Raw formats

- [`/help/errors/m2m_client_cap_reached.json`](/help/errors/m2m_client_cap_reached.json) — full descriptor (matches `GET /help/{topic}` envelope)
- [`/help/errors/m2m_client_cap_reached.md`](/help/errors/m2m_client_cap_reached.md) — body only