Test a storage connection
Runs the checks a save runs โ writes a file to the bucket and deletes it โ and saves nothing. Refused with 400 saying why it failed.
Who may call it: An owner or security admin of the organization. API keys: no.
sessiongamma.session_token<token>The session cookie a sign-in sets. Over HTTPS its name carries the __Host- prefix. Browsers send it on their own; other clients keep it from the sign-in response.
slug*stringThe organization's slug, as in its URL.
application/json- body
bucket*string1 <= length <= 63region*string1 <= length <= 64endpoint?||An S3-compatible endpoint, public and https; empty or absent for AWS.
prefix?stringWhere in the bucket files go; empty for the whole bucket.
""accessKeyId*string1 <= lengthsecretAccessKey?stringRequired on a first connection or a new endpoint; left out or empty, the saved one is kept.
deleteOrphans?booleanWhether the daily cleanup deletes files no record points at; off, they are kept for a purge. Left out keeps the saved value โ on for a first connection.
OK.
application/json- response
ok*booleancurl -X POST 'http://localhost:3000/api/organizations/string/storage/test' \ -H 'Content-Type: application/json' \ -d '{ "bucket": "string", "region": "string", "accessKeyId": "string"}'{ "ok": true}