Bundle files behind one download address
https://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 integerrequiredThe media numbers to bundle, in the order they should list. 1 to 50.
Up to 50 items
namestringoptionalThe page title and the zip file's name, e.g. "Job 4521 photos". Default "FloConnector files".
Max length 80
Responses
201Created
bundleobjectA bundle: several files behind one address for 24 hours.
ShowHide 8 fields
urlstringThe bundle's page: it lists the files and downloads each one or the zip. Anyone with the address can open it.
zip_urlstringOne zip of every file in the bundle.
namestringThe page title and the zip file's name.
filesarray of objectThe files in the bundle, in the order they were given.
ShowHide 4 fields of each item
mediaintegerThe file's media number.
namestringThe file name.
typestringThe content type (MIME).
sizeintegerSize in bytes.
total_bytesintegerThe combined size of the files, in bytes.
expires_atstringWhen the address stops working, ISO 8601: 24 hours after the bundle was made.
downloadsintegerHow many times the zip has been downloaded.
created_atstringWhen the bundle was made, ISO 8601.
400validation: a field failed validation; field names it.
Every error has the same envelope:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra 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:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra 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:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra 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:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra 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:
errorobjectShowHide 5 fields
codeenumWhat went wrong, as a stable word. Branch on this, never on message.
unauthorizedforbiddeninsufficient_scopeplan_limitnot_foundvalidationconflictread_onlyrate_limitedcsrfunavailableinternalmessagestringThe same thing in a sentence, written for a person.
fieldstringoptionalvalidation only: the field that failed, as a path into the request.
requiredstringoptionalinsufficient_scope only: the scope the route needs.
detailsobjectoptionalExtra 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.