Connect a bucket
PUT/workspaces/:id/storage
Creates or replaces the workspace's connection. Formfeed writes the test object
<prefix>.formfeed/connection-test.txt first, with the credentials in the request, and stores
nothing unless that works: a wrong key or a missing bucket answers 422 storage_test_failed
with the provider's error. Formfeed only ever writes (PutObject); it never reads, lists or
deletes in the bucket. Leave out the credentials to keep the stored ones while the endpoint
stays the same. From then on every output of the workspace (renders, batch items and zips,
PDF tools, office renders) is copied to the bucket in the background; Formfeed keeps its own
copy for as long as the plan's and the workspace's retention say. Owners and admins in the
app only, on the Pro plan and above.
Request
Responses
- 200
- 201
- 400
- 403
- 404
- 422
- 429
- default
Replaced.
Connected.
Error (RFC 9457 problem details).
An API key or a role other than owner and admin; forbidden with feature: byo_storage below the Pro plan.
Not found for the key: not_found, or template_not_found for a template or version. Templates, renders, files and webhooks are looked up in the workspace of the key, shared partials and workspaces in its organisation. A template outside the template list of a key is not found for that key.
storage_test_failed: the test object could not be written; error carries the provider's code.
rate_limited: the workspace's bucket of the plan's requests per second is empty (Free test keys also have 30 a minute). The problem names the bucket's limit and its window_seconds. Retry after Retry-After seconds.
Response Headers
Seconds until a request is let through again.
Size of the workspace's request bucket: the plan's requests per second. Free test keys are also held to 30 requests a minute, and the headers then describe whichever bucket is closer to empty.
Requests left in the bucket.
Seconds until the bucket is full again.
Error (RFC 9457 problem details).