Guide to upload a new data-incremental.zip, and assign it a data id.
URL
https://my.<region>.fredhopperservices.com/{sin}/data/input/data-incremental.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 |
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-incremental.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-incremental.zip https://my.eu1.fredhopperservices.com/fas:live1/data/input/data-incremental.zip\?checksum=731b0140b43a830255cc2dd28c4923fd HTTP/1.1 201 Created Content-Type: text/plain Location: https://my.eu1.fredhopperservices.com/fas:live1/data/input/2010-10-01_15-15-53/ data-id=2010-10-01_15-15-53
The returned data id in this example is '2010-10-01_15-15-53'.
Comments
0 comments
Please sign in to leave a comment.