Examples

POST /api/usergroups
{
  "usergroup": {
    "name": "test_usergroup",
    "usergroup_ids": [
      5
    ]
  }
}
201
{
  "admin": false,
  "created_at": "2019-11-07 08:35:24 UTC",
  "updated_at": "2019-11-07 08:35:24 UTC",
  "name": "test_usergroup",
  "id": 6,
  "external_usergroups": [],
  "usergroups": [
    {
      "name": "usergroup15",
      "id": 5,
      "created_at": "2019-11-07 08:35:24 UTC",
      "updated_at": "2019-11-07 08:35:24 UTC"
    }
  ],
  "users": [],
  "roles": []
}

Params

Param Name Description
location_id
Optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
Optional

Set the current organization context for the request

Validations:

  • Must be a Integer

usergroup
Required

Validations:

  • Must be a Hash

usergroup[name]
Required

Validations:

  • Must be a String

usergroup[admin]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

is an admin user group

Validations:

  • Must be one of: true, false, 1, 0.

usergroup[user_ids]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be an array of any type

usergroup[usergroup_ids]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be an array of any type

usergroup[role_ids]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be an array of any type