Create temporary BLOB
Motivation
Creates a temporary BLOB with the uploaded binary data
Functional design
POST
/api/v2/apps/{owner}/{app}/workspaces/{wsid}/tblobs
Creates 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
400
Bad Request
401
Unauthorized
403
Forbidden
413
Payload Too Large
415
Unsupported Media Type
429
Too Many Requests
500
Internal Server Error
503
Service Unavailable
Example response 201:
Perimssions
Execution of this function is granted to role
sys.BLOBUploader
which is by default granted tosys.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?