Staff Reactivated

Notifying when a staff member is reactivated

The event is triggered when an admin sets an inactive staff member as active

Webhook authorization: using a business or directory token.

Subscribing to the Staff Deleted webhook:

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

Staff Deleted Payload Example:

{
  "entity_name": "staff",
  "event_type": "reactivated",
  "data": {
    "business_id": "6c0qu3dv0wp7a1le",
    "staff_id": "7rc1xqwez21k432ky",
    "first_name": null,
    "last_name": null,
    "display_name": "staff",
    "phone": null,
    "email": "[email protected]",
    "role": "user",
    "created_at": "2024-04-17T05:37:26.000-06:00"
  }
}