Create a new user group

POST /Api/UserGroups

Requires verified email; Requires one of the following permissions: Auth.CreateUserGroup

Body

  • name string Required

    Minimum length is 1, maximum length is 255.

  • permissions array[string] Required
  • Additional properties are NOT allowed

Responses

  • 201 application/json

    Created

    Hide response attributes Show response attributes object
    • id integer(int32)
    • name string | null
    • permissions array[string] | null
    • Additional properties are NOT allowed
  • 401

    Unauthorized

  • 403

    Forbidden

curl \
 -X POST https://app.lovassy.hu/Api/UserGroups \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"name":"string","permissions":["string"]}'
curl \
 -X POST https://app.lovassy.hu/Api/UserGroups \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: text/json"
curl \
 -X POST https://app.lovassy.hu/Api/UserGroups \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/*+json"
Request examples
{
  "name": "string",
  "permissions": [
    "string"
  ]
}
Response examples (201)
{
  "id": 42,
  "name": "string",
  "permissions": [
    "string"
  ]
}