Upload Image to Repository

The URL for this call is returned in the response from the Pre-Signed URL endpoint. To continue the image upload process, you must now complete the step below. After completion, the final call to the Link Product endpoint can be made.

  • Make a PUT call to the pre-signed URL that was returned in the previous step.
    • Include your image file as binary data in the request body
    • Specify the Content-Type in the header. This should be either image/png or image/jpeg.

🚧

Exclude the JWT

The unique Pre-Signed URL does not use Treez self-signed JWT authentication, and will return an error if the JWT is included in the header. Make sure it is excluded from this call.

curl --location --request PUT 'https://file-management-dev-public-files.s3.us-west-2.amazonaws.com/b1226d0b-4940-4edf-aab3/887beb84-d7eb-4fac-70b6949c3a4d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIA3ORC4SIXIZEVTISZ%2F0%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20250620T214620Z&X-Amz-Expires=3600&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEN7%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIQDAvD4yZDIyqshv%2F3Y2vPMm8o8eunahezFzPaZ8p807wwIgEfHKRzkiy1hE9tpINxdRG1HlDeN3ESJE4AlYO%2Fx98w0qrgMIx%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgw3ODcxMjU5MzI1OTAiDFRYW9Z25UhjSrMw7CqCA5uDKZ5y7zfJ27NpjlTIu1ICt%2F9oWKb007EI2DgSQ35AiRFLtLr8E53k7GUy9cih7g6Xh3%2BK4dueBgf2dr2sEWh1vBXd%2FI92waJHq4b5hpsAPpziSxRt3HLscPkx2TE7CHatOfIoBXD4gcPd3p78CpDD%2BuB42zJK0Xgcj95qAlDmt6%2FVcc8NF%2FAN6Z1TpinWAjxdPEobTypLhOEDfWOGoIc%2B2wor4TIvGPac1HZkCeKhAyipcNY1%2F9NfKPksaIfoS77MnEyvbFST5nW8lkPOEJiycdaMb6YD4qkk2kJYEkT6GtSawKEVER75xl1rNlm9YlsRNz1%2BbuxmdKE8bozlul%2BonvA1%2FlOEj5B8keMyMr8vl6wWLrOgeNeL5Xn6YbXtd7%2FBaKJiulm%2BMVEehFK8PK3BQx1QZVW%2BzfYYPc5OHTSnMKqt18IGOp0BorhJWWxoDCEj8X8L3Ggl2tNmo7t7oCW0IYP4pdxhMg5cRDS3sqqizsYkQnRCmuHG%2BNQ%2BrFcQhSfF0%2BtINVJBoNc0VF6wcF6QXX70mXdF3POdIHfy2S1aaI%2Bms1bPWF0QnO69cD84dDEomoV5SZqxiNHOvkX4thE6Azzn7yp3PltIjXqtVBkaMQ3k5RJXrpRegRPBzWuf4rrk6zjwaw%3D%3D&X-Amz-Signature=35cc311c132cfdd9345c9ee7b90ba02639e7f325101c8287ed68649a68009b35&X-Amz-SignedHeaders=content-length%3Bhost&x-amz-checksum-sha256=47DEQpj8HBSa%2B%2FTImW%2B5JC5NMpJWZG3hSuFU%3D&x-amz-meta-requestorid=6b9810e0-b8cb-432b-ab0a-a1af9643a1c2&x-amz-meta-requestorip=47.199.42.29&x-amz-meta-requestortype=partner&x-amz-sdk-checksum-algorithm=SHA256&x-id=PutObject' \
--header 'Content-Type: image/png' \
--data-binary '@/C:/Users/Leeroy_Jenkins/Pictures/cannabis_PNG3.png'