incident_io_client.api.incidents_v2.incidents_v2_edit
asyncio
async
asyncio(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: IncidentsV2EditRequestBody
) -> Optional[IncidentsV2EditResponseBody]
Edit Incidents V2
Edit an existing incident.
This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields.
When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
IncidentsV2EditRequestBody
|
Example: {'incident': {'call_url': 'https://zoom.us/foo', 'custom_field_entries': [{'custom_field_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'values': [{'id': '01FCNDV6P870EA6S7TK1DSYDG0', 'value_catalog_entry_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'value_link': 'https://google.com/', 'value_numeric': '123.456', 'value_option_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'value_text': 'This is my text field, I hope you like it', 'value_timestamp': ''}]}], 'incident_role_assignments': [{'assignee': {'email': 'bob@example.com', 'id': '01G0J1EXE7AXZ2C93K61WBPYEH', 'slack_user_id': 'USER123'}, 'incident_role_id': '01FH5TZRWMNAFB0DZ23FD1TV96'}], 'incident_status_id': '01FH5TZRWMNAFB0DZ23FD1TV96', 'incident_timestamp_values': [{'incident_timestamp_id': '01FCNDV6P870EA6S7TK1DSYD5H', 'value': '2021-08-17T13:28:57.801578Z'}], 'name': 'Our database is sad', 'severity_id': '01FH5TZRWMNAFB0DZ23FD1TV96', 'slack_channel_name_override': 'inc-123-database-down', 'summary': "Our database is really really sad, and we don't know why yet."}, 'notify_incident_channel': True}. |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[IncidentsV2EditResponseBody]
|
IncidentsV2EditResponseBody |
Source code in incident_io_client/api/incidents_v2/incidents_v2_edit.py
asyncio_detailed
async
asyncio_detailed(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: IncidentsV2EditRequestBody
) -> Response[IncidentsV2EditResponseBody]
Edit Incidents V2
Edit an existing incident.
This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields.
When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
IncidentsV2EditRequestBody
|
Example: {'incident': {'call_url': 'https://zoom.us/foo', 'custom_field_entries': [{'custom_field_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'values': [{'id': '01FCNDV6P870EA6S7TK1DSYDG0', 'value_catalog_entry_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'value_link': 'https://google.com/', 'value_numeric': '123.456', 'value_option_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'value_text': 'This is my text field, I hope you like it', 'value_timestamp': ''}]}], 'incident_role_assignments': [{'assignee': {'email': 'bob@example.com', 'id': '01G0J1EXE7AXZ2C93K61WBPYEH', 'slack_user_id': 'USER123'}, 'incident_role_id': '01FH5TZRWMNAFB0DZ23FD1TV96'}], 'incident_status_id': '01FH5TZRWMNAFB0DZ23FD1TV96', 'incident_timestamp_values': [{'incident_timestamp_id': '01FCNDV6P870EA6S7TK1DSYD5H', 'value': '2021-08-17T13:28:57.801578Z'}], 'name': 'Our database is sad', 'severity_id': '01FH5TZRWMNAFB0DZ23FD1TV96', 'slack_channel_name_override': 'inc-123-database-down', 'summary': "Our database is really really sad, and we don't know why yet."}, 'notify_incident_channel': True}. |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[IncidentsV2EditResponseBody]
|
Response[IncidentsV2EditResponseBody] |
Source code in incident_io_client/api/incidents_v2/incidents_v2_edit.py
sync
sync(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: IncidentsV2EditRequestBody
) -> Optional[IncidentsV2EditResponseBody]
Edit Incidents V2
Edit an existing incident.
This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields.
When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
IncidentsV2EditRequestBody
|
Example: {'incident': {'call_url': 'https://zoom.us/foo', 'custom_field_entries': [{'custom_field_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'values': [{'id': '01FCNDV6P870EA6S7TK1DSYDG0', 'value_catalog_entry_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'value_link': 'https://google.com/', 'value_numeric': '123.456', 'value_option_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'value_text': 'This is my text field, I hope you like it', 'value_timestamp': ''}]}], 'incident_role_assignments': [{'assignee': {'email': 'bob@example.com', 'id': '01G0J1EXE7AXZ2C93K61WBPYEH', 'slack_user_id': 'USER123'}, 'incident_role_id': '01FH5TZRWMNAFB0DZ23FD1TV96'}], 'incident_status_id': '01FH5TZRWMNAFB0DZ23FD1TV96', 'incident_timestamp_values': [{'incident_timestamp_id': '01FCNDV6P870EA6S7TK1DSYD5H', 'value': '2021-08-17T13:28:57.801578Z'}], 'name': 'Our database is sad', 'severity_id': '01FH5TZRWMNAFB0DZ23FD1TV96', 'slack_channel_name_override': 'inc-123-database-down', 'summary': "Our database is really really sad, and we don't know why yet."}, 'notify_incident_channel': True}. |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Optional[IncidentsV2EditResponseBody]
|
IncidentsV2EditResponseBody |
Source code in incident_io_client/api/incidents_v2/incidents_v2_edit.py
sync_detailed
sync_detailed(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: IncidentsV2EditRequestBody
) -> Response[IncidentsV2EditResponseBody]
Edit Incidents V2
Edit an existing incident.
This endpoint allows you to edit the properties of an existing incident: e.g. set the severity or update custom fields.
When using this endpoint, only fields that are provided will be edited (omitted fields will be ignored).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
IncidentsV2EditRequestBody
|
Example: {'incident': {'call_url': 'https://zoom.us/foo', 'custom_field_entries': [{'custom_field_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'values': [{'id': '01FCNDV6P870EA6S7TK1DSYDG0', 'value_catalog_entry_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'value_link': 'https://google.com/', 'value_numeric': '123.456', 'value_option_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'value_text': 'This is my text field, I hope you like it', 'value_timestamp': ''}]}], 'incident_role_assignments': [{'assignee': {'email': 'bob@example.com', 'id': '01G0J1EXE7AXZ2C93K61WBPYEH', 'slack_user_id': 'USER123'}, 'incident_role_id': '01FH5TZRWMNAFB0DZ23FD1TV96'}], 'incident_status_id': '01FH5TZRWMNAFB0DZ23FD1TV96', 'incident_timestamp_values': [{'incident_timestamp_id': '01FCNDV6P870EA6S7TK1DSYD5H', 'value': '2021-08-17T13:28:57.801578Z'}], 'name': 'Our database is sad', 'severity_id': '01FH5TZRWMNAFB0DZ23FD1TV96', 'slack_channel_name_override': 'inc-123-database-down', 'summary': "Our database is really really sad, and we don't know why yet."}, 'notify_incident_channel': True}. |
required |
Raises:
Type | Description |
---|---|
UnexpectedStatus
|
If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. |
TimeoutException
|
If the request takes longer than Client.timeout. |
Returns:
Type | Description |
---|---|
Response[IncidentsV2EditResponseBody]
|
Response[IncidentsV2EditResponseBody] |