---
title: "Create Transform"
method: POST
path: "/modules/{moduleId}/transforms"
tags: ["Transforms"]
---

# Create Transform

`POST /modules/{moduleId}/transforms`

## Request

- Base URL: `https://env.unqork.io/api/1.0`
- URL: `https://env.unqork.io/api/1.0/modules/{moduleId}/transforms`
- Auth: OAuth 2
  - Client credentials
  - Password
  - Token URL: `https://xyzfinancial.unqork.io/api/1.0/oauth2/access_token`
- TypeScript: <https://skmtc.dev/unqork/apis/unqork-customer-api/docs/modules/:moduleId/transforms/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new transform.
### Authorization Required:
  - Application Create

## Path parameters

- `moduleId` string, required

## Request body

- TransformPost
  - `name` string, required: Can only contain alphanumerics and hyphens
  - `type` 'njk-xml' | 'njk-pdf' | 'njk-txt' | 'njk' | 'xsl', required
  - `io` 'in' | 'out', required
  - `template` string

## Response `201`

Transform created

- TransformResponse
  - `name` string, required
  - `moduleId` string, required
  - `type` 'njk-xml' | 'njk-pdf' | 'njk' | 'xsl', required
  - `io` 'in' | 'out', required
  - `template` string

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/unqork/apis/unqork-customer-api.md) - [All operations](https://skmtc.dev/unqork/apis/unqork-customer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unqork/apis/unqork-customer-api/revisions/13dad4096373?raw)
