@@ -23,6 +23,7 @@ def get_webhook_representation(
23
23
event_types : list [WebhookEventType ] | None = None ,
24
24
request_url : str | None = None ,
25
25
payload_template : str | None = None ,
26
+ headers_template : str | None = None ,
26
27
actor_id : str | None = None ,
27
28
actor_task_id : str | None = None ,
28
29
actor_run_id : str | None = None ,
@@ -35,6 +36,7 @@ def get_webhook_representation(
35
36
webhook : dict = {
36
37
'requestUrl' : request_url ,
37
38
'payloadTemplate' : payload_template ,
39
+ 'headersTemplate' : headers_template ,
38
40
'ignoreSslErrors' : ignore_ssl_errors ,
39
41
'doNotRetry' : do_not_retry ,
40
42
'idempotencyKey' : idempotency_key ,
@@ -80,6 +82,7 @@ def update(
80
82
event_types : list [WebhookEventType ] | None = None ,
81
83
request_url : str | None = None ,
82
84
payload_template : str | None = None ,
85
+ headers_template : str | None = None ,
83
86
actor_id : str | None = None ,
84
87
actor_task_id : str | None = None ,
85
88
actor_run_id : str | None = None ,
@@ -95,6 +98,7 @@ def update(
95
98
event_types (list of WebhookEventType, optional): List of event types that should trigger the webhook. At least one is required.
96
99
request_url (str, optional): URL that will be invoked once the webhook is triggered.
97
100
payload_template (str, optional): Specification of the payload that will be sent to request_url
101
+ headers_template (str, optional): Headers that will be sent to the request_url
98
102
actor_id (str, optional): Id of the actor whose runs should trigger the webhook.
99
103
actor_task_id (str, optional): Id of the actor task whose runs should trigger the webhook.
100
104
actor_run_id (str, optional): Id of the actor run which should trigger the webhook.
@@ -111,6 +115,7 @@ def update(
111
115
event_types = event_types ,
112
116
request_url = request_url ,
113
117
payload_template = payload_template ,
118
+ headers_template = headers_template ,
114
119
actor_id = actor_id ,
115
120
actor_task_id = actor_task_id ,
116
121
actor_run_id = actor_run_id ,
@@ -190,6 +195,7 @@ async def update(
190
195
event_types : list [WebhookEventType ] | None = None ,
191
196
request_url : str | None = None ,
192
197
payload_template : str | None = None ,
198
+ headers_template : str | None = None ,
193
199
actor_id : str | None = None ,
194
200
actor_task_id : str | None = None ,
195
201
actor_run_id : str | None = None ,
@@ -205,6 +211,7 @@ async def update(
205
211
event_types (list of WebhookEventType, optional): List of event types that should trigger the webhook. At least one is required.
206
212
request_url (str, optional): URL that will be invoked once the webhook is triggered.
207
213
payload_template (str, optional): Specification of the payload that will be sent to request_url
214
+ headers_template (str, optional): Headers that will be sent to the request_url
208
215
actor_id (str, optional): Id of the actor whose runs should trigger the webhook.
209
216
actor_task_id (str, optional): Id of the actor task whose runs should trigger the webhook.
210
217
actor_run_id (str, optional): Id of the actor run which should trigger the webhook.
@@ -221,6 +228,7 @@ async def update(
221
228
event_types = event_types ,
222
229
request_url = request_url ,
223
230
payload_template = payload_template ,
231
+ headers_template = headers_template ,
224
232
actor_id = actor_id ,
225
233
actor_task_id = actor_task_id ,
226
234
actor_run_id = actor_run_id ,
0 commit comments