incident_io_client.api.severities_v1.severities_v1_create
asyncio
async
asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: SeveritiesV1CreateRequestBody
) -> Optional[SeveritiesV1CreateResponseBody]
Create Severities V1
Create a new severity
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
SeveritiesV1CreateRequestBody
|
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[SeveritiesV1CreateResponseBody]
|
SeveritiesV1CreateResponseBody |
Source code in incident_io_client/api/severities_v1/severities_v1_create.py
asyncio_detailed
async
asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: SeveritiesV1CreateRequestBody
) -> Response[SeveritiesV1CreateResponseBody]
Create Severities V1
Create a new severity
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
SeveritiesV1CreateRequestBody
|
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[SeveritiesV1CreateResponseBody]
|
Response[SeveritiesV1CreateResponseBody] |
Source code in incident_io_client/api/severities_v1/severities_v1_create.py
sync
sync(
*,
client: Union[AuthenticatedClient, Client],
body: SeveritiesV1CreateRequestBody
) -> Optional[SeveritiesV1CreateResponseBody]
Create Severities V1
Create a new severity
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
SeveritiesV1CreateRequestBody
|
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[SeveritiesV1CreateResponseBody]
|
SeveritiesV1CreateResponseBody |
Source code in incident_io_client/api/severities_v1/severities_v1_create.py
sync_detailed
sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: SeveritiesV1CreateRequestBody
) -> Response[SeveritiesV1CreateResponseBody]
Create Severities V1
Create a new severity
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
SeveritiesV1CreateRequestBody
|
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[SeveritiesV1CreateResponseBody]
|
Response[SeveritiesV1CreateResponseBody] |