Skip to main content

Department

v1

Description

This webhook delivers a notification whenever a new department is created in the Fynd Platform's admin panel. It ensures that stakeholders are promptly informed about the addition of a new department.


Supported Type

  • Create
  • Update

Payload

Create

{
"event": {
"id": "Wwe17oLH+tvsqttep8CmJeT7ymoxgufzMIkcDsdKha4=",
"name": "department",
"type": "create",
"version": "1",
"category": "global",
"trace_id": [
"silverbolt.ae319ed0-3d84-11ed-a399-76229295ae38"
],
"created_timestamp": 1664187558581
},
"payload": {
"department": {
"_id": "63317ca6b9b3c6311536034d",
"uid": 360,
"logo": "https://hdn-1.addsale.com/addsale/department/pictures/square-logo/original/UQtD2giBf-department.png",
"name": "Movies26820221549553",
"slug": "movies26820221549553",
"synonyms": [
"withdrawal",
"Mountain",
"male"
],
"is_active": true,
"priority_order": 77
}
},
"contains": [
"department"
]
}



Update

{
"event": {
"id": "iePF50CNOXQq/+DYddUzhrkvWsjxPTLpmyrhnojXaDc=",
"name": "department",
"type": "update",
"version": "1",
"category": "global",
"trace_id": [
"silverbolt.b1e129d8-3d84-11ed-a399-76229295ae38"
],
"created_timestamp": 1664187564765
},
"payload": {
"department": {
"uid": 360,
"logo": "https://hdn-1.addsale.com/addsale/department/pictures/square-logo/original/UQtD2giBf-department.png",
"name": "Movies26820221549553",
"slug": "movies26820221549553",
"synonyms": [
"withdrawal",
"Mountain",
"male",
"abc",
"xyz"
],
"is_active": false,
"priority_order": 19
}
},
"contains": [
"department"
]
}



Object Properties

keyTypeDescription
_idstringunique mongo department record id
uidstringunique id for department
logoimageLogo of department
namestringName of the department
slugstringslug for the department
synonymsstringsynonyms of the department created
is_activebooleanwhether the department is active or not
priority_orderintegerin which order will it be shown