---
title: "Creates or updates the active operational dataset"
method: PUT
path: "/node/dataset/active"
tags: ["node"]
---

# Creates or updates the active operational dataset

`PUT /node/dataset/active`

Creates or updates the active operational dataset on the current node. Only allowed if the Thread node
is inactive. If the Thread node is active, a pending dataset should be used to update the current active
operational dataset.

## Headers

- `If-None-Match` '*'

## Request body

- ActiveDataset
  - `activeTimestamp` Timestamp
    - `seconds` integer — Timestamp seconds
    - `ticks` integer — Timestamp ticks
    - `authoritative` boolean
  - `networkKey` string — Network key, 16 bytes long, formatted as a hexadecimal string
  - `networkName` string — Network name, 16 bytes long
  - `extPanId` string — Extended PAN ID, 8 bytes long, formatted as a hexadecimal string
  - `meshLocalPrefix` string — Mesh local IPv6 prefix
  - `panId` integer — IEEE 802.15.4 PAN ID of the Thread network
  - `channel` integer — IEEE 802.15.4 channel of the Thread network
  - `pskc` string — The pre-shared commissioner key
  - `securityPolicy` SecurityPolicy
    - `rotationTime` integer — Thread key rotation time in hours
    - `obtainNetworkKey` boolean — Obtaining the Network Key for out-of-band commissioning is enabled
    - `nativeCommissioning` boolean — Native Commissioning using PSKc is allowed
    - `routers` boolean — Thread 1.0/1.1.x Routers are enabled
    - `externalCommissioning` boolean — External Commissioner authentication is allowed
    - `commercialCommissioning` boolean — Commercial Commissioning is enabled
    - `autonomousEnrollment` boolean — Autonomous Enrollment is enabled
    - `networkKeyProvisioning` boolean — Network Key Provisioning is enabled
    - `tobleLink` boolean — ToBLE link is enabled
    - `nonCcmRouters` boolean — Non-CCM Routers enabled
  - `channelMask` integer — Channel mask

## Response `200`

Successfully updated the active operational dataset.

## Other responses

- `201` — Successfully created the active operational dataset.
- `400` — Invalid request body, or an `If-None-Match` header value other than `*`.
- `409` — Writing active operational dataset rejected because Thread network is active.
- `412` — A dataset is already in place and the request carried `If-None-Match: *`. Nothing was written; retry without the header to replace the dataset deliberately, or wait until none is in place.
- `500` — The server encountered an unexpected error. The client SHOULD retry after a longer period of time.

## Changes

- **2026-08-29** `c3799941c155` — 1 breaking, 1 info
  - removed the media type `plain/text` from the request body
  - added the media type `text/plain` to the request body
- **2026-08-26** `bbe4a10dd414` — 2 info
  - added the new optional `header` request parameter `If-None-Match`
  - added the non-success response with the status `412`
- **2026-02-25** `8c1be192f42d` — 1 breaking, 2 info
  - removed the success response with the status `204`
  - added the non-success response with the status `500`
  - added the success response with the status `200`
- **2025-09-10** `21e4b0112d12` — 1 breaking, 10 warning, 11 info
  - removed the success response with the status `200`
  - removed the request property `ActiveTimestamp`
  - removed the request property `Channel`
  - removed the request property `ChannelMask`
  - …18 more
- **2023-05-10** `54157cc83c30` — 10 warning, 11 info
  - removed the request property `activeTimestamp`
  - removed the request property `channel`
  - removed the request property `channelMask`
  - removed the request property `extPanId`
  - …17 more

[Change history](https://skmtc.dev/openthread/apis/swagger-openthread-rest-api/changes/node/dataset/active/put.md)

---

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