Skip to main content
POST
/
platform
/
files
Create a new file
curl --request POST \
  --url https://api.rootkey.ai/api-v1/platform/files \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form 'ownerWallet=<string>' \
  --form file='@example-file' \
  --form 'parentId=<string>' \
  --form expirationDate=2023-11-07T05:31:56Z \
  --form 'fileName=<string>'
{
  "chainId": 123,
  "transactionHash": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

multipart/form-data
ownerWallet
string
required
file
file
required
parentId
string | null
expirationDate
string<date-time>
fileName
string

Response

File created successfully

chainId
integer
transactionHash
string