---
updatedAt: 2025-11-12T22:16:59.000Z
agentTools:
  projectIndex: https://docs.nmp.arianee.com/llms.txt
---

# Update Template

Update an existing template using API.

#### URL

> Required rights: `admin` or `certCreate`

To fetch and update a specific template, use [`/smartAssetTemplate/:id`](https://docs.nmp.arianee.com/reference/updatetemplate).

```Text URL
PUT - https://{url}/smartAssetTemplate/{id}
```

#### Body

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Mandatory
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `deleted`
      </td>

      <td>
        Boolean
      </td>

      <td>
        ❌
      </td>

      <td>
        The template has been deleted from the NFT Management Platform. 
      </td>
    </tr>

    <tr>
      <td>
        `blockchainProperties`
      </td>

      <td>
        Object
      </td>

      <td>
        ❌
      </td>

      <td>
        Transfer settings.
      </td>
    </tr>

    <tr>
      <td>
        `blockchainProperties` → `isTransferable`
      </td>

      <td>
        Boolean
      </td>

      <td>
        ❌
      </td>

      <td>
        Set `true` if the digital passport is claimable.
      </td>
    </tr>

    <tr>
      <td>
        `blockchainProperties` → `showTranferableOption`
      </td>

      <td>
        Boolean
      </td>

      <td>
        ❌
      </td>

      <td>
        Set `true` to display the Transferable option on the app.
      </td>
    </tr>

    <tr>
      <td>
        `metadata`
      </td>

      <td>
        Object
      </td>

      <td>
        ❌
      </td>

      <td>
        Metadata of the template.
      </td>
    </tr>

    <tr>
      <td>
        `metadata` → `name`
      </td>

      <td>
        String
      </td>

      <td>
        ❌
      </td>

      <td>
        Name of the product.
      </td>
    </tr>

    <tr>
      <td>
        `metadata` → `icon`
      </td>

      <td>
        String
      </td>

      <td>
        ❌
      </td>

      <td>
        Product icon displayed in the app.
      </td>
    </tr>

    <tr>
      <td>
        `content`
      </td>

      <td>
        Object
      </td>

      <td>
        ❌
      </td>

      <td>
        [JSON Schema](https://docs.nmp.arianee.com/docs/nft-schema-1) with the template content.\
        After doing the JSON content, stringify it.
      </td>
    </tr>

    <tr>
      <td>
        `attributes`
      </td>

      <td>
        Object
      </td>

      <td>
        ❌
      </td>

      <td>
        Attributes of the digital passport template.
      </td>
    </tr>

    <tr>
      <td>
        `attributes` → `field`
      </td>

      <td>
        `%value%`
      </td>

      <td>
        ❌
      </td>

      <td>
        Field replaced by the digital passport content.
      </td>
    </tr>

    <tr>
      <td>
        `attributes` → `label`
      </td>

      <td>
        String
      </td>

      <td>
        ❌
      </td>

      <td>
        Label displayed in the app.
      </td>
    </tr>

    <tr>
      <td>
        `attributes` → `freeEntry`
      </td>

      <td>
        Boolean
      </td>

      <td>
        ❌
      </td>

      <td>
        The user manually adds values in the app.
      </td>
    </tr>

    <tr>
      <td>
        `attributes` → `required`
      </td>

      <td>
        Boolean
      </td>

      <td>
        ❌
      </td>

      <td>
        Set to `true` so the user cannot pass the step.
      </td>
    </tr>

    <tr>
      <td>
        `attributes` → `type`
      </td>

      <td>
        String
      </td>

      <td>
        ❌
      </td>

      <td>
        Identifies the type of component to be displayed.
      </td>
    </tr>

    <tr>
      <td>
        `attributes` → `option`
      </td>

      <td>
        Object
      </td>

      <td>
        ❌
      </td>

      <td>
        For inputs with the "select" type concerns the set of values that will be proposed.  

        `[ {”label”: string, “value”: string}, {”label”: string, “value”: string}, … ]`
      </td>
    </tr>

    <tr>
      <td>
        `attributes` → `value`
      </td>

      <td>
        String
      </td>

      <td>
        ❌
      </td>

      <td>
        Value proposed to the user.
      </td>
    </tr>
  </tbody>
</Table>

```json Body Example
{
    "deleted":false,
    "blockchainProperties": {
      "isTransferable": true,
      "showTransferableOption":true
    },
    "metadata": {
      "name": "Edited ROYAL OAK GRANDE COMPLICATION SQUELETTE",
      "icon": "https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpmain.png"
    },
    "content": "{\n  \"$schema\": \"https://cert.arianee.org/version2/ArianeeProductCertificate-i18n.json\",\n  \"language\": \"fr-FR\",\n  \"name\": \"ROYAL OAK GRANDE COMPLICATION SQUELETTE\",\n  \"category\": \"accessory\",\n  \"subCategory\": \"watch\",\n  \"serialnumber\": [\n    {\n      \"type\": \"serialnumber\",\n      \"value\": \"%serialnumber%\"\n    },\n    {\n      \"type\": \"casenumber\",\n      \"value\": \"%casenumber%\"\n    }\n  ],\n  \"model\": \"Royal Oak\",\n  \"description\": \"\\nCombinant les 3 catégories de complications horlogères (mesure des temps courts, mécanismes de sonnerie et indications astronomiques), ce modèle entraîné par le calibre %calibre% a été entièrement fabriqué à la main par un seul et même maître-horloger de l’atelier Grandes Complications Audemars Piguet.\\n\\nBoîte de %diameter% en %caseMaterial% avec lunette acier, glace et fond saphir, couronne vissée\\n\\nCadran saphir, compteurs fumés, aiguilles Royal Oak en %aiguilleMaterial% avec dépôt luminescent, aiguilles compteurs/seconde/rattrapante blanches, réhaut noir avec minuterie blanche, mouvement couleur ardoise.\",\n  \"externalContents\": [\n    {\n      \"type\": \"website\",\n      \"title\": \"Audemars Piguet Website\",\n      \"url\": \"https://www.audemarspiguet.com/com/fr/home.html\"\n    }\n  ],\n  \"medias\": [\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"product\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpmain.png\"\n    },\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"brandItemBackgroundPicture\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpfeaturedcase.png\"\n    },\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"product\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpfeatureddial.png\"\n    }\n  ]\n}",
    "attributes": [
      {
        "field": "%serialnumber%",
        "label": "Serial number",
        "freeEntry": false,
        "required": true,
        "type": "text",
        "options": []
      },
	{
        "field": "%casenumber%",
        "label": "Case number",
        "freeEntry": false,
        "required": true,
        "type": "text",
        "options": []
      },
      {
        "field": "%diameter%",
        "label": "Diameter",
        "freeEntry": false,
        "required": true,
        "type": "select",
        "options": [{
          "label": "42mm",
          "value": "42mm"
        }, {
          "label": "44mm",
          "value": "44mm"
        }
        ]
      },
      {
        "field": "%caseMaterial%",
        "label": "Case material",
        "freeEntry": false,
        "required": true,
        "type": "select",
        "options": [{
          "label": "Or rose 18k",
          "value": "Or rose 18k"
        },{
          "label": "Or jaune 18k",
          "value": "Or jaune 18k"
        }
        ]
      },
      {
        "field": "%aiguilleMaterial%",
        "label": "Needle material",
        "freeEntry": false,
        "required": true,
        "type": "select",
        "options": [{
          "label": "Or rose 24k",
          "value": "Or rose 24k"
        },{
          "label": "Or jaune 24k",
          "value": "Or jaune 24k"
        }
        ]
      },
      {
        "field": "%media%",
        "label": "Media",
        "required": false,
        "type": "file"
    	}
    ]
  }
```

#### Return Payload

| Statut Code | Description                                       |
| :---------- | :------------------------------------------------ |
| `200`       | The template has been updated, data are returned. |

```json 200 Return Payload
{
    "attributes": [
        {
            "field": "%serialnumber%",
            "label": "Serial number",
            "freeEntry": false,
            "required": true,
            "type": "text",
            "options": []
        },
        {
            "field": "%casenumber%",
            "label": "Case number",
            "freeEntry": false,
            "required": true,
            "type": "text",
            "options": []
        },
        {
            "field": "%diameter%",
            "label": "Diameter",
            "freeEntry": false,
            "required": true,
            "type": "select",
            "options": [
                {
                    "label": "42mm",
                    "value": "42mm"
                },
                {
                    "label": "44mm",
                    "value": "44mm"
                }
            ]
        },
        {
            "field": "%caseMaterial%",
            "label": "Case material",
            "freeEntry": false,
            "required": true,
            "type": "select",
            "options": [
                {
                    "label": "Or rose 18k",
                    "value": "Or rose 18k"
                },
                {
                    "label": "Or jaune 18k",
                    "value": "Or jaune 18k"
                }
            ]
        },
        {
            "field": "%aiguilleMaterial%",
            "label": "Needle material",
            "freeEntry": false,
            "required": true,
            "type": "select",
            "options": [
                {
                    "label": "Or rose 24k",
                    "value": "Or rose 24k"
                },
                {
                    "label": "Or jaune 24k",
                    "value": "Or jaune 24k"
                }
            ]
        },
        {
          "field": "%media%",
          "label": "Media",
          "required": false,
          "type": "file"
    		}
    ],
    "_id": "63a5cfee94ea7835457d5800",
    "deleted": false,
    "blockchainProperties": {
        "isTransferable": true,
        "showTransferableOption": true
    },
    "metadata": {
        "name": "Edited ROYAL OAK GRANDE COMPLICATION SQUELETTE",
        "icon": "https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpmain.png"
    },
    "content": "{\n  \"$schema\": \"https://cert.arianee.org/version2/ArianeeProductCertificate-i18n.json\",\n  \"language\": \"fr-FR\",\n  \"name\": \"ROYAL OAK GRANDE COMPLICATION SQUELETTE\",\n  \"category\": \"accessory\",\n  \"subCategory\": \"watch\",\n  \"serialnumber\": [\n    {\n      \"type\": \"serialnumber\",\n      \"value\": \"%serialnumber%\"\n    },\n    {\n      \"type\": \"casenumber\",\n      \"value\": \"%casenumber%\"\n    }\n  ],\n  \"model\": \"Royal Oak\",\n  \"description\": \"\\nCombinant les 3 catégories de complications horlogères (mesure des temps courts, mécanismes de sonnerie et indications astronomiques), ce modèle entraîné par le calibre %calibre% a été entièrement fabriqué à la main par un seul et même maître-horloger de l’atelier Grandes Complications Audemars Piguet.\\n\\nBoîte de %diameter% en %caseMaterial% avec lunette acier, glace et fond saphir, couronne vissée\\n\\nCadran saphir, compteurs fumés, aiguilles Royal Oak en %aiguilleMaterial% avec dépôt luminescent, aiguilles compteurs/seconde/rattrapante blanches, réhaut noir avec minuterie blanche, mouvement couleur ardoise.\",\n  \"externalContents\": [\n    {\n      \"type\": \"website\",\n      \"title\": \"Audemars Piguet Website\",\n      \"url\": \"https://www.audemarspiguet.com/com/fr/home.html\"\n    }\n  ],\n  \"medias\": [\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"product\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpmain.png\"\n    },\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"brandItemBackgroundPicture\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpfeaturedcase.png\"\n    },\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"product\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpfeatureddial.png\"\n    }\n  ]\n}",
    "__v": 0,
    "id": "63a5cfee94ea7835457d5800"
}
```