Upload
This API endpoint allows you to add a file to the decentralized storage.
Upload file
Upload file
POST /api/v1/add
API endpoint and JWT token is available in Authenticate user api response.
Headers
Name
Type
Description
Authorization*
Bearer <jwt token>
he authentication token required to access the API.
Request Body
Name
Type
Description
file*
multipart/form-data
The file to be added to the system
{
"Name": "The name of the uploaded file",
"Hash": "The Content Identifier (CID) of the file on the decentralized storage. It uniquely identifies the file and can be used to retrieve or reference it.",
"Size": "The size of the uploaded file in bytes"
}{ error: Error message }Last updated