Category Service events

Overview

Webhook events related to the creation, update, and deletion of a category tree and to the creation and deletion of a category assignment.

Available events

Event typeEvent schema
category.created
Copy
Copied
{
  "id": "String",
  "parentId": "String",
  "name": {
    "name" : "Map"
  },
  "description": {
    "description": "Map"
  },
  "slug": {
    "code": "Map"
  },
  "ecn": {
    "externalCategoryNumbers": [
      "String"
    ]
  },
  "validity": {
    "from": "String",
    "to": "String"
  },
  "position": {
    "position": "Number"
  },
  "publish": {
    "published": "Boolean"
  },
  "mixins": "Map",
  "metadata": {
    "version": "Number",
    "createdAt": "String",
    "modifiedAt": "String"
  }
}
category.updated
Copy
Copied
{
  "id": "String",
  "parentId": "String",
  "name": {
    "name" : "Map"
  },
  "description": {
    "description": "Map"
  },
  "slug": {
    "code": "Map"
  },
  "ecn": {
    "externalCategoryNumbers": [
      "String"
    ]
  },
  "validity": {
    "from": "String",
    "to": "String"
  },
  "position": {
    "position": "Number"
  },
  "publish": {
    "published": "Boolean"
  },
  "mixins": "Map",
  "metadata": {
    "version": "Number",
    "createdAt": "String",
    "modifiedAt": "String"
  }
}
category.deleted
Copy
Copied
{
  "id": "String",
  "parentId": "String"
}
assignment.created
Copy
Copied
{
  "categoryId": "String",
  "assignment": {
    "id": "String",
    "categoryId": "String",
    "createdAt": "String",
    "ref": {
      "id": "String",
      "type": "String"
    }
  },
  "metadata": {
    "createdAt": "String"
  }
}
assignment.deleted
Copy
Copied
{
  "categoryId": "String",
  "assignments": [
    {
      "id": "String",
      "categoryId": "String",
      "createdAt": "String",
      "ref": {
        "id": "String",
        "type": "String"
      }
    }
  ]
}