---
title: "Modifies template by given id"
method: PUT
path: "/template/{id}"
tags: ["Template"]
---

# Modifies template by given id

`PUT /template/{id}`

## Request body

- TemplateResource
  - `templateId` string
  - `name` string
  - `description` string
  - `version` string
  - `link` string
  - `connection` CtionTemplateResource
    - `nodeId` integer
    - `connectionId` integer
    - `title` string
    - `description` string
    - `fromConnector` CtorTemplateResource
      - `nodeId` integer
      - `connectorId` integer
      - `title` string
      - `invoker` InvokerTemplateResource
        - `name` string
      - `methods` object
      - `operators` object
    - `toConnector` CtorTemplateResource
      - `nodeId` integer
      - `connectorId` integer
      - `title` string
      - `invoker` InvokerTemplateResource
        - `name` string
      - `methods` object
      - `operators` object
    - `fieldBinding` object
    - `ui` object

## Response `200`

Template has been successfully modified

- TemplateResource
  - `templateId` string
  - `name` string
  - `description` string
  - `version` string
  - `link` string
  - `connection` CtionTemplateResource
    - `nodeId` integer
    - `connectionId` integer
    - `title` string
    - `description` string
    - `fromConnector` CtorTemplateResource
      - `nodeId` integer
      - `connectorId` integer
      - `title` string
      - `invoker` InvokerTemplateResource
        - `name` string
      - `methods` object
      - `operators` object
    - `toConnector` CtorTemplateResource
      - `nodeId` integer
      - `connectorId` integer
      - `title` string
      - `invoker` InvokerTemplateResource
        - `name` string
      - `methods` object
      - `operators` object
    - `fieldBinding` object
    - `ui` object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Error
- `502` — Bad Gateway

---

[API](https://skmtc.net/opencelium/apis/opencelium-api.md) · [All operations](https://skmtc.net/opencelium/apis/opencelium-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opencelium/opencelium-api/revisions/82ed767ffb65/schema)
