Bundle files behind one download address

POSThttps://api.floconnector.com/v1/media/bundles
Scope
media.write
Rate limit
the key's write budget, 60 a minute

url opens a page listing the files, each downloadable on its own, and zip_url is one zip of them all. Anyone with the address can open it for 24 hours: there is no lifetime to choose and nothing to revoke. Up to 50 files and 1 GB a bundle, refused whole when over.

Body

The fields it takes:

mediaarray of integerrequired

The media numbers to bundle, in the order they should list. 1 to 50.

Up to 50 items

namestringoptional

The page title and the zip file's name, e.g. "Job 4521 photos". Default "FloConnector files".

Max length 80

Responses

201Created
bundleobject

A bundle: several files behind one address for 24 hours.

ShowHide 8 fields
urlstring

The bundle's page: it lists the files and downloads each one or the zip. Anyone with the address can open it.

zip_urlstring

One zip of every file in the bundle.

namestring

The page title and the zip file's name.

filesarray of object

The files in the bundle, in the order they were given.

ShowHide 4 fields of each item
mediainteger

The file's media number.

namestring

The file name.

typestring

The content type (MIME).

sizeinteger

Size in bytes.

total_bytesinteger

The combined size of the files, in bytes.

expires_atstring

When the address stops working, ISO 8601: 24 hours after the bundle was made.

downloadsinteger

How many times the zip has been downloaded.

created_atstring

When the bundle was made, ISO 8601.

400validation: a field failed validation; field names it.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

401unauthorized: no key, or an unknown, revoked or expired key.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

403insufficient_scope: the key lacks the route's scope, named in required. Or forbidden, or plan_limit when the plan does not include the API.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

404not_found: the thing is not in this workspace.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

429rate_limited: the key's per-minute budget is spent. Retry after Retry-After seconds.

Every error has the same envelope:

errorobject
ShowHide 5 fields
codeenum

What went wrong, as a stable word. Branch on this, never on message.

unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternal
messagestring

The same thing in a sentence, written for a person.

fieldstringoptional

validation only: the field that failed, as a path into the request.

requiredstringoptional

insufficient_scope only: the scope the route needs.

detailsobjectoptional

Extra structure some errors carry, such as a refused record batch's per-record errors.

Errors lists every error code and what to do about it.