Create a new template

Create and configure a new template by providing the necessary details in the request body.

POST
/templates
AuthorizationBearer <token>

In: header

Request Body

application/json

The details of the template to create.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://api-testnet.dual.network/templates" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "object": {      "metadata": {}    },    "actions": [      {        "name": "mint"      }    ]  }'
{
  "id": "string"
}
{
  "code": 0,
  "message": "string",
  "details": {}
}
{
  "code": 0,
  "message": "string",
  "details": {}
}