incident_io_client.api.severities_v1.severities_v1_update
asyncio
async
asyncio(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: SeveritiesV1UpdateRequestBody
) -> Optional[SeveritiesV1UpdateResponseBody]
Update Severities V1
Update an existing severity
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
SeveritiesV1UpdateRequestBody
|
Example: {'description': 'Issues with low impact.', 'name': 'Minor', 'rank': 1}. |
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[SeveritiesV1UpdateResponseBody]
|
SeveritiesV1UpdateResponseBody |
Source code in incident_io_client/api/severities_v1/severities_v1_update.py
asyncio_detailed
async
asyncio_detailed(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: SeveritiesV1UpdateRequestBody
) -> Response[SeveritiesV1UpdateResponseBody]
Update Severities V1
Update an existing severity
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
SeveritiesV1UpdateRequestBody
|
Example: {'description': 'Issues with low impact.', 'name': 'Minor', 'rank': 1}. |
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[SeveritiesV1UpdateResponseBody]
|
Response[SeveritiesV1UpdateResponseBody] |
Source code in incident_io_client/api/severities_v1/severities_v1_update.py
sync
sync(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: SeveritiesV1UpdateRequestBody
) -> Optional[SeveritiesV1UpdateResponseBody]
Update Severities V1
Update an existing severity
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
SeveritiesV1UpdateRequestBody
|
Example: {'description': 'Issues with low impact.', 'name': 'Minor', 'rank': 1}. |
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[SeveritiesV1UpdateResponseBody]
|
SeveritiesV1UpdateResponseBody |
Source code in incident_io_client/api/severities_v1/severities_v1_update.py
sync_detailed
sync_detailed(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: SeveritiesV1UpdateRequestBody
) -> Response[SeveritiesV1UpdateResponseBody]
Update Severities V1
Update an existing severity
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
SeveritiesV1UpdateRequestBody
|
Example: {'description': 'Issues with low impact.', 'name': 'Minor', 'rank': 1}. |
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[SeveritiesV1UpdateResponseBody]
|
Response[SeveritiesV1UpdateResponseBody] |