Get the URL and Sas needed to upload an attachment to cloud storage.

To use with the Azure Storage SDK or the Microsoft Blob Service REST API (https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob). If you choose to work with the former, you will need both the 'AttachmentUrl' and 'AttachmentSas' values and you can disregard the 'BlobServiceRestApiUrl' value. If you choose to work with the latter, you must upload your document using HTTP PUT using the URL in 'BlobServiceRestApiUrl' and you can disregard the 'AttachmentUrl' and 'AttachmentSas' values. For improved user experience, the following headers should be used when uploading the file:

  • Content-Type: The MIME content type of the blob. For example, for a PDF, "application/pdf" should be used.
  • x-ms-blob-content-disposition: The content-disposition of the blob. We recommend using "filename=YourFileName.extension". Note that Basic Authentication is required for all requests as such, make sure to provide the Authorization header with a valid value.
Path Params
string
required
Query Params
string
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

404

Order not found

500

An error occurred when trying to generate the URL and Sas.

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json