Create a version

Learn how to create a version of an existing file in Keeper.

🚧

Prerequisites

You need to have at least added a file before continuing.

If you've added a file, you can now create versions of that file. You can create a new version of the file, and store its fingerprint in the blockchain.

🚧

Requirements

You need your API key to perform the actions on this page.
You also need the Keeper Admin Role.


Create a version performing a standard POST call with your API key in the header. Your API key must be valid for this to work. If you don't have an API key, follow this short tutorial to get one.

Let's try it out!

curl -X POST \
  http://api.mantleblockchain.com/keeper/{{PRODUCT_ID}}/files/{{FILE_ID}}/versions \
  -H 'Accept: text/plain, application/json, text/json' \
  -H 'Content-Type: multipart/form-data' \
  -H 'x-api-key: {{API_KEY}}' \
  -F 'file={{NEW_VERSION_FILE}}'

Replace the following parameters:

{{PRODUCT_ID}}: Your Product id
{{FILE_ID}}: The ID of the file you want to create a new version
{{API_KEY}}: Your API key
{{NEW_VERSION_FILE}}: The new version of the file

👍

Congratulations!

You've created a version of a file in Keeper!