---
title: "Apply a transformation operation"
method: POST
path: "/string/transform"
tags: ["String"]
---

# Apply a transformation operation

`POST /string/transform`

## Request

- Base URL: `https://abundanceapis.com`
- URL: `https://abundanceapis.com/string/transform`
- Auth: none declared

Performs the specified operation on the input text.

## Request body

- object
  - `text` string, required
  - `op` 'reverse' | 'trim' | 'trimStart' | 'trimEnd' | 'collapseWhitespace' | 'repeat' | 'truncate' | 'removeWhitespace' | 'removeAccents', required
  - `count` integer
  - `length` integer

## Other responses

- `400`: Bad request

---

[API](https://skmtc.dev/abundanceapis/apis/web-toolbox.md) · [All operations](https://skmtc.dev/abundanceapis/apis/web-toolbox/llms.txt) · [OpenAPI document](https://skmtc.dev/abundanceapis/apis/web-toolbox/revisions/ada2893fef43?raw)
