Replace a certificate template

PUT/products/{product_id}/certificate-template

Replaces the product's certificate template. Fields omitted from the request body are reset to their default values.

The certificate criteria, QR code position, and font must use one of the supported values.

Send the ETag returned by the retrieve operation in the If-Match header to avoid overwriting a newer version. Templates of replicated products are read-only.

AuthorizationBearer <token>

Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.

In: header

Path Parameters

product_id*string

Header Parameters

If-Match?string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The certificate template of a product.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/products/string/certificate-template" \  -H "Content-Type: application/json" \  -d '{    "criteria": {      "exam_id": "string",      "kind": "completion",      "percent": 0    },    "defaults": {      "color": "string",      "font": "arial"    },    "enabled": true,    "fields": [      {        "key": "string",        "label": "string",        "source": "custom_field"      }    ],    "layout": {      "back_side_enabled": true,      "background": "string",      "fields": {        "date": {          "color": "string",          "enabled": true,          "font": "arial"        },        "document": {          "color": "string",          "enabled": true,          "font": "arial"        },        "name": {          "color": "string",          "enabled": true,          "font": "arial"        },        "sequence": {          "color": "string",          "enabled": true,          "font": "arial"        }      },      "qr": {        "background_color": "string",        "color": "string",        "enabled": true,        "position": "bottom-right"      },      "show_dates": true,      "show_product_name": true    },    "object": "certificate_template",    "product_id": "string",    "revision": "string",    "single_issue": true,    "texts": {      "content": "string",      "instructor": "string",      "workload": "string"    }  }'
{  "data": {    "criteria": {      "exam_id": "string",      "kind": "completion",      "percent": 0    },    "defaults": {      "color": "string",      "font": "arial"    },    "enabled": true,    "fields": [      {        "key": "string",        "label": "string",        "source": "custom_field"      }    ],    "layout": {      "back_side_enabled": true,      "background": "string",      "fields": {        "date": {          "color": "string",          "enabled": true,          "font": "arial"        },        "document": {          "color": "string",          "enabled": true,          "font": "arial"        },        "name": {          "color": "string",          "enabled": true,          "font": "arial"        },        "sequence": {          "color": "string",          "enabled": true,          "font": "arial"        }      },      "qr": {        "background_color": "string",        "color": "string",        "enabled": true,        "position": "bottom-right"      },      "show_dates": true,      "show_product_name": true    },    "object": "certificate_template",    "product_id": "string",    "revision": "string",    "single_issue": true,    "texts": {      "content": "string",      "instructor": "string",      "workload": "string"    }  }}