CentralCSP
APIGroups

Create a group

Creates an empty group. Add members to it here, then grant it a role on a website from that website's access endpoints.

Requires the admin role on the workspace.

POST
/v1/workspaces/{workspaceId}/groups

Authorization

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 group.

Length1 <= length <= 255

Response Body

application/json

curl -X POST "https://api-next.centralcsp.com/v1/workspaces/string/groups" \  -H "Content-Type: application/json" \  -d '{    "name": "Security team"  }'
{  "id": "string",  "workspaceId": "string",  "name": "Security team",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}