younifyd
Menu

Resend Webhook Request

Resend a Webhook Request

POST/hubs/{hubId}/webhooks/{webhookId}/requests/{requestId}/resend

Use it in a workflow

  1. Add a step and choose the Amplience connector.
  2. Pick the Resend Webhook Request action (under Webhooks).
  3. Fill in the fields below, then reference the result from later steps as {{resendWebhookRequest.response.data}}.

Request

Path parameters

hubIdstringrequired

Hub ID

webhookIdstringrequired

Webhook ID

requestIdstringrequired

Webhook Request ID

Response

Returns 200 with an object. Read it in later steps with {{resendWebhookRequest.response.data.<field>}}.

idstring

ID

eventIdstring

ID

eventNamearray<string>

List of events to register the Webhook against

requestStatestring

One ofQUEUEDSCHEDULEDSUCCESSFAILEDPROCESSING_REQUIREDPROCESSING_FAILEDFILTEREDRESEND_REQUEST

attemptsinteger
requestobject
urlstring
headersobject
customHeadersarray<object>3 fields
bodystring
invocationsarray<object>
invocationTimestampstring (date-time)

Date/Time

requestobject4 fields
evaluatedFiltersobject
filtersarray<object>1 fields
resultsarray<object>1 fields
customPayloadobject

Custom Payload

typestringrequired

Type of Custom Payload

One oftext/x-handlebars-template

valuestringrequired
errorobject1 fields
createdTimestampstring (date-time)

Created Date

scheduledTimestampstring (date-time)

Date/Time

_linksobject
selfobject1 fields
requestany
resendany
previewany
json
{
  "id": "00112233445566778899aabb",
  "eventId": "00112233445566778899aabb",
  "eventName": [
    "dynamic-content.snapshot.published"
  ],
  "requestState": "SUCCESS",
  "attempts": 1,
  "request": {
    "url": "string",
    "headers": {},
    "customHeaders": [
      {
        "key": "X-Custom-Header",
        "value": "123",
        "secret": false
      }
    ],
    "body": "string"
  },
  "invocations": [
    {
      "invocationTimestamp": "2019-01-01T00:00:00.000Z",
      "request": {
        "url": "http://example.com",
        "headers": {
          "X-Amplience-Hmac-Sha256": "1VVTWEZPxOGIkTL9b5V6rEjiiP46N2yHg/pYpLmcaKA=",
          "User-Agent": "Amplience-Webhook/0.1",
          "Content-Length": 171,
          "Content-Type": "application/json"
        },
        "body": "{\"sequenceId\":1,\"eventId\":\"8e5b697d-7c32-4e30-8ddd-2601808131d9\",\"eventName\":\"dynamic-content.edition.scheduled\",\"system\":\"dynamic-content\",\"resource\":\"0001\",\"payload\":{}}",
        "response": {
          "statusCode": 200,
          "headers": [
            "Connection: close",
            "Server: gunicorn/19.8.1",
            "Date: Tue, 15 May 2018 12:07:13 GMT",
            "Content-Type: application/json",
            "Content-Length: 3",
            "Access-Control-Allow-Origin: *",
            "Access-Control-Allow-Credentials: true",
            "Via: 1.1 vegur"
          ],
          "body": "..."
        }
      }
    }
  ],
  "evaluatedFilters": {
    "filters": [
      {
        "type": "equal",
        "arguments": [
          {
            "jsonPath": "$.payload.id"
          },
          {
            "value": "abc"
          }
        ]
      },
      {
        "type": "in",
        "arguments": [
          {
            "jsonPath": "$.payload.id"
          },
          {
            "value": [
              "abc",
              "def"
            ]
          }
        ]
      },
      {
        "type": "equal",
        "arguments": [
          {
            "jsonPath": "$.payload.not_present"
          },
          {
            "value": "123"
          }
        ]
      }
    ],
    "results": [
      {
        "status": "UNMATCHED"
      },
      {
        "status": "MATCHED",
        "index": 1
      },
      {
        "status": "IGNORED"
      }
    ]
  },
  "customPayload": {
    "type": "text/x-handlebars-template",
    "value": "{{#withDeliveryContentItem contentItemId=payload.rootContentItem.id account=\"account-name\" stagingEnvironment=\"staging-environment-url\"}} ... {/withDeliveryContentItem}}",
    "error": {
      "message": "string"
    }
  },
  "createdTimestamp": "2019-01-01T00:00:00.000Z",
  "scheduledTimestamp": "2019-01-01T00:00:00.000Z",
  "_links": {
    "self": {
      "href": "https://api.amplience.net/v2/content/hubs/00112233445566778899aabb/webhooks/00112233445566778899aabb/requests/00112233445566778899aabb"
    },
    "request": null,
    "resend": null,
    "preview": null
  }
}

Need more? See the Amplience guide for connection setup and behaviour shared by every action.

Resend Webhook Request — Amplience — Documentation