---
title: "Edit Template"
method: PATCH
path: "/2022-06-09/collections/{collectionId}/templates/{templateId}"
tags: ["NFT Templates"]
---

# Edit Template

`PATCH /2022-06-09/collections/{collectionId}/templates/{templateId}`

## Request

- Base URL: `https://staging.crossmint.com/api`
- URL: `https://staging.crossmint.com/api/2022-06-09/collections/{collectionId}/templates/{templateId}`
- Auth: none required
- TypeScript: <https://skmtc.dev/crossmint/apis/onramp/docs/2022-06-09/collections/:collectionId/templates/:templateId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Edit a Token template.

**API scope required**: `nfts.update`

## Path parameters

- `collectionId` string, required
- `templateId` string, required

## Request body

- union
  - Metadata
    - `metadata` object
      - `name` string: Template name
      - `imageUrl` string
      - `description` string
  - Supply
    - `supply` object: Supply details
      - `limit` integer: Supply limit. Set to 1 for ERC721.

## Response `204`

Success

## Other responses

- `400`: Invalid arguments, please make sure you're following the api specification.
- `404`: Not found error.
- `503`: Service unavailable

---

[API](https://skmtc.dev/crossmint/apis/onramp.md) - [All operations](https://skmtc.dev/crossmint/apis/onramp/llms.txt) - [OpenAPI document](https://skmtc.dev/crossmint/apis/onramp/revisions/e2143d192130?raw)
