Skip to main content
POST
/
platform
/
files
/
{parentId}
/
versions
Create new file version
curl --request POST \
  --url https://api.rootkey.ai/api-v1/platform/files/{parentId}/versions \
  --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

Path Parameters

parentId
string
required

Body

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

Response

New version created

chainId
integer
required
transactionHash
string
required