Webhook validation action HTTP response
This topic provides an overview of the properties in a webhook validation action response and displays sample responses.
When you send a webhook validation request, the destination endpoint must quickly return a response. If the endpoint does not respond and validate the command, the workflow action fails and the item does not change its state.
Sample webhook validation action response in JSON format
Webhook validation action response properties:
|
Property |
Value type |
Description |
|---|---|---|
|
|
Boolean |
Indicates whether validation passed and the item can move to another state. |
|
|
string |
Optional message to send with the response. |
An example of a response that validates a command and approves moving to the next state:
JSON:
{"IsValid":true,"Message":""}XML:
<data><IsValid>true</IsValid><Message></Message></data>An example of a response that rejects moving to the next state:
JSON:
{"IsValid":false,"Message":"Error message will be seen on UI and logged."}XML:
<data><IsValid>false</IsValid><Message>Error message will be seen on UI and logged.</Message></data>Timeouts
You can change the maximum response waiting time by modifying the Sitecore.HttpClientTimeout property in the Sitecore.config file.
The default maximum response waiting time is 3000 milliseconds. This value can be set to a maximum of 10000 milliseconds.