Upload file to storage
POST
Storage object paths are unique across the entire bucket, not per tenant. Prefix paths with the tenant ID or another unique namespace, for example tenants/<tenant_id>/avatars/me.png. Uploading to an existing path returns 409 Conflict.
header
X-Session-Token<token>Kratos session JWT token. Alternative to cookie authentication for non-browser clients.
application/json- body
metadata?path*stringBucket-wide object path. Prefix with the tenant ID or another unique namespace.
OK
application/json- response
id*stringpath*stringupload_url*stringcurl -X POST 'https://api.omnibase.tech/api/v1/storage/upload' \ -H 'Content-Type: application/json' \ -d '{ "path": "tenants/00000000-0000-4000-8000-000000000000/avatars/me.png"}'Example Response
{ "id": "string", "path": "string", "upload_url": "string"}