Skip to content

Returns an AWS S3 pre-signed URL for use in uploading a file from a web application

Request

This method contacts S3 and generates a "presigned URL." This URL can be used to post a file. The return value is the URL to post.

Security
knox-authorizer
Path
tenantIdstringrequired

The id of the tenant being accessed

servicestringrequired

The service that you are posting on behlaf of

filenamestringrequired

The name of the file you're attempting to upload

Query
contentTypestring

The content type of the file being generate

publicboolean

Whether this should be a public file

curl -i -X POST \
  'https://docs.api.rhythmsoftware.com/_mock/apis/platform/platform-v1/fileUploads/{tenantId}/signedUrlRequest/{service}/{filename}?contentType=string&public=true' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

The file upload was saved successfully

Headers
Access-Control-Allow-Headersstring
Access-Control-Allow-Methodsstring
Access-Control-Allow-Originstring
Bodyapplication/json
download_urlstring(Download Url)

The pre-signed url to use to download the temporary fiel once it has been uploaded

signed_urlstring(Signed Url)

The pre-signed url to upload the file

urlstring(Url)

The S3 location of the file

Response
{ "download_url": "string", "signed_url": "string", "url": "string" }