Generates an upload URL for uploading a file as an attachment to a specified contact.
To learn how to use the generated upload URL in the response to upload an attachment file, see the Upload API (SDK | REST).
You can only call this method when authenticated as a Wix app or Wix user identity.
ID of the contact for whom the attachment is being uploaded.
The URL for uploading a file as an attachment to the contact.
curl -X POST \
'https://www.wixapis.com/contacts/v4/attachments/513c1bfc-61b6-427d-a7f8-ceeedb1eb763/upload-url' \
-H 'Authorization: <AUTH>' \
--data-binary '{
"contactId": "513c1bfc-61b6-427d-a7f8-ceeedb1eb763",
"fileName": "my-data.csv",
"mimeType": "text/csv"
}'
{
"uploadUrl": "https://wixmp-8be454c954980f083caba37c.appspot.com/_ah/upload/AMmfu6Z00Ya5E7SPa7dsD0-iPgB_7_mbS5-I2wxanQjYsM6N99Yd6Tb9ty86XlpULTnXVoYj_ryWmrC4NA3YBrA6W7Ln_86kPeDvoYRXLJ5geqsnTlbTdezpsO1NMvm4rm2B4nrMeunH2vgmBiiqyxk5g1fxJuuH6Tzpx0eq-tDRkeV2tLXwffLDdo-gON4eHrYjSOq7ql9XCX1-Ml88mQFUg4h_jw-qaBpVbsGLrjHbeaijM38VtiqvExHUSjVkuPc4GrlnB35nFHwlCx_8hn2qnXQTHcdZlOpRASbL4Dt4KmaVDx0d0bg/ALBNUaYAAAAAX8jL_p1GRljz1mIXmSwnVPse-iWgiw7u/"
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.