Create new trigger, and assign it an id.
URL
https://my.<region>.fredhopperservices.com/{sin}/trigger/{tn}
Formats
text/plain
HTTP Method(s)
PUT
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 |
Response
HTTP "201 Created" response with empty body. The response contains a Location header that contains the assigned trigger id, and points to the place where the trigger execution can be monitored.
Usage example
The following uses curl to create a trigger 'load-data' for the data id '2010-10-01_15-15-53' to the service instance 'fas:live1' in the 'eu1' region.
The command shows the headers returned by the server (-D - parameters) for illustration purposes as well.
Request:
$ curl -D - -u user:password -X PUT -H "Content-Type: text/plain" --data-binary "data-id=2010-10-01_15-15-53" https://my.eu1.fredhopperservices.com/fas:live1/trigger/load-data HTTP/1.1 201 Created Location: https://my.eu1.fredhopperservices.com/fas:live1/trigger/load-data/2011-02-09_21-28-10 Content-Length: 0 Server: Jetty(7.2.2.v20101205)
The trigger id in this example is '2011-02-09_21-28-10', and execution status can be monitored in https://my.eu1.fredhopperservices.com/fas:live1/trigger/load-data/2011-02-09_21-28-10/status.
Comments
0 comments
Please sign in to leave a comment.