---
title: "Sets the chain record."
method: POST
path: "/v1/chains/{chainID}/chainrecord"
tags: ["chains"]
---

# Sets the chain record.

`POST /v1/chains/{chainID}/chainrecord`

## Path parameters

- `chainID` string, string, required

## Request body

- ChainRecord
  - `accessNodes` string[], required
  - `isActive` boolean, required

## Response `201`

Chain record was saved

## Other responses

- `401` — Unauthorized (Wrong permissions, missing token)

## Changes

- **2023-03-21** `5ffe1a3d7623` — 1 info
  - endpoint added
- **2023-02-13** `1041f915f260` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/iotaledger/apis/wasp-api/changes/v1/chains/:chainID/chainrecord/post.md)

---

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