Customer Rights TokenUpdate a CRT template

Update a CRT template

curl -X POST "https://api.5centscdn.com/v2/drm/crt-templates/c3d9a1e4-7b2f-4e6a-9d8c-5f1b0a2e7c34" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "name": "rental-relative-expiration",
  "description": "Expires 7 days after issuance; playback must finish within 48 hours.",
  "tags": [
    "profile",
    "rental"
  ],
  "template": {
    "storeLicense": true,
    "profile": {
      "type": "purchase"
    }
  }
}'
{
  "result": "success",
  "uuid": "c3d9a1e4-7b2f-4e6a-9d8c-5f1b0a2e7c34",
  "name": "rental-relative-expiration",
  "description": "Expires 7 days after issuance; playback must finish within 48 hours.",
  "tags": [
    "profile",
    "rental"
  ],
  "template": {
    "profile": {
      "type": "rental",
      "relativeExpiration": "PT168H",
      "playDuration": "PT48H"
    },
    "storeLicense": true
  }
}
POST
/drm/crt-templates/{templateuuid}
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

path
templateuuidstring
Required

Unique identifier (UUID) of the CRT template, as returned by the list and create endpoints.

Format: uuid
Content-Typestring
Required

The media type of the request body

Options: application/json
namestring

Optional short name of the template.

descriptionstring
Required

Description of the template.

tagsarray

Optional free-form tags for organizing templates.

templateobject
Required

CRT claim-shape object merged into every CRT signed against this template. Replaces the existing template body.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Path Parameters

templateuuidstring
Required

Unique identifier (UUID) of the CRT template, as returned by the list and create endpoints.

Example:
c3d9a1e4-7b2f-4e6a-9d8c-5f1b0a2e7c34

Body

application/json
namestring

Optional short name of the template.

Example:
rental-relative-expiration
descriptionstring
Required

Description of the template.

Example:
Expires 7 days after issuance; playback must finish within 48 hours.
tagsarray

Optional free-form tags for organizing templates.

Example:
["profile","rental"]
templateobject
Required

CRT claim-shape object merged into every CRT signed against this template. Replaces the existing template body.

Example:
{"storeLicense":true,"profile":{"type":"purchase"}}

Responses

resultstring

Operation outcome. Returns error on validation failure.

Allowed values:successerror
uuidstring

Unique identifier of the CRT template.

namestring

Short name of the template.

descriptionstring

Description of the template.

tagsstring[]

Free-form tags for organizing templates. Omitted when the template has no tags.

templateobject

CRT claim-shape object merged into every CRT signed against this template.