File metadata upload

Upload a metadata file

HTTP Request file metadata upload

PUT https://app.dedit.io/api/v2/file/{hash}

Headers

Name
Value
Description

Content-Type

application/json

The content type of the request body

Authorization

Bearer $TOKEN

authentication token that is used to authorize access to an API

Request body

Name
Type
Description

hash

string

hash of the document to upload

name

string

name of the document

type

string

document type

size

int

document size

lastModified

timestamp

date of last modified on the document

userId

int

id of the user

walletName

string

name of the wallet to use

Example of a valid request body:

{
    "hash": "d1018d3cd8a9be8f0a78854fdd689673839595171fe1bea565c12e0dbc79d511",
    "name": "TEST.txt",
    "type": "text/plain",
    "size": 17,
    "lastModified": 1652720991158,
    "userId": 1098,
    "walletName": "null--2022-05-16T17:10:15.777Z--f92301477cd9f27316071ff47abf506dcb5e0d3d0d0de2c5a2bfa2bfc1bbf265"
}

The above command returns a JSON structured like this:

{ }

Last updated