api reference

Sign Knowledge Upload

POST
/v1/knowledge/uploads/{upload_id}/sign

Path Parameters

upload_id*Upload Id
Formatuuid

Header Parameters

authorization?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Body of POST /knowledge/uploads/{id}/sign: one storage request to sign. The six allowed shapes are PUT (put the whole file), POST (start a multipart upload), PUT with s3_upload_id and part_number (one part), GET with s3_upload_id (list parts), POST with s3_upload_id (finish the multipart upload) and DELETE with s3_upload_id (cancel it).

Response Body

application/json

curl -X POST "https://example.com/v1/knowledge/uploads/497f6eca-6276-4993-bfeb-53cbbbba6f08/sign" \  -H "Content-Type: application/json" \  -d '{    "method": "PUT"  }'
{  "url": "string",  "key": "string",  "headers": {    "property1": "string",    "property2": "string"  },  "expires_at": "2019-08-24T14:15:22Z"}