katana_public_api_client.api.webhook.update_webhook¶
katana_public_api_client.api.webhook.update_webhook
¶
Classes¶
Functions¶
asyncio(id, *, client, body)
async
¶
Update a webhook
Updates the specified webhook by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateWebhookRequest) –Request payload for updating an existing webhook subscription configuration Example: {'url': 'https://api.customer.com/webhooks/katana-v2', 'enabled': True, 'subscribed_events': ['sales_order.created', 'sales_order.updated', 'sales_order.delivered', 'current_inventory.product_updated', 'manufacturing_order.done', 'purchase_order.received'], 'description': 'Updated ERP integration webhook with expanded event coverage'}.
Raises:
-
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:
-
DetailedErrorResponse | ErrorResponse | Webhook | None–Union[DetailedErrorResponse, ErrorResponse, Webhook]
Source code in katana_public_api_client/api/webhook/update_webhook.py
asyncio_detailed(id, *, client, body)
async
¶
Update a webhook
Updates the specified webhook by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateWebhookRequest) –Request payload for updating an existing webhook subscription configuration Example: {'url': 'https://api.customer.com/webhooks/katana-v2', 'enabled': True, 'subscribed_events': ['sales_order.created', 'sales_order.updated', 'sales_order.delivered', 'current_inventory.product_updated', 'manufacturing_order.done', 'purchase_order.received'], 'description': 'Updated ERP integration webhook with expanded event coverage'}.
Raises:
-
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:
-
Response[DetailedErrorResponse | ErrorResponse | Webhook]–Response[Union[DetailedErrorResponse, ErrorResponse, Webhook]]
Source code in katana_public_api_client/api/webhook/update_webhook.py
sync(id, *, client, body)
¶
Update a webhook
Updates the specified webhook by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateWebhookRequest) –Request payload for updating an existing webhook subscription configuration Example: {'url': 'https://api.customer.com/webhooks/katana-v2', 'enabled': True, 'subscribed_events': ['sales_order.created', 'sales_order.updated', 'sales_order.delivered', 'current_inventory.product_updated', 'manufacturing_order.done', 'purchase_order.received'], 'description': 'Updated ERP integration webhook with expanded event coverage'}.
Raises:
-
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:
-
DetailedErrorResponse | ErrorResponse | Webhook | None–Union[DetailedErrorResponse, ErrorResponse, Webhook]
Source code in katana_public_api_client/api/webhook/update_webhook.py
sync_detailed(id, *, client, body)
¶
Update a webhook
Updates the specified webhook by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Parameters:
-
id(int) – -
body(UpdateWebhookRequest) –Request payload for updating an existing webhook subscription configuration Example: {'url': 'https://api.customer.com/webhooks/katana-v2', 'enabled': True, 'subscribed_events': ['sales_order.created', 'sales_order.updated', 'sales_order.delivered', 'current_inventory.product_updated', 'manufacturing_order.done', 'purchase_order.received'], 'description': 'Updated ERP integration webhook with expanded event coverage'}.
Raises:
-
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:
-
Response[DetailedErrorResponse | ErrorResponse | Webhook]–Response[Union[DetailedErrorResponse, ErrorResponse, Webhook]]