---
title: "PUT /api/v1/license-templates/{licenseTemplateId}"
method: PUT
path: "/api/v1/license-templates/{licenseTemplateId}"
tags: ["Billing"]
---

# PUT /api/v1/license-templates/{licenseTemplateId}

`PUT /api/v1/license-templates/{licenseTemplateId}`

## Request

- Base URL: `https://app.distr.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://app.distr.sh/api/v1/license-templates/{licenseTemplateId}`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Update a license template

## Path parameters

- `licenseTemplateId` string, required

## Request body

- object
  - `expirationGracePeriodDays` integer
  - `name` string
  - `payloadTemplate` string

## Response `200`

OK

- TypesLicenseTemplate
  - `createdAt` string, date-time
  - `expirationGracePeriodDays` integer
  - `id` string
  - `name` string
  - `payloadTemplate` string

---

[API](https://skmtc.dev/distr/apis/distr-api-reference.md) - [All operations](https://skmtc.dev/distr/apis/distr-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/distr/apis/distr-api-reference/revisions/7dcafe205f83?raw)
