Files
Create a file upload intent
POST
Upload the bytes to the signed transfer URL, then finalize the file before referencing it. Requires the write scope.
bearerAuthheader
AuthorizationBearer <token>A workspace API key.
Idempotency-Key*stringReuse the same key with the same request to retry.
Length
1 <= length <= 200application/json- body
name*stringLength
1 <= length <= 200mediaType*stringMatch
^[a-z0-9][a-z0-9!#$&^_.+-]*\/[a-z0-9][a-z0-9!#$&^_.+-]*$Length
length <= 150bytes*integerRange
1 <= value <= 26214400sha256*stringMatch
^[a-f0-9]{64}$sourceItemId?stringMatch
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidSuccessful response.
application/json- response
id*stringFormat
uuidupload*curl -X POST 'https://retainer.tamloot.cc/v1/files/intents' \ -H 'Idempotency-Key: string' \ -H 'Authorization: Bearer YOUR_WORKSPACE_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "mediaType": "string", "bytes": 1, "sha256": "string"}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "upload": { "url": "string", "headers": { "property1": "string", "property2": "string" }, "expiresAt": "2019-08-24T14:15:22Z" }}