Update a user group

PATCH /Api/UserGroups/{id}

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

Path parameters

  • id integer(int32) Required

Body

  • name string Required

    Minimum length is 1, maximum length is 255.

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

Responses

  • 204

    No Content

  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
    • Additional properties:
  • 401

    Unauthorized

  • 403

    Forbidden

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