APIWebsites
Update a website
Changes the website's display name or its address. Only the fields you send are changed. The ingestion endpoint is not affected.
Requires the manager role on the website.
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.
name?string
New display name.
Length
1 <= length <= 255url?string
New address.
Format
uriLength
length <= 2048Response Body
application/json
curl -X PATCH "https://api-next.centralcsp.com/v1/workspaces/string/websites/string" \ -H "Content-Type: application/json" \ -d '{}'{ "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"}