Raw
1 post:
2 operationId: PostUploadsPresignedUrls
3 summary: Get Presigned Upload URL
4 description: >-
5 Get a presigned URL for uploading a file to the configured File Module
6 Provider. The presigned URL can be used to upload files directly to the
7 third-party provider. This only works if your configured provider supports
8 presigned URLs, such as the S3 provider.
9 x-authenticated: true
10 security:
11 - api_token: []
12 - cookie_auth: []
13 - jwt_token: []
14 requestBody:
15 content:
16 application/json:
17 schema:
18 $ref: ../components/schemas/AdminUploadPreSignedUrl.yaml
19 x-codeSamples:
20 - lang: JavaScript
21 label: JS SDK
22 source:
23 $ref: ../code_samples/JavaScript/admin_uploads_presigned-urls/post.js
24 - lang: Shell
25 label: cURL
26 source:
27 $ref: ../code_samples/Shell/admin_uploads_presigned-urls/post.sh
28 tags:
29 - Uploads
30 responses:
31 '200':
32 description: OK
33 content:
34 application/json:
35 schema:
36 $ref: ../components/schemas/AdminUploadPreSignedUrlResponse.yaml
37 '400':
38 $ref: ../components/responses/400_error.yaml
39 '401':
40 $ref: ../components/responses/unauthorized.yaml
41 '404':
42 $ref: ../components/responses/not_found_error.yaml
43 '409':
44 $ref: ../components/responses/invalid_state_error.yaml
45 '422':
46 $ref: ../components/responses/invalid_request_error.yaml
47 '500':
48 $ref: ../components/responses/500_error.yaml