Update a KLE incident while it is a draft

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://restapi.wyzio.com/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Wyzio MCP server": {
    "url": "https://restapi.wyzio.com/mcp"
  }
}

Close
PUT /api-v1/swissdec/incidents/{incidentId}

Headers

  • WEAL-TOKEN Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID

    ID of organization, for which the operation must be performed

Path parameters

  • incidentId integer(int64) Required
application/json

Body Required

  • id integer(int64)
  • staffId integer(int64)
  • staffName string
  • staffAvsNumber string
  • domain string

    Values are AHV_AVS, BVG_LPP, UVG_LAA, UVGZ_LAAC, KTG_AMC, FAK_CAF, TAX, TAX_AT_SOURCE, TAX_CROSSBORDER, STATISTIC, or UNEMPLOYMENT_CERTIFICATES.

  • state string

    Values are DRAFT, DECLARED, DECLARED_WITH_WARNING, IGNORED, REJECTED, FAULT, or COMMUNICATION_STOPPED.

  • incidentDate string(date)
  • incapacityToWorkFrom string(date)
  • incidentScene string
  • description string
  • companyCaseId string
  • insuranceCaseId string
  • incidentCaseId string
  • testCase boolean
  • withoutContract boolean
  • processByDistributor boolean
  • insuranceCode string
  • endUserInformation string
  • detailInformation string
  • insuranceId string
  • insuranceCompanyName string
  • customerIdentity string
  • contractIdentity string
  • createdDate string(date-time)
  • declaredDate string(date-time)
  • lastSyncDate string(date-time)
  • processState string
  • awaitedParts string
  • awaitedUntil string(date-time)
  • requestId string
  • responseId string
  • attachments array[object]
    Hide attachments attributes Show attachments attributes object
    • id integer(int64)
    • filename string
    • contentType string
    • createdDate string(date-time)
    • sentDate string(date-time)
    • storyId string
  • dialogMessages array[object]
    Hide dialogMessages attributes Show dialogMessages attributes object
    • storyId string
    • standardDialogId string
    • creation string(date-time)
    • title string
    • description string
    • sections array[object]
      Hide sections attributes Show sections attributes object
      • sectionId string
      • heading string
      • description string
    • paragraphs array[object]
      Hide paragraphs attributes Show paragraphs attributes object
      • id integer(int32)
      • label string
      • sectionIdRef string
      • valueType string

        Values are STRING, INTEGER, DOUBLE, BOOLEAN, DATE, DATE_TIME, YES_NO_UNKNOWN, or AMOUNT.

      • value string
      • answerType string

        Values are STRING, INTEGER, DOUBLE, BOOLEAN, DATE, DATE_TIME, YES_NO_UNKNOWN, or AMOUNT.

      • answerDefault string
      • answerValue string
      • answerOptional boolean
      • problem string
  • dialogReplyPending boolean

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id integer(int64)
    • staffId integer(int64)
    • staffName string
    • staffAvsNumber string
    • domain string

      Values are AHV_AVS, BVG_LPP, UVG_LAA, UVGZ_LAAC, KTG_AMC, FAK_CAF, TAX, TAX_AT_SOURCE, TAX_CROSSBORDER, STATISTIC, or UNEMPLOYMENT_CERTIFICATES.

    • state string

      Values are DRAFT, DECLARED, DECLARED_WITH_WARNING, IGNORED, REJECTED, FAULT, or COMMUNICATION_STOPPED.

    • incidentDate string(date)
    • incapacityToWorkFrom string(date)
    • incidentScene string
    • description string
    • companyCaseId string
    • insuranceCaseId string
    • incidentCaseId string
    • testCase boolean
    • withoutContract boolean
    • processByDistributor boolean
    • insuranceCode string
    • endUserInformation string
    • detailInformation string
    • insuranceId string
    • insuranceCompanyName string
    • customerIdentity string
    • contractIdentity string
    • createdDate string(date-time)
    • declaredDate string(date-time)
    • lastSyncDate string(date-time)
    • processState string
    • awaitedParts string
    • awaitedUntil string(date-time)
    • requestId string
    • responseId string
    • attachments array[object]
      Hide attachments attributes Show attachments attributes object
      • id integer(int64)
      • filename string
      • contentType string
      • createdDate string(date-time)
      • sentDate string(date-time)
      • storyId string
    • dialogMessages array[object]
      Hide dialogMessages attributes Show dialogMessages attributes object
      • storyId string
      • standardDialogId string
      • creation string(date-time)
      • title string
      • description string
      • sections array[object]
        Hide sections attributes Show sections attributes object
        • sectionId string
        • heading string
        • description string
      • paragraphs array[object]
        Hide paragraphs attributes Show paragraphs attributes object
        • id integer(int32)
        • label string
        • sectionIdRef string
        • valueType string

          Values are STRING, INTEGER, DOUBLE, BOOLEAN, DATE, DATE_TIME, YES_NO_UNKNOWN, or AMOUNT.

        • value string
        • answerType string

          Values are STRING, INTEGER, DOUBLE, BOOLEAN, DATE, DATE_TIME, YES_NO_UNKNOWN, or AMOUNT.

        • answerDefault string
        • answerValue string
        • answerOptional boolean
        • problem string
    • dialogReplyPending boolean
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

PUT /api-v1/swissdec/incidents/{incidentId}
curl \
 --request PUT 'https://wyzio.app/api-v1/swissdec/incidents/{incidentId}' \
 --header "Content-Type: application/json" \
 --data '{
  "id": 42,
  "staffId": 42,
  "staffName": "string",
  "staffAvsNumber": "string",
  "domain": "AHV_AVS",
  "state": "DRAFT",
  "incidentDate": "2026-05-04",
  "incapacityToWorkFrom": "2026-05-04",
  "incidentScene": "string",
  "description": "string",
  "companyCaseId": "string",
  "insuranceCaseId": "string",
  "incidentCaseId": "string",
  "testCase": true,
  "withoutContract": true,
  "processByDistributor": true,
  "insuranceCode": "string",
  "endUserInformation": "string",
  "detailInformation": "string",
  "insuranceId": "string",
  "insuranceCompanyName": "string",
  "customerIdentity": "string",
  "contractIdentity": "string",
  "createdDate": "2026-05-04T09:42:00Z",
  "declaredDate": "2026-05-04T09:42:00Z",
  "lastSyncDate": "2026-05-04T09:42:00Z",
  "processState": "string",
  "awaitedParts": "string",
  "awaitedUntil": "2026-05-04T09:42:00Z",
  "requestId": "string",
  "responseId": "string",
  "attachments": [
    {
      "id": 42,
      "filename": "string",
      "contentType": "string",
      "createdDate": "2026-05-04T09:42:00Z",
      "sentDate": "2026-05-04T09:42:00Z",
      "storyId": "string"
    }
  ],
  "dialogMessages": [
    {
      "storyId": "string",
      "standardDialogId": "string",
      "creation": "2026-05-04T09:42:00Z",
      "title": "string",
      "description": "string",
      "sections": [
        {
          "sectionId": "string",
          "heading": "string",
          "description": "string"
        }
      ],
      "paragraphs": [
        {
          "id": 42,
          "label": "string",
          "sectionIdRef": "string",
          "valueType": "STRING",
          "value": "string",
          "answerType": "STRING",
          "answerDefault": "string",
          "answerValue": "string",
          "answerOptional": true,
          "problem": "string"
        }
      ]
    }
  ],
  "dialogReplyPending": true
}'
Request examples
# Headers

# Payload
{
  "id": 42,
  "staffId": 42,
  "staffName": "string",
  "staffAvsNumber": "string",
  "domain": "AHV_AVS",
  "state": "DRAFT",
  "incidentDate": "2026-05-04",
  "incapacityToWorkFrom": "2026-05-04",
  "incidentScene": "string",
  "description": "string",
  "companyCaseId": "string",
  "insuranceCaseId": "string",
  "incidentCaseId": "string",
  "testCase": true,
  "withoutContract": true,
  "processByDistributor": true,
  "insuranceCode": "string",
  "endUserInformation": "string",
  "detailInformation": "string",
  "insuranceId": "string",
  "insuranceCompanyName": "string",
  "customerIdentity": "string",
  "contractIdentity": "string",
  "createdDate": "2026-05-04T09:42:00Z",
  "declaredDate": "2026-05-04T09:42:00Z",
  "lastSyncDate": "2026-05-04T09:42:00Z",
  "processState": "string",
  "awaitedParts": "string",
  "awaitedUntil": "2026-05-04T09:42:00Z",
  "requestId": "string",
  "responseId": "string",
  "attachments": [
    {
      "id": 42,
      "filename": "string",
      "contentType": "string",
      "createdDate": "2026-05-04T09:42:00Z",
      "sentDate": "2026-05-04T09:42:00Z",
      "storyId": "string"
    }
  ],
  "dialogMessages": [
    {
      "storyId": "string",
      "standardDialogId": "string",
      "creation": "2026-05-04T09:42:00Z",
      "title": "string",
      "description": "string",
      "sections": [
        {
          "sectionId": "string",
          "heading": "string",
          "description": "string"
        }
      ],
      "paragraphs": [
        {
          "id": 42,
          "label": "string",
          "sectionIdRef": "string",
          "valueType": "STRING",
          "value": "string",
          "answerType": "STRING",
          "answerDefault": "string",
          "answerValue": "string",
          "answerOptional": true,
          "problem": "string"
        }
      ]
    }
  ],
  "dialogReplyPending": true
}
Response examples (200)
{
  "id": 42,
  "staffId": 42,
  "staffName": "string",
  "staffAvsNumber": "string",
  "domain": "AHV_AVS",
  "state": "DRAFT",
  "incidentDate": "2026-05-04",
  "incapacityToWorkFrom": "2026-05-04",
  "incidentScene": "string",
  "description": "string",
  "companyCaseId": "string",
  "insuranceCaseId": "string",
  "incidentCaseId": "string",
  "testCase": true,
  "withoutContract": true,
  "processByDistributor": true,
  "insuranceCode": "string",
  "endUserInformation": "string",
  "detailInformation": "string",
  "insuranceId": "string",
  "insuranceCompanyName": "string",
  "customerIdentity": "string",
  "contractIdentity": "string",
  "createdDate": "2026-05-04T09:42:00Z",
  "declaredDate": "2026-05-04T09:42:00Z",
  "lastSyncDate": "2026-05-04T09:42:00Z",
  "processState": "string",
  "awaitedParts": "string",
  "awaitedUntil": "2026-05-04T09:42:00Z",
  "requestId": "string",
  "responseId": "string",
  "attachments": [
    {
      "id": 42,
      "filename": "string",
      "contentType": "string",
      "createdDate": "2026-05-04T09:42:00Z",
      "sentDate": "2026-05-04T09:42:00Z",
      "storyId": "string"
    }
  ],
  "dialogMessages": [
    {
      "storyId": "string",
      "standardDialogId": "string",
      "creation": "2026-05-04T09:42:00Z",
      "title": "string",
      "description": "string",
      "sections": [
        {
          "sectionId": "string",
          "heading": "string",
          "description": "string"
        }
      ],
      "paragraphs": [
        {
          "id": 42,
          "label": "string",
          "sectionIdRef": "string",
          "valueType": "STRING",
          "value": "string",
          "answerType": "STRING",
          "answerDefault": "string",
          "answerValue": "string",
          "answerOptional": true,
          "problem": "string"
        }
      ]
    }
  ],
  "dialogReplyPending": true
}