POST
/
api
/
v1
/
incidents
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.create(request={
        "organization_id": 486589,
        "sub_organization_id": 638424,
        "sub_organization": "<value>",
        "description": "calmly fortunately bench around igloo scaffold",
        "start_datetime": dateutil.parser.isoparse("2025-04-13T05:49:58.922Z"),
        "resolution_datetime": dateutil.parser.isoparse("2023-08-30T02:12:40.558Z"),
        "impact_category": "<value>",
        "sessions_impacted": 449221,
        "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

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