Batches
Clevver file storage works by creating batches which store one or more files on the block chain.
Get active batch jobs.
GET
https://clevver.org/api/batches
The process of storing files on the blockchain can take some time and is an asynchronous process. This request will return a list of actively running batch storage jobs.
Create a new batch
POST
https://clevver.org/api/batches
In order to store files on Clevver, you must first create a batch. Files can then be attached to the batch and later started by calling the start method.
Start a storage job
POST
https://clevver.org/api/batches/{batch_id}/start
Once a storage job has been created and files have been attached to it, you can then start the job. Starting the job will begin the process of storing the files onto the blockchain.
Path Parameters
batch_id*
String
The id of the batch
Get a storage job
GET
https://clevver.org/api/batches/{batch_id}
You can query individual batches to check their status and/or progress.
Path Parameters
batch_id*
Strring
The id of the batch
Upload and attach a file to a batch
POST
https://clevver.org/api/batches/{batch_id}/files
In order to store files on the block chain they must first be attached to a batch.
Path Parameters
batch_id*
String
The id of the batch
Request Body
file*
File
The file being uploaded
Last updated