CentralCSP
APIWebsite Access

Grant a group access

Gives a group a role on this website, replacing the role it had. Everyone in the group gets that role, now and as the group changes.

Requires the admin role on the website.

PUT
/v1/workspaces/{workspaceId}/websites/{websiteId}/access/groups/{groupId}

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
groupId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

role*|||

What someone may do with a website. viewer reads reports and settings. analyst also decides on scripts under review. manager also changes the website's configuration. admin also manages access and deletes the website.

Response Body

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