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

HelpDesk Processes

/api/helpdesk/processes/{processId}/activities

Exposes stored ticket-process definitions and their import/export lifecycle.

The endpoint is request-local. Its writable properties are copied into an immutable TicketProcess only in commit. Consequently a PATCH changes only supplied properties, while a client can replace the complete process graph by supplying all process properties. The graph is validated before any manager operation is performed.

Both PUT /api/helpdesk/processes/{processId} and PATCH /api/helpdesk/processes/{processId} use this same model-update contract. Only properties annotated with Set may be supplied; omitted properties retain their current values, explicit null clears a nullable property unless the property's documentation defines a defaulting rule, and explicit null for a non-nullable property is rejected with 400 process_invalid. Collections such as activities and parallelTickets are replaced as complete collections. Read-only response properties such as id and folderPath are accepted and ignored for GET-to-PUT/PATCH round-trips; the identifier in the URL selects the process to update. A native export also has no folderId; omit it to keep the current folder, or send it explicitly when moving the process.

For example, to apply a complete exported graph:


 PATCH /api/helpdesk/processes/8ut68taio3kfeap4pwjcdh4fi
 Content-Type: application/json

 {"name":"Baugenehmigungsverfahren API-Test",
  "description":"Updated description",
  "activities":[...], "startActivityId":"activity-start",
  "parallelTickets":[...], "autoResourceAccess":"NONE",
  "canBeChangedWhenActive":false}
 

Process definitions use existing model identifiers. For example, an automatic transition can refer to an activity and an action as follows:


 {
   "name": "Incident handling",
   "startActivityId": "activity-start",
   "activities": [{
     "id": "activity-start", "type": "Standard", "name": "Start",
     "requiredFieldKeys": [], "allowedActions": [], "processTicketData": {},
     "followUpActivities": [{
       "nextActivityId": "activity-finish", "actionid": 123,
       "actionLabel": "Finish", "conditionsForAutoTransition": []
     }]
   }, {
     "id": "activity-finish", "type": "FinishProcess", "name": "Finish",
     "requiredFieldKeys": [], "allowedActions": [], "processTicketData": {},
     "followUpActivities": []
   }],
   "parallelTickets": [],
   "autoResourceAccess": "NONE",
   "canBeChangedWhenActive": false
 }
 

Dependencies are represented by typed condition records. For example, a transition that may run after an activity was completed uses the activity identifier in the condition-data JSON string; a parallel-ticket dependency uses the parallel-ticket identifier instead:


 "conditionsForAutoTransition": [
   {"type":"activityFinished",
    "conditionData":"{\"itemId\":\"activity-review\",\"ignoreIfNoLongerReachable\":false}"}
 ]

 "startCondition": [
   {"type":"ticketFinished",
    "conditionData":"{\"itemId\":\"parallel-audit\",\"ignoreIfNoLongerReachable\":true}"}
 ]
 

Use activityVisited when completion is not required, ticketHasValue for a field comparison, and allTicketsFinished when every configured parallel ticket must finish. allTicketsFinished is valid only on a main-ticket automatic transition and only when at least one parallel ticket is configured. The condition type and condition-data shapes are discoverable from the metadata endpoint; all conditions in one list must be fulfilled (logical AND).

The start activity of an active parallel ticket must contain non-null ticketText. If that text is empty, its processTicketData must provide a non-empty concrete value or reference for the subject field. A main-ticket activity may use ticketText:null. Validation also checks the complete action graph: every reachable activity/status combination must have an allowed action and transition to continue or end the ticket/process. Therefore a transition using an action such as action ID 1 can still be invalid when the activity's allowed actions do not make the resulting graph reachable.

Use the process editor metadata endpoint to discover valid action identifiers, activity types, condition types and ticket-field operators. Conditions in one condition list are evaluated as an AND expression. The model's condition data must use the exact shape returned by that metadata endpoint.

GET /api/helpdesk/processes/{processId}/activities

Complete main-ticket activity graph, including transition condition data. PUT and PATCH replace this collection completely; omitted requests retain the current graph.

Parameters

Name Location Type Required Description
processId path string yes process identifier from the URL

Response

Status Content Type Schema Description
200 application/json array<Activity> Successful response.

Example Request

# Request
GET /api/helpdesk/processes/<processId>/activities HTTP/1.1
Accept: application/json
Authorization: Bearer <access-token>

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

[
    {
        "nextProcessToStart": "7sxnc9d6pqnqegakmho9fiy1o",
        "followUpActivities": [
            
        ],
        "ticketText": {
            "duplicatedContent": [
                
            ],
            "text": "string",
            "htmlContent": true
        },
        "mainTicketTextInParallelMode": "NONE",
        "name": "string"
    }
]

PUT /api/helpdesk/processes/{processId}/activities

Complete main-ticket activity graph, including transition condition data. PUT and PATCH replace this collection completely; omitted requests retain the current graph.

Parameters

Name Location Type Required Description
processId path string yes process identifier from the URL

Request Body

Content Type Schema Required Description
application/json array<Activity> yes

Complete main-ticket activity graph, including transition condition data. PUT and PATCH replace this collection completely; omitted requests retain the current graph.

Response

Status Content Type Schema Description
200 application/json array<Activity> Successful response.

Example Request

# Request
PUT /api/helpdesk/processes/<processId>/activities HTTP/1.1
Accept: application/json
Authorization: Bearer <access-token>
Content-Type: application/json

[
    {
        "nextProcessToStart": "7sxnc9d6pqnqegakmho9fiy1o",
        "followUpActivities": [
            
        ],
        "ticketText": {
            "duplicatedContent": [
                
            ],
            "text": "string",
            "htmlContent": true
        },
        "mainTicketTextInParallelMode": "NONE",
        "name": "string"
    }
]

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

[
    {
        "nextProcessToStart": "7sxnc9d6pqnqegakmho9fiy1o",
        "followUpActivities": [
            
        ],
        "ticketText": {
            "duplicatedContent": [
                
            ],
            "text": "string",
            "htmlContent": true
        },
        "mainTicketTextInParallelMode": "NONE",
        "name": "string"
    }
]

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.

Activity

Property Type Required Description
nextProcessToStart string no —
followUpActivities array<ActivityTransition> no —
ticketText ReaStepTextVO no —
mainTicketTextInParallelMode string [NONE, APPEND, PREPEND] no —
name string no —
allowedActions array<integer (int32)> no —
description string no —
weight integer (int32) no —
processTicketData ProcessTicketData no —
id string no —
type string [Standard, FinishProcess] no —
requiredFieldKeys array<string> no —

ActivityTransition

Property Type Required Description
actionid integer (int32) no —
autoTransitionText ReaStepTextVO no —
conditionsForAutoTransition array<ProcessCondition> no —
nextActivityId string no —
actionLabel string no —

ReaStepTextVO

Property Type Required Description
duplicatedContent array<DuplicateRange> no —
text string no —
htmlContent boolean no —

DuplicateRange

Property Type Required Description
uid string no —
ids array<integer (int32)> no —
from integer (int32) no —
to integer (int32) no —

ProcessCondition

Property Type Required Description
conditionData string no —
type string no —

ProcessTicketData

Property Type Required Description
map object no —

ProcessValueReference

Property Type Required Description
field string no —
valueString string no —
referenceType integer (int32) no —
parallelTicketId string no —

ApiError

Property Type Required Description
status integer (int32) yes —
code string yes —
message string yes —
details array<object> no —
i-net HelpDesk
This application uses cookies to allow login. By continuing to use this application, you agree to the use of cookies.


Help