CentralCSP
APIUsage

Set website usage-alert recipients

Replaces the recipient list for this website. Send an empty array to turn its usage emails off. Every id must belong to a member of this workspace.

Requires the manager role on the website.

PUT
/v1/workspaces/{workspaceId}/websites/{websiteId}/usage-alerts/recipients

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.

memberIds*array<>

The id of each membership to email. Send an empty array to turn these emails off.

Itemsitems <= 200

Response Body

application/json

curl -X PUT "https://api-next.centralcsp.com/v1/workspaces/string/websites/string/usage-alerts/recipients" \  -H "Content-Type: application/json" \  -d '{    "memberIds": [      "string"    ]  }'
{  "recipients": [    {      "memberId": "string",      "hasAccess": true,      "email": "string",      "firstName": "string",      "lastName": "string"    }  ]}