Staff Updated

Notifying when a staff member details are updated

The event is triggered when a staff member is updated

Webhook authorization: using a business or directory token.

Subscribing to the Staff Updated webhook:

curl --location --request POST '/platform/v1/webhook/subscribe' \
--header 'Authorization: "Bearer API_TOKEN"'\
--header 'Content-Type: application/json' \
--data-raw '{
"event": "staff/updated",
"target_url": "URL"
}'

Staff Updated Payload Example:

{
  "entity_name": "staff",
  "event_type": "updated",
  "data": {
    "business_id": "9i87qbjv6kec4kua",
    "staff_id": "h8hfrzuiac4e2uad",
    "first_name": "new",
    "last_name": "staff",
    "display_name": "New Staff",
    "phone": 1234567890,
    "email": "[email protected]",
    "role": "user",
    "created_at": "2021-08-15T14:56:41.000+03:00",
    "state": "active"
  }
}