incident_io_client.api.custom_field_options_v1.custom_field_options_v1_create
asyncio
async
asyncio(
*,
client: Union[AuthenticatedClient, Client],
body: CustomFieldOptionsV1CreateRequestBody
) -> Optional[CustomFieldOptionsV1CreateResponseBody]
Create Custom Field Options V1
Create a custom field option. If the sort key is not supplied, it'll default to 1000, so the option appears near the end of the list.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
CustomFieldOptionsV1CreateRequestBody
|
Example: {'custom_field_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'sort_key': 10, 'value': 'Product'}. |
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[CustomFieldOptionsV1CreateResponseBody]
|
CustomFieldOptionsV1CreateResponseBody |
Source code in incident_io_client/api/custom_field_options_v1/custom_field_options_v1_create.py
asyncio_detailed
async
asyncio_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: CustomFieldOptionsV1CreateRequestBody
) -> Response[CustomFieldOptionsV1CreateResponseBody]
Create Custom Field Options V1
Create a custom field option. If the sort key is not supplied, it'll default to 1000, so the option appears near the end of the list.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
CustomFieldOptionsV1CreateRequestBody
|
Example: {'custom_field_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'sort_key': 10, 'value': 'Product'}. |
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[CustomFieldOptionsV1CreateResponseBody]
|
Response[CustomFieldOptionsV1CreateResponseBody] |
Source code in incident_io_client/api/custom_field_options_v1/custom_field_options_v1_create.py
sync
sync(
*,
client: Union[AuthenticatedClient, Client],
body: CustomFieldOptionsV1CreateRequestBody
) -> Optional[CustomFieldOptionsV1CreateResponseBody]
Create Custom Field Options V1
Create a custom field option. If the sort key is not supplied, it'll default to 1000, so the option appears near the end of the list.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
CustomFieldOptionsV1CreateRequestBody
|
Example: {'custom_field_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'sort_key': 10, 'value': 'Product'}. |
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[CustomFieldOptionsV1CreateResponseBody]
|
CustomFieldOptionsV1CreateResponseBody |
Source code in incident_io_client/api/custom_field_options_v1/custom_field_options_v1_create.py
sync_detailed
sync_detailed(
*,
client: Union[AuthenticatedClient, Client],
body: CustomFieldOptionsV1CreateRequestBody
) -> Response[CustomFieldOptionsV1CreateResponseBody]
Create Custom Field Options V1
Create a custom field option. If the sort key is not supplied, it'll default to 1000, so the option appears near the end of the list.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body |
CustomFieldOptionsV1CreateRequestBody
|
Example: {'custom_field_id': '01FCNDV6P870EA6S7TK1DSYDG0', 'sort_key': 10, 'value': 'Product'}. |
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[CustomFieldOptionsV1CreateResponseBody]
|
Response[CustomFieldOptionsV1CreateResponseBody] |