This article explains how to get the status of a trigger via REST API.
URL to be used
https://my.<region>.fredhopperservices.com/{sin}/trigger/{tn}/{id}/status
Formats
text/plain
HTTP Method(s)
GET
Requires Authentication
Yes
Parameters
| Parameter | Required | Description |
|---|---|---|
| {sin} | Yes | Name of the service instance, for example fas:live1 or fas:test1. |
| {tn} | Yes | Name of the trigger, for example load-data |
| {id} | Yes | Trigger id |
Response
HTTP "200 OK" response with the textual status of the trigger.
The available status codes are documented in the Trigger Status Reference.
Usage example
The following uses a curl command to get the status of the 'load-data' trigger with id '2010-10-01_15-10-00' for the service instance 'fas:live1' in the 'us1' region.
The command shows the headers returned by the server (-D - parameters) for illustration purposes as well.
Request:
$ curl -s -D - -u user:password https://my.us1.fredhopperservices.com/fas:live1/trigger/load-data/2010-10-01_15-10-00/status HTTP/1.1 200 OK Content-Type: text/plain SUCCESS Finished at Fri, 01 Oct 2010 15:15:54 GMT
Comments
0 comments
Please sign in to leave a comment.