incident_io_client.api.catalog_v2.catalog_v2_update_entry
asyncio
async
asyncio(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: CatalogV2UpdateEntryRequestBody
) -> Optional[CatalogV2UpdateEntryResponseBody]
UpdateEntry Catalog V2
Updates an existing catalog entry.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
CatalogV2UpdateEntryRequestBody
|
Example: {'aliases': ['lawrence@incident.io', 'lawrence'], 'attribute_values': {'abc123': {'array_value': [{'literal': 'SEV123', 'reference': 'incident.severity'}], 'value': {'literal': 'SEV123', 'reference': 'incident.severity'}}}, 'external_id': '761722cd-d1d7-477b-ac7e-90f9e079dc33', 'name': 'Primary On-call', 'rank': 3}. |
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[CatalogV2UpdateEntryResponseBody]
|
CatalogV2UpdateEntryResponseBody |
Source code in incident_io_client/api/catalog_v2/catalog_v2_update_entry.py
asyncio_detailed
async
asyncio_detailed(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: CatalogV2UpdateEntryRequestBody
) -> Response[CatalogV2UpdateEntryResponseBody]
UpdateEntry Catalog V2
Updates an existing catalog entry.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
CatalogV2UpdateEntryRequestBody
|
Example: {'aliases': ['lawrence@incident.io', 'lawrence'], 'attribute_values': {'abc123': {'array_value': [{'literal': 'SEV123', 'reference': 'incident.severity'}], 'value': {'literal': 'SEV123', 'reference': 'incident.severity'}}}, 'external_id': '761722cd-d1d7-477b-ac7e-90f9e079dc33', 'name': 'Primary On-call', 'rank': 3}. |
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[CatalogV2UpdateEntryResponseBody]
|
Response[CatalogV2UpdateEntryResponseBody] |
Source code in incident_io_client/api/catalog_v2/catalog_v2_update_entry.py
sync
sync(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: CatalogV2UpdateEntryRequestBody
) -> Optional[CatalogV2UpdateEntryResponseBody]
UpdateEntry Catalog V2
Updates an existing catalog entry.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
CatalogV2UpdateEntryRequestBody
|
Example: {'aliases': ['lawrence@incident.io', 'lawrence'], 'attribute_values': {'abc123': {'array_value': [{'literal': 'SEV123', 'reference': 'incident.severity'}], 'value': {'literal': 'SEV123', 'reference': 'incident.severity'}}}, 'external_id': '761722cd-d1d7-477b-ac7e-90f9e079dc33', 'name': 'Primary On-call', 'rank': 3}. |
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[CatalogV2UpdateEntryResponseBody]
|
CatalogV2UpdateEntryResponseBody |
Source code in incident_io_client/api/catalog_v2/catalog_v2_update_entry.py
sync_detailed
sync_detailed(
id: str,
*,
client: Union[AuthenticatedClient, Client],
body: CatalogV2UpdateEntryRequestBody
) -> Response[CatalogV2UpdateEntryResponseBody]
UpdateEntry Catalog V2
Updates an existing catalog entry.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id |
str
|
|
required |
body |
CatalogV2UpdateEntryRequestBody
|
Example: {'aliases': ['lawrence@incident.io', 'lawrence'], 'attribute_values': {'abc123': {'array_value': [{'literal': 'SEV123', 'reference': 'incident.severity'}], 'value': {'literal': 'SEV123', 'reference': 'incident.severity'}}}, 'external_id': '761722cd-d1d7-477b-ac7e-90f9e079dc33', 'name': 'Primary On-call', 'rank': 3}. |
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[CatalogV2UpdateEntryResponseBody]
|
Response[CatalogV2UpdateEntryResponseBody] |