---
title: "POST /v4/enums/{enumName}/batch-convert"
method: POST
path: "/v4/enums/{enumName}/batch-convert"
tags: ["Enums"]
---

# POST /v4/enums/{enumName}/batch-convert

`POST /v4/enums/{enumName}/batch-convert`

Batch convert multiple enum values at once. Accepts an array of values and returns an array of conversion results. Maximum 100 values per request.

## Path parameters

- `enumName` string, required — Name of the enum (e.g., CampaignType, ChainId, DistributionMethod)

## Request body

- object
  - `values` union[], required — Array of values to convert
    - union
      - string
      - number

## Response `200`

Response for status 200

- object
  - `results` object[], required — Array of conversion results
    - `input` union, required — The input value
      - string
      - number
    - `output` union, required — The converted value
      - string
      - number
    - `description` string — Description if available

---

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