Skip to main content
POST
Sync assets

Authorizations

Authorization
string
header
required

An API key from the dashboard, such as sk_live_…. It acts in its workspace.

Body

application/json
files
object[]
required

Every file of the local folder, up to 1000.

delete_missing
boolean
default:false

Also delete the folder's assets that aren't in files.

prefix
string
default:""

The workspace folder, ending in /, or empty for the whole workspace.

project_id
string | null

The project new assets go in; the workspace's default project when absent.

Response

OK

deleted
string[]
required

Names deleted because they weren't in files.

recorded
string[]
required

Names recorded or already up to date.

uploads
object[]
required

Files to upload before the next request.