Skip to content

Commit 30dc846

Browse files
authored
Update actions.md
1 parent 040c983 commit 30dc846

File tree

1 file changed

+7
-7
lines changed
  • sources/platform/integrations/programming/webhooks

1 file changed

+7
-7
lines changed

sources/platform/integrations/programming/webhooks/actions.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,16 @@ Note that the `eventData` and `resource` properties contain redundant data for b
152152

153153
## Headers template
154154

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.
156156

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:
158158

159159
| Variable | Value |
160160
|---------------------------|-------------------------|
161-
| `host` | request url |
162-
| `Content-Type` | application/json |
163-
| `X-Apify-Webhook` | Apify value |
164-
| `X-Apify-Webhook-Dispatch-Id` | Apify id |
161+
| `Host` | Request URL |
162+
| `Content-Type` | `application/json` |
163+
| `X-Apify-Webhook` | Apify internal value |
164+
| `X-Apify-Webhook-Dispatch-Id` | Apify webhook dispatch ID |
165165
| `X-Apify-Request-Origin` | Apify origin |
166166

167167
## Description
@@ -172,7 +172,7 @@ The description is an optional string that you can add to the webhook. It serves
172172

173173
| Variable | Type | Description |
174174
|-------------|--------|-------------------------------------------------------------------------------------|
175-
| `userId` | string | ID of the user who owns the webhook. |
175+
| `userId` | string | ID of the Apify user who owns the webhook. |
176176
| `createdAt` | string | ISO string date of the webhook's trigger event. |
177177
| `eventType` | string | Type of the trigger event, see [Events](/platform/integrations/webhooks/events). |
178178
| `eventData` | Object | Data associated with the trigger event, see [Events](/platform/integrations/webhooks/events). |

0 commit comments

Comments
 (0)