cURL
curl --request POST \ --url https://dev-api.rootkey.ai/api-v1/platform/files \ --header 'Content-Type: multipart/form-data' \ --header 'x-api-key: <api-key>' \ --form 'ownerWallet=<string>' \ --form 'fileName=<string>' \ --form expirationDate=2023-12-25 \ --form file=@example-file
{ "chainId": "137", "transactionHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890" }
Create a file to a vault
File creation request payload
The body is of type object.
object
File successfully created
The response is of type object.