API DocsRESTUser group service

CreateUserGroup

Creates a user group.

POST
/api/v2/user-groups

Request Body

application/jsonRequired

userGroup
Required
object

curl -X POST "<API_URL>/api/v2/user-groups" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "userGroup": {
      "userGroupId": "string",
      "name": "string",
      "roleId": "string",
      "isDefault": true,
      "resources": {
        "assetIds": [
          "string"
        ],
        "allAssets": true
      },
      "userIds": [
        "string"
      ]
    }
  }'

A successful response.

{
  "userGroup": {
    "userGroupId": "string",
    "name": "string",
    "roleId": "string",
    "isDefault": true,
    "resources": {
      "assetIds": [
        "string"
      ],
      "allAssets": true
    },
    "userIds": [
      "string"
    ]
  }
}