Events
The external API's triggered when a transaction is moved
Add Event
Tying an api to a position number by its associated ID
| Name | Type | Description |
|---|---|---|
| service_id | string | The ID of the service node |
| event_id | string | The 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
| Name | Type | Description |
|---|---|---|
| service_id | string | The ID of the service node |
| event_id | string | The 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
Updated less than a minute ago
Did this page help you?
