---
title: "Create shard mapping"
method: POST
path: "/shard_mappings"
tags: ["Shard Mapping"]
---

# Create shard mapping

`POST /shard_mappings`

Create a new shard mapping.

## Request body

- ShardMapping
  - `shardKey` string
  - `shardName` string

## Response `201`

Shard mapping created

## Other responses

- `400` — Error creating shard mapping

---

[API](https://skmtc.net/moov-io/apis/achgateway-api.md) · [All operations](https://skmtc.net/moov-io/apis/achgateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/moov-io/achgateway-api/versions/621cad6ee731/schema)
