/auth/v1/groups: POST

Creates a group in the system.

The following table shows which roles can access this REST API endpoint:
Table 1. Access by role
Data admin Data user Collection Admin Admin Service user
Χ Χ Χ

Synopsis of the request URL

curl -k  -H 'Content-Type: application/json' -H ‘Authorization: Bearer <token>’ -X POST
https://<spectrum_discover_host>/auth/v1/groups -d ‘<json details of group>
You can specify the following details of a group:
  • name: Name of the group.
  • description: A meaningful description for the group.
  • domain_id: The domain to which the group belongs.

Supported request types and response formats

Supported request types:
  • POST
Supported response formats:
  • JSON

Examples

The following example shows how to create a group.

Request:
curl -k  -H 'Content-Type: application/json' -H ‘Authorization: Bearer <token>’ 
https://<spectrum_discover_host>/auth/v1/groups -d ‘{"name": "test-group”}’ 

Response:

201 Created