CentralCSP
APIUsage

Set a website usage limit

Caps how many reports this website may accept per period, so one noisy site cannot spend the whole workspace allowance. Send null to remove the cap. The limit cannot be higher than the workspace plan limit. A website at or over its limit stops collecting within a minute and resumes at the start of the next period.

Requires the manager role on the website.

PUT
/v1/workspaces/{workspaceId}/websites/{websiteId}/usage/limit

Authorization

AuthorizationBearer <token>

An OpenID Connect access token issued by Keycloak, acting as the signed-in user.

In: header

Path Parameters

workspaceId*string
websiteId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

limit*||

Reports this website may accept per period, or null to remove the cap. Cannot exceed the workspace plan limit.

Response Body

curl -X PUT "https://api-next.centralcsp.com/v1/workspaces/string/websites/string/usage/limit" \  -H "Content-Type: application/json" \  -d '{    "limit": 100000  }'
Empty