incident_io_client.api.incident_roles_v1.incident_roles_v1_update
asyncio
async
asyncio(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: IncidentRolesV1UpdateRequestBody
) -> Optional[IncidentRolesV1UpdateResponseBody]
Update Incident Roles V1
Update an existing incident role
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
IncidentRolesV1UpdateRequestBody
|
Example: {'description': 'The person currently coordinating the incident', 'instructions': 'Take point on the incident; Make sure people are clear on responsibilities', 'name': 'Incident Lead', 'required': False, 'shortform': 'lead'}. |
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[IncidentRolesV1UpdateResponseBody]
|
IncidentRolesV1UpdateResponseBody |
Source code in incident_io_client/api/incident_roles_v1/incident_roles_v1_update.py
asyncio_detailed
async
asyncio_detailed(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: IncidentRolesV1UpdateRequestBody
) -> Response[IncidentRolesV1UpdateResponseBody]
Update Incident Roles V1
Update an existing incident role
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
IncidentRolesV1UpdateRequestBody
|
Example: {'description': 'The person currently coordinating the incident', 'instructions': 'Take point on the incident; Make sure people are clear on responsibilities', 'name': 'Incident Lead', 'required': False, 'shortform': 'lead'}. |
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[IncidentRolesV1UpdateResponseBody]
|
Response[IncidentRolesV1UpdateResponseBody] |
Source code in incident_io_client/api/incident_roles_v1/incident_roles_v1_update.py
sync
sync(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: IncidentRolesV1UpdateRequestBody
) -> Optional[IncidentRolesV1UpdateResponseBody]
Update Incident Roles V1
Update an existing incident role
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
IncidentRolesV1UpdateRequestBody
|
Example: {'description': 'The person currently coordinating the incident', 'instructions': 'Take point on the incident; Make sure people are clear on responsibilities', 'name': 'Incident Lead', 'required': False, 'shortform': 'lead'}. |
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[IncidentRolesV1UpdateResponseBody]
|
IncidentRolesV1UpdateResponseBody |
Source code in incident_io_client/api/incident_roles_v1/incident_roles_v1_update.py
sync_detailed
sync_detailed(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: IncidentRolesV1UpdateRequestBody
) -> Response[IncidentRolesV1UpdateResponseBody]
Update Incident Roles V1
Update an existing incident role
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
IncidentRolesV1UpdateRequestBody
|
Example: {'description': 'The person currently coordinating the incident', 'instructions': 'Take point on the incident; Make sure people are clear on responsibilities', 'name': 'Incident Lead', 'required': False, 'shortform': 'lead'}. |
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[IncidentRolesV1UpdateResponseBody]
|
Response[IncidentRolesV1UpdateResponseBody] |