Set Domain quotas

Description

Set quotas for specified domain.This function is only available to administrators.

Possible quota names are:

  • domains:devices

Request

POST /v1/domains/:domain/quotas
{
  name: string,
  value: number
}

Response

Response Status codes:

  • 204 on success

Request headers

This request must have the following headers:

  • Authorization: bearer <ApiKey>
  • X-Nabto-Organization: <organizationId>
  • Content-Type: application/json

Example

Request

curl -XPOST "https://api.cloud.nabto.com/v1/domains/:domain/quotas" \
  -H "Authorization: Bearer <ApiKey>" \
  -H "X-Nabto-Organization: <OrganizationId>" \
  -H "Content-Type: application/json" \
  -d '{ name: "friendly name", value: 42}'

Response

Returns response Code: 204