SyncPilledDocs

Upload a file

PUT
/v1/apps/{app}/files/{sha256}

The body is the file's bytes, with its media type as Content-Type, up to the app's file size limit. Upload a file before the record that names it.

Authorization

SyncToken
AuthorizationBearer <token>

A SyncPilled token from POST /v1/apps/{app}/auth/token, valid for one hour.

In: header

Path Parameters

app*string

The app's id.

sha256*string

The lowercase hex SHA-256 of the file's bytes.

Match^[0-9a-f]{64}$

Request Body

application/octet-stream

TypeScript Definitions

Use the request body type in TypeScript.

body*file
Formatbinary

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/apps/string/files/string" \  -H "Content-Type: application/octet-stream" \  -d 'string'
Empty