---
title: "Create new transaction"
method: POST
path: "/transactions"
tags: ["resource-api"]
---

# Create new transaction

`POST /transactions`

Create new transaction

## Request body

- TransactionResource — unresolved $ref

## Response `201`

successful operation

- TransactionResource — unresolved $ref

## Other responses

- `400` — trying to create a transaction with an already existing ID
- `500` — problem creating a transaction

## Changes

- **2023-05-23** `702c86b56f79` — 1 breaking, 5 info
  - removed the success response with the status `200`
  - api tag `resource-api` added
  - api tag `api` removed
  - added the media type `text/yaml` to the request body
  - …2 more
- **2023-05-05** `7c46d0f458c1` — 2 breaking, 4 info
  - removed the media type `text/yaml` from the request body
  - removed the success response with the status `201`
  - api tag `api` added
  - api tag `resource-api` removed
  - …2 more
- **2023-05-04** `0b8db1ad68a5` — 1 breaking, 5 info
  - removed the success response with the status `200`
  - api tag `resource-api` added
  - api tag `api` removed
  - added the media type `text/yaml` to the request body
  - …2 more
- **2022-11-17** `9ee6203c38fa` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kubeshop/apis/tracetest/changes/transactions/post.md)

---

[API](https://skmtc.dev/kubeshop/apis/tracetest.md) · [All operations](https://skmtc.dev/kubeshop/apis/tracetest/llms.txt) · [OpenAPI document](https://skmtc.dev/kubeshop/apis/tracetest/revisions/91036c61f8d9?raw)
