APIWebsites
Create a website
Registers a website and provisions the endpoint browsers will send reports to, returned as endpointUrl. Point your Reporting-Endpoints header at that URL to start collecting. Counts against the plan's website limit.
Requires the admin role on the workspace.
AuthorizationBearer <token>
An OpenID Connect access token issued by Keycloak, acting as the signed-in user.
In: header
Path Parameters
workspaceId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
name*string
Display name for the website.
Length
1 <= length <= 255url*string
Address of the site.
Format
uriLength
length <= 2048settings?
Initial ingestion settings. Sensible defaults apply if omitted.
Response Body
application/json
curl -X POST "https://api-next.centralcsp.com/v1/workspaces/string/websites" \ -H "Content-Type: application/json" \ -d '{ "name": "Acme Shop", "url": "https://shop.example.com" }'{ "id": "string", "workspaceId": "string", "name": "Acme Shop", "url": "https://shop.example.com", "endpointUrl": "https://acme.reports.centralcsp.com", "endpointEnabled": true, "usageLimit": 0, "settings": { "allowedOrigins": [ "https://shop.example.com" ], "dropQueryAndFragments": true, "dropReferrer": true, "dropReportsFromExtensions": true }, "role": "viewer", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}