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

headerAuthorizationBearer <JWT>

An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.

Path Parameters

workspaceId*string

The workspace's id.

Request Body

application/json
  1. body
name*string

Display name for the group.

Length1 <= length <= 255

Response Body

A group of workspace members.

application/json
  1. response
id*string

Unique identifier of the group.

workspaceId*string

The workspace's id.

name*string

Display name.

createdAt*string

When the group was created.

Formatdate-time
updatedAt*string

When the group was last changed.

Formatdate-time
Example Request
curl -X POST 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/groups' \  -H 'Content-Type: application/json' \  -d '{  "name": "Security team"}'
Example Response
{  "id": "string",  "workspaceId": "string",  "name": "Security team",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}