{{sidenavigation.sidenavigationExpandLabel}}
{{getMsg('Help_YouAreHere')}}: /  {{page.title}} {{page.title}}
{{$root.getMsg("downLoadHelpAsPdf")}} {{helpModel.downloadHelpPdfDataStatus}}

User Classes

/api/helpdesk/user-classes/{userClassId}

Manages HelpDesk user classes and their supervisors. Access requires either the general configuration permission or the HelpDesk template-definition permission.

POST creates a request-local user class, applies the supplied writable properties, validates it, and persists it with a server-generated identifier. PUT and PATCH use the same validation. Supervisor assignments are persisted together with the class and are restored best-effort after a partial failure.

DELETE and active=false perform a soft deactivation. The configured default class and a class currently assigned to users cannot be deactivated.

DELETE /api/helpdesk/user-classes/{userClassId}

Soft-deactivates this user class. The configured default class produces the 409 code "user_class_default"; a class assigned to users produces "user_class_in_use".

Parameters

Name Location Type Required Description
userClassId path string yes user-class identifier

Response

Status Content Type Schema Description
204 — — No content.

Example Request

# Request
DELETE /api/helpdesk/user-classes/<userClassId> HTTP/1.1
Accept: application/json
Authorization: Bearer <access-token>

# Response
HTTP/1.1 204 No Content

GET /api/helpdesk/user-classes/{userClassId}

Manages HelpDesk user classes and their supervisors. Access requires either the general configuration permission or the HelpDesk template-definition permission.

POST creates a request-local user class, applies the supplied writable properties, validates it, and persists it with a server-generated identifier. PUT and PATCH use the same validation. Supervisor assignments are persisted together with the class and are restored best-effort after a partial failure.

DELETE and active=false perform a soft deactivation. The configured default class and a class currently assigned to users cannot be deactivated.

Parameters

Name Location Type Required Description
userClassId path string yes user-class identifier
fields query string no Comma-separated readable properties to include in the JSON response.

Response

Status Content Type Schema Description
200 application/json UserClassRead Successful response.

Example Request

# Request
GET /api/helpdesk/user-classes/<userClassId> HTTP/1.1
Accept: application/json
Authorization: Bearer <access-token>

# Response
HTTP/1.1 200 OK
Content-Type: application/json

{
    "id": 0,
    "name": "string",
    "defaultPriorityId": 0,
    "defaultResourceId": 0,
    "supervisorIds": [
        "anmhrgl1i9in3qjmdazrriy3l"
    ]
}

PATCH /api/helpdesk/user-classes/{userClassId}

Manages HelpDesk user classes and their supervisors. Access requires either the general configuration permission or the HelpDesk template-definition permission.

POST creates a request-local user class, applies the supplied writable properties, validates it, and persists it with a server-generated identifier. PUT and PATCH use the same validation. Supervisor assignments are persisted together with the class and are restored best-effort after a partial failure.

DELETE and active=false perform a soft deactivation. The configured default class and a class currently assigned to users cannot be deactivated.

Parameters

Name Location Type Required Description
userClassId path string yes user-class identifier

Request Body

Content Type Schema Required Description
application/json UserClassUpdate yes —

Response

Status Content Type Schema Description
200 application/json UserClassRead Successful response.

Example Request

# Request
PATCH /api/helpdesk/user-classes/<userClassId> HTTP/1.1
Accept: application/json
Authorization: Bearer <access-token>
Content-Type: application/json

{
    "name": "string",
    "defaultPriorityId": 0,
    "defaultResourceId": 0,
    "supervisorIds": [
        "51hbe96k35apb9n89qwbsx6yy"
    ],
    "active": true
}

# Response
HTTP/1.1 200 OK
Content-Type: application/json

{
    "id": 0,
    "name": "string",
    "defaultPriorityId": 0,
    "defaultResourceId": 0,
    "supervisorIds": [
        "anmhrgl1i9in3qjmdazrriy3l"
    ]
}

PUT /api/helpdesk/user-classes/{userClassId}

Manages HelpDesk user classes and their supervisors. Access requires either the general configuration permission or the HelpDesk template-definition permission.

POST creates a request-local user class, applies the supplied writable properties, validates it, and persists it with a server-generated identifier. PUT and PATCH use the same validation. Supervisor assignments are persisted together with the class and are restored best-effort after a partial failure.

DELETE and active=false perform a soft deactivation. The configured default class and a class currently assigned to users cannot be deactivated.

Parameters

Name Location Type Required Description
userClassId path string yes user-class identifier

Request Body

Content Type Schema Required Description
application/json UserClassUpdate yes —

Response

Status Content Type Schema Description
200 application/json UserClassRead Successful response.

Example Request

# Request
PUT /api/helpdesk/user-classes/<userClassId> HTTP/1.1
Accept: application/json
Authorization: Bearer <access-token>
Content-Type: application/json

{
    "name": "string",
    "defaultPriorityId": 0,
    "defaultResourceId": 0,
    "supervisorIds": [
        "51hbe96k35apb9n89qwbsx6yy"
    ],
    "active": true
}

# Response
HTTP/1.1 200 OK
Content-Type: application/json

{
    "id": 0,
    "name": "string",
    "defaultPriorityId": 0,
    "defaultResourceId": 0,
    "supervisorIds": [
        "anmhrgl1i9in3qjmdazrriy3l"
    ]
}

Common Error Responses

The status codes 400, 403, 404, 405, 406, 409, 413, 415, and 500 use the same ApiError JSON error format:

{
    "status": 404,
    "code": "route_not_found",
    "message": "The requested API route does not exist.",
    "details": []
}

Schemas

Request and response schemas used on this page.

UserClassRead

Property Type Required Description
id integer (int32) no

Stable server-generated user-class identifier. Read-only.

name string no

Required user-visible name, trimmed before storage, at most 255 characters and unique ignoring case.

defaultPriorityId integer (int32) no

Identifier of an active default SLA priority, or zero for no class-specific priority.

defaultResourceId integer (int32) no

Identifier of an active default authorization resource, or zero for none.

supervisorIds array<string> no

Complete set of supervising HelpDesk user account identifiers. Each value must be an existing lowercase alphanumeric GUID string, for example "0123456789abcdefghijklmno". When supplied, this property replaces the complete supervisor set; an empty array removes all supervisors.

active boolean no

Whether this user class is active. Setting this to false soft-deactivates the class and is subject to the same conflicts as DELETE. Setting it to true reactivates it.

ApiError

Property Type Required Description
status integer (int32) yes —
code string yes —
message string yes —
details array<object> no —

UserClassUpdate

Property Type Required Description
name string no

Required user-visible name, trimmed before storage, at most 255 characters and unique ignoring case.

defaultPriorityId integer (int32) no

Identifier of an active default SLA priority, or zero for no class-specific priority.

defaultResourceId integer (int32) no

Identifier of an active default authorization resource, or zero for none.

supervisorIds array<string> no

Complete set of supervising HelpDesk user account identifiers. Each value must be an existing lowercase alphanumeric GUID string, for example "0123456789abcdefghijklmno". When supplied, this property replaces the complete supervisor set; an empty array removes all supervisors.

active boolean no

Whether this user class is active. Setting this to false soft-deactivates the class and is subject to the same conflicts as DELETE. Setting it to true reactivates it.

i-net HelpDesk
This application uses cookies to allow login. By continuing to use this application, you agree to the use of cookies.


Help