incident_io_client.api.incident_memberships_v1.incident_memberships_v1_create
asyncio
async
asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: IncidentMembershipsV1CreateRequestBody
) -> Optional[IncidentMembershipsV1CreateResponseBody]
Create Incident Memberships V1
Makes a user a member of a private incident
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
IncidentMembershipsV1CreateRequestBody
|
Example: {'incident_id': '01ET65M7ZADYFCKD4K1AE2QNMC', 'user_id': '01FCQSP07Z74QMMYPDDGQB9FTG'}. |
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[IncidentMembershipsV1CreateResponseBody]
|
IncidentMembershipsV1CreateResponseBody |
Source code in incident_io_client/api/incident_memberships_v1/incident_memberships_v1_create.py
asyncio_detailed
async
asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: IncidentMembershipsV1CreateRequestBody
) -> Response[IncidentMembershipsV1CreateResponseBody]
Create Incident Memberships V1
Makes a user a member of a private incident
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
IncidentMembershipsV1CreateRequestBody
|
Example: {'incident_id': '01ET65M7ZADYFCKD4K1AE2QNMC', 'user_id': '01FCQSP07Z74QMMYPDDGQB9FTG'}. |
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[IncidentMembershipsV1CreateResponseBody]
|
Response[IncidentMembershipsV1CreateResponseBody] |
Source code in incident_io_client/api/incident_memberships_v1/incident_memberships_v1_create.py
sync
sync(
*,
client: Union[AuthenticatedClient, Client],
body: IncidentMembershipsV1CreateRequestBody
) -> Optional[IncidentMembershipsV1CreateResponseBody]
Create Incident Memberships V1
Makes a user a member of a private incident
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
IncidentMembershipsV1CreateRequestBody
|
Example: {'incident_id': '01ET65M7ZADYFCKD4K1AE2QNMC', 'user_id': '01FCQSP07Z74QMMYPDDGQB9FTG'}. |
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[IncidentMembershipsV1CreateResponseBody]
|
IncidentMembershipsV1CreateResponseBody |
Source code in incident_io_client/api/incident_memberships_v1/incident_memberships_v1_create.py
sync_detailed
sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: IncidentMembershipsV1CreateRequestBody
) -> Response[IncidentMembershipsV1CreateResponseBody]
Create Incident Memberships V1
Makes a user a member of a private incident
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
IncidentMembershipsV1CreateRequestBody
|
Example: {'incident_id': '01ET65M7ZADYFCKD4K1AE2QNMC', 'user_id': '01FCQSP07Z74QMMYPDDGQB9FTG'}. |
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[IncidentMembershipsV1CreateResponseBody]
|
Response[IncidentMembershipsV1CreateResponseBody] |