Create temporary BLOB
Motivation
Creates a temporary BLOB with the uploaded binary data
Functional design
- POST - /api/v2/apps/{owner}/{app}/workspaces/{wsid}/tblobsCreates a temporary BLOB with the uploaded binary data. The SUUID of the BLOB is returned in the response and can be used to read the BLOB until it expires.
Headers
Authorization
Bearer {PrincipalToken}
Content-Type
BLOB content type
Blob-Name
BLOB name, optional
TTL
BLOB TTL in seconds, optional. Default is "1d" (other values not supported yet)
Parameters
owner
string
name of a user who owns the application
app
string
name of an application
wsid
int64
the ID of workspace
Body
BLOB data.
Result
201
Created
blob SUUID, see example below
Example response 201:
{
    "blobSUUID": "cMyxY-HEQHmPnU0JG_UedQ", 
}Perimssions
- Execution of this function is granted to role - sys.BLOBUploaderwhich is by default granted to- sys.WorkspaceOwner.
Technical design
Components
- pkg/router - ~cmp.routerTBlobsCreatePathHandler~✅: Create temporary BLOB path handler
 
- pkg/sys/it - ~it.TestTBlobsCreate~✅: integration test for creating temporary BLOBs
 
Last updated
Was this helpful?
