POST
/
api
/
v1
/
registry
/
create
curl --request POST \
  --url https://dash.betteruseblockchain.com/api/v1/registry/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "metadata": [
    {
      "type": "TEXT",
      "key": "<string>",
      "value": "<string>",
      "title": "<string>",
      "file": "<string>"
    }
  ],
  "folder_id": "<string>",
  "callback_url": "<string>",
  "data_encrypted": true,
  "template": "STORAGE",
  "description": "<string>"
}'
{
  "message": "Success",
  "data": {
    "id": "<string>",
    "title": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Details of the registry to be created.
title
string
required

Title of the registry.

metadata
object[]
required

Metadata of the registry.

folder_id
string
required

ID of the folder where the registry will be stored.

template
enum<string>
required

Template used for the registry.

Available options:
STORAGE,
PASS
callback_url
string

Callback URL for notifications related to this registry.

data_encrypted
boolean

Indicates whether the registry data is encrypted.

description
string

Description of the registry.

Response

200
application/json
Registry created successfully.
message
string
Example:

"Success"

data
object