PUT
/
api
/
v1
/
incidents
/
{incident_id}
import dateutil.parser
import os
from syllable_sdk import SyllableSDK


with SyllableSDK(
    api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:

    res = ss_client.incidents.update(incident_id=656776, service_incident_request={
        "organization_id": 857478,
        "sub_organization_id": 597129,
        "sub_organization": "<value>",
        "description": "hydrolyze for drat underneath sticky",
        "start_datetime": dateutil.parser.isoparse("2023-03-21T03:40:17.460Z"),
        "resolution_datetime": dateutil.parser.isoparse("2023-06-16T09:40:21.633Z"),
        "impact_category": "<value>",
        "sessions_impacted": 342070,
        "markdown": "<value>",
    })

    # Handle response
    print(res)
{
  "organization_id": 123,
  "sub_organization_id": 123,
  "sub_organization": "<string>",
  "description": "<string>",
  "start_datetime": "2023-11-07T05:31:56Z",
  "resolution_datetime": "2023-11-07T05:31:56Z",
  "impact_category": "<string>",
  "sessions_impacted": 123,
  "markdown": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "id": 123
}

Authorizations

Syllable-API-Key
string
header
required

Path Parameters

incident_id
integer
required

Body

application/json
organization_id
integer | null
required
sub_organization_id
integer | null
required
sub_organization
string | null
required
description
string
required
start_datetime
string
required
resolution_datetime
string
required
impact_category
string
required
sessions_impacted
integer
required
markdown
string
required

Response

200
application/json
Successful Response
organization_id
integer | null
required
sub_organization_id
integer | null
required
sub_organization
string | null
required
description
string
required
start_datetime
string
required
resolution_datetime
string
required
impact_category
string
required
sessions_impacted
integer
required
markdown
string
required
created_at
string
required
updated_at
string
required
id
integer
required