Events

The external API's triggered when a transaction is moved

Add Event

Tying an api to a position number by its associated ID

NameTypeDescription
service_idstringThe ID of the service node
event_idstringThe ID of the api
curl -i -X POST "https://api.usedarwin.com/v1/event/add" \
  -u "username:password" \
  -d '{"service_id": "mcs_serue0834bkefdfkjef","event_id": "mcs_evfdhfiuwdse0493refjdn"}'
{
  "message": "successfully added"
}

Remove Event

Untying an api to a position number by its associated ID

NameTypeDescription
service_idstringThe ID of the service node
event_idstringThe ID of the api
curl -i -X POST "https://api.usedarwin.com/v1/event/remove" \
  -u "username:password" \
  -d '{"service_id": "mcs_serue0834bkefdfkjef","event_id": "mcs_evfdhfiuwdse0493refjdn"}'
{
  "message": "successfully removed"
}

Trigger ALL events


Did this page help you?