From 99137a638a278199c29bd4f02baaa3f72ded46cb Mon Sep 17 00:00:00 2001 From: timschaeren Date: Thu, 18 Jul 2024 09:19:57 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20swisspos?= =?UTF-8?q?t/myit-api-doc@a3e9b2a6466505b7dfa418b19800876aa7bc37d2=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- incidentRestAPI.html | 4 ++-- incidentRestAPI.yml | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/incidentRestAPI.html b/incidentRestAPI.html index 3911111..3cf3155 100644 --- a/incidentRestAPI.html +++ b/incidentRestAPI.html @@ -412,7 +412,7 @@ " class="sc-euGpHm sc-exayXG fwfkcU kqJXdD sc-dHrNzZ dRdjww">

unauthorized

Request samples

Content type
application/json
{
  • "partnerId": "SystemX",
  • "partnerIncidentId": "1234567890",
  • "description": "Some problem with something",
  • "short_description": "There is a complicated problem with the incident rest api - HELP!",
  • "location": "afeeadcb8776c6103efc00000000",
  • "assignment_group": "DEVOPS-MYIT",
  • "cmdb_ci": "w010xq",
  • "causing_ci": "w010xq",
  • "attachments": [
    ]
}

Response samples

Content type
application/json
{
  • "metadata": {
    },
  • "message": "Incident 00000000000000000000000000000001 created.",
  • "data": {
    }
}

fetch an existing incident

Request samples

Content type
application/json
{
  • "partnerId": "SystemX",
  • "partnerIncidentId": "1234567890",
  • "description": "Some problem with something",
  • "short_description": "There is a complicated problem with the incident rest api - HELP!",
  • "location": "afeeadcb8776c6103efc00000000",
  • "assignment_group": "DEVOPS-MYIT",
  • "cmdb_ci": "w010xq",
  • "causing_ci": "w010xq",
  • "attachments": [
    ]
}

Response samples

Content type
application/json
{
  • "metadata": {
    },
  • "message": "Incident 00000000000000000000000000000001 created.",
  • "data": {
    }
}

fetch an existing incident

Requires 'partnerId' AND either 'incidentId' OR 'partnerIncidentId' and returns the corresponding incident.

Authorizations:
BasicAuth
query Parameters
partnerId
required
string
Example: partnerId=SystemX

The id of the partner system, to be agreed upon with the MyIT team.

@@ -510,7 +510,7 @@ " class="sc-euGpHm sc-exayXG fwfkcU kqJXdD sc-dHrNzZ dRdjww">

General response. Actual response handling is managed by the receiving system.