incident_io_client.api.incident_roles_v2.incident_roles_v2_create
            asyncio
  
      async
  
asyncio(
    *,
    client: Union[AuthenticatedClient, Client],
    body: IncidentRolesV2CreateRequestBody
) -> Optional[IncidentRolesV2CreateResponseBody]
Create Incident Roles V2
Create a new incident role
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| body | IncidentRolesV2CreateRequestBody | Example: {'description': 'The person currently coordinating the incident', 'instructions': 'Take point on the incident; Make sure people are clear on responsibilities', 'name': 'Incident Lead', '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[IncidentRolesV2CreateResponseBody] | IncidentRolesV2CreateResponseBody | 
Source code in incident_io_client/api/incident_roles_v2/incident_roles_v2_create.py
              
            asyncio_detailed
  
      async
  
asyncio_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    body: IncidentRolesV2CreateRequestBody
) -> Response[IncidentRolesV2CreateResponseBody]
Create Incident Roles V2
Create a new incident role
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| body | IncidentRolesV2CreateRequestBody | Example: {'description': 'The person currently coordinating the incident', 'instructions': 'Take point on the incident; Make sure people are clear on responsibilities', 'name': 'Incident Lead', '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[IncidentRolesV2CreateResponseBody] | Response[IncidentRolesV2CreateResponseBody] | 
Source code in incident_io_client/api/incident_roles_v2/incident_roles_v2_create.py
              sync
sync(
    *,
    client: Union[AuthenticatedClient, Client],
    body: IncidentRolesV2CreateRequestBody
) -> Optional[IncidentRolesV2CreateResponseBody]
Create Incident Roles V2
Create a new incident role
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| body | IncidentRolesV2CreateRequestBody | Example: {'description': 'The person currently coordinating the incident', 'instructions': 'Take point on the incident; Make sure people are clear on responsibilities', 'name': 'Incident Lead', '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[IncidentRolesV2CreateResponseBody] | IncidentRolesV2CreateResponseBody | 
Source code in incident_io_client/api/incident_roles_v2/incident_roles_v2_create.py
              sync_detailed
sync_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
    body: IncidentRolesV2CreateRequestBody
) -> Response[IncidentRolesV2CreateResponseBody]
Create Incident Roles V2
Create a new incident role
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| body | IncidentRolesV2CreateRequestBody | Example: {'description': 'The person currently coordinating the incident', 'instructions': 'Take point on the incident; Make sure people are clear on responsibilities', 'name': 'Incident Lead', '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[IncidentRolesV2CreateResponseBody] | Response[IncidentRolesV2CreateResponseBody] |