update(
self,
webhook_id: str,
*,
exclude_prompts: Optional[SequenceNotStr[| Name | Type | Description |
|---|---|---|
exclude_prompts | Optional[SequenceNotStr[str]] | Omit | Default: omitIDs of prompts whose events never fire the webhook, replacing the current list. Omit to keep it. |
headers | Optional[Dict[str, object]] | Omit | Default: omit |
include_prompts | Optional[SequenceNotStr[str]] | Omit | Default: omit |
triggers | Optional[List[Literal['commit', 'tag:create', 'tag:update']]] | Omit | Default: omit |
url | Optional[str] | Omit | Default: omit |
extra_headers | Headers | None | Default: None |
extra_query | Query | None | Default: None |
extra_body | Body | None | Default: None |
timeout | float | httpx.Timeout | None | NotGiven | Default: not_given |
Update a specific prompt webhook.
Omitted fields keep their current values; list fields and headers that are set replace the stored values.
HTTP headers sent with each request, replacing all current headers. Omit to keep them. Masked values (****) from a read are rejected.
IDs of the prompts whose events fire the webhook, replacing the current list. Omit to keep it.
Events that fire the webhook (commit, tag:create, tag:update), replacing the current list. Omit to keep it.
URL that receives the POST requests. Omit to keep the current URL.
Send extra headers
Add additional query parameters to the request
Add additional JSON properties to the request
Override the client-level default timeout for this request, in seconds