Guide to upload a new data.zip, and assign it a data id.
URL
https://my.<region>.fredhopperservices.com/{sin}/data/input/data.zip?checksum={checksum}
Formats
application/zip
|
Limitations for ZIP Files The data.zip must conform to the original zip specification. Fredhopper Managed Services do not support any extensions like ZIP64 or the 7-zip compression method. |
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. |
| {checksum} | Yes | MD5 checksum of the file (be careful, to not remove any leading zero's, so toString methods do) |
Response
HTTP "201 Created" response with empty body. The response contains a Location header that contains the assigned data id. The response body contains the assigned data id in the form 'data-id=XXXXXXX'.
Usage example
The following uses curl to upload the local file 'data.zip' 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.
The checksum was generated using md5sum (md5sum(1) man page, Windows download)
Request:
$ curl -D - -u username:password -X PUT -H "Content-Type: application/zip" --data-binary @data.zip https://my.eu1.fredhopperservices.com/fas:live1/data/input/data.zip?checksum=0310bfcd9c99be1042a9f027ac5899e2 HTTP/1.1 201 Created Content-Type: text/plain Location: https://my.eu1.fredhopperservices.com/fas:live1/data/input/2011-02-09_21-19-25/ data-id=2011-02-09_21-19-25
The returned data id in this example is '2011-02-09_21-19-25'.
Comments
0 comments
Please sign in to leave a comment.