asset.sync_requested

POST Webhook asset.sync_requested

Headers

knak-signaturestring

Hash-based message authentication code (HMAC) with SHA-256 used to verify that the payload contents were sent by Knak.

Example:eXYGdAHaNVcOLHVABaYIQHIdBTAZDFAT
Knak-Versionstring

The version of the webhook payload.

Example:1.0
Knak-Event-Typestring

The webhook's event type.

Example:asset.sync_requested

Payload

event_typestring
event_idstring
event_datestring
versionstring

Example payload

{
  "event_type": "asset.sync_requested",
  "event_id": "609d7ce223411",
  "event_date": "2023-02-08T17:07:12+00:00",
  "version": "1.0",
  "data": {
    "asset": {
      "id": "609d7ce223411",
      "name": "Spring Newsletter",
      "content_link": "https://enterprise.knak.io/api/published/v1/assets/609d7ce223411/content",
      "folder_path": "Sample Brand/Folder 1/Folder 2/Sample Campaign",
      "campaign": "Sample Campaign",
      "brand": "Sample Brand",
      "version": "1.0",
      "language_code": "es"
    },
    "user": {
      "id": "609d7ce223411",
      "name": "John Doe",
      "email": "john.doe@email.com",
      "roles": [
        "Email Creator",
        "Collaborator"
      ]
    },
    "sync_status": {
      "id": "609d7ce223411",
      "type": "sync",
      "link": "https://enterprise.knak.io/api/published/v1/sync-statuses/609d7ce223411"
    },
    "integration": {
      "name": "Custom Integration"
    }
  }
}

Response

Return a 200 status to indicate that the notification was received.

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.