---
title: "Update a transformation"
method: PUT
path: "/transformations/{id}"
tags: ["Transformations"]
---

# Update a transformation

`PUT /transformations/{id}`

This endpoint updates a transformation.

## Path parameters

- `id` string, required — Transformation ID

## Request body

- object
  - `name` string — A unique, human-friendly name for the transformation
  - `code` string — JavaScript code to be executed
  - `env` object — Key-value environment variables to be passed to the transformation

## Response `200`

A single transformation

- Transformation
  - `id` string, required — ID of the transformation
  - `team_id` string, required — ID of the project
  - `name` string, required — A unique, human-friendly name for the transformation
  - `code` string, required — JavaScript code to be executed
  - `encrypted_env` string, nullable
  - `iv` string, nullable
  - `env` object, nullable — Key-value environment variables to be passed to the transformation
  - `updated_at` string, date-time, required — Date the transformation was last updated
  - `created_at` string, date-time, required — Date the transformation was created

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/hookdeck/apis/hookdeck-admin-rest-api.md) · [All operations](https://skmtc.net/hookdeck/apis/hookdeck-admin-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hookdeck/hookdeck-admin-rest-api/versions/31da4ed27d31/schema)
