---
title: "Create"
method: POST
path: "/api/cp/transformation"
tags: ["Transformation"]
---

# Create

`POST /api/cp/transformation`

Create a new Transformation record.

## Request body

- TransformationInput
  - `id` integer — Id
  - `card_id` string, required — Card Id
  - `prefix` string — Prefix
  - `prefix_set_id` integer — Prefix Set Id
  - `profit_type` 'absolute' | 'relative' | 'percent' — Profit Type
  - `cost` number — Cost
  - `percent` number — Percent
  - `edit_max_cost` number — Edit Max Cost
  - `priority` integer, required — Priority
  - `new_name` string — New Name
  - `mcd` integer — Mcd
  - `pulse` integer — Pulse
  - `cost_connect` number — Cost Connect
  - `rounding` integer — Rounding
  - `apply_to` string — Apply To
  - `action` string — Action
  - `status` string — Status

## Response `200`

Successful response

- CreateResponse
  - `id` union — The ID of the newly created record
    - integer
    - string
  - `status` string — Operation status

## Other responses

- `400` — Bad Request - Invalid parameters or request body
- `401` — Authentication information is missing or invalid
- `403` — Access denied - insufficient permissions or dependency access failure
- `409` — Conflict - foreign key or unique constraint violation on write
- `500` — Internal server error

---

[API](https://skmtc.dev/connexcs/apis/connexcs-control-panel-api.md) · [All operations](https://skmtc.dev/connexcs/apis/connexcs-control-panel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/connexcs/connexcs-control-panel-api/revisions/54bc2ed6edae/schema)
