incident_io_client.api.incident_roles_v1.incident_roles_v1_create
asyncio
async
asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: IncidentRolesV1CreateRequestBody
) -> Optional[IncidentRolesV1CreateResponseBody]
Create Incident Roles V1
Create a new incident role
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
IncidentRolesV1CreateRequestBody
|
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[IncidentRolesV1CreateResponseBody]
|
IncidentRolesV1CreateResponseBody |
Source code in incident_io_client/api/incident_roles_v1/incident_roles_v1_create.py
asyncio_detailed
async
asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: IncidentRolesV1CreateRequestBody
) -> Response[IncidentRolesV1CreateResponseBody]
Create Incident Roles V1
Create a new incident role
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
IncidentRolesV1CreateRequestBody
|
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[IncidentRolesV1CreateResponseBody]
|
Response[IncidentRolesV1CreateResponseBody] |
Source code in incident_io_client/api/incident_roles_v1/incident_roles_v1_create.py
sync
sync(
*,
client: Union[AuthenticatedClient, Client],
body: IncidentRolesV1CreateRequestBody
) -> Optional[IncidentRolesV1CreateResponseBody]
Create Incident Roles V1
Create a new incident role
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
IncidentRolesV1CreateRequestBody
|
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[IncidentRolesV1CreateResponseBody]
|
IncidentRolesV1CreateResponseBody |
Source code in incident_io_client/api/incident_roles_v1/incident_roles_v1_create.py
sync_detailed
sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: IncidentRolesV1CreateRequestBody
) -> Response[IncidentRolesV1CreateResponseBody]
Create Incident Roles V1
Create a new incident role
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
IncidentRolesV1CreateRequestBody
|
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[IncidentRolesV1CreateResponseBody]
|
Response[IncidentRolesV1CreateResponseBody] |