You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sources/platform/integrations/programming/webhooks/actions.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,16 +152,16 @@ Note that the `eventData` and `resource` properties contain redundant data for b
152
152
153
153
## Headers template
154
154
155
-
The headers template is a JSON-like string where you can add additional information to the default header of the webhook request. You can pass the variables in the same way as in [payload template](#payload-template) (including the use of string interpolation and available variables). The resulting headers need to be a valid `json` object and values can be strings only.
155
+
The headers template is a JSON-like text where you can add additional information to the default HTTP header of the webhook request. You can pass the variables in the same way as in [payload template](#payload-template), including the use of string interpolation and the available variables. The resulting interpolated text need to be a valid JSON object, and values can be strings only.
156
156
157
-
Note that the following keys are hard-coded and will be always be rewritten:
157
+
Note that the following HTTP headers are always set by the system and your changes will always be rewritten:
|`userId`| string | ID of the user who owns the webhook. |
175
+
|`userId`| string | ID of the Apify user who owns the webhook. |
176
176
|`createdAt`| string | ISO string date of the webhook's trigger event. |
177
-
|`eventType`| string | Type of the trigger event, [see Events](/platform/integrations/webhooks/events). |
178
-
|`eventData`| Object | Data associated with the trigger event, [see Events](/platform/integrations/webhooks/events). |
177
+
|`eventType`| string | Type of the trigger event, see [Events](/platform/integrations/webhooks/events). |
178
+
|`eventData`| Object | Data associated with the trigger event, see [Events](/platform/integrations/webhooks/events). |
179
179
|`resource`| Object | The resource that caused the trigger event. |
180
180
|`globals`| Object | Data available in global context. Contains `dateISO` (date of webhook's trigger event in ISO 8601 format) and `dateUnix` (date of trigger event in Unix time in seconds) |
0 commit comments