﻿# CLOCK_CONTROL_DISABLED — clock control is not enabled on this node

`POST /api/platform/clock` changes the clock every tenant of the instance shares. It is a test feature, and a node accepts it only when it was started wit…

<em>cyoda-go version <a href="https://github.com/Cyoda/cyoda-go/releases/tag/v0.9.0">0.9.0</a></em>

# errors.CLOCK_CONTROL_DISABLED

## NAME

CLOCK_CONTROL_DISABLED — a request to change the platform clock reached a node that was not started with clock control enabled.

## SYNOPSIS

HTTP: `403` `Forbidden`. Retryable: `no`.

## DESCRIPTION

`POST /api/platform/clock` changes the clock every tenant of the instance shares. It is a test feature, and a node accepts it only when it was started with `CYODA_CLOCK_CONTROL_ENABLED=true`. Without that setting the node runs on real time and refuses every change with this code, after it has checked that the caller is a platform operator.

`GET /api/platform/clock` is not affected: without clock control it answers real time, a rate of 1 and `controllable: false`.

All nodes of a cluster must use the same setting. Start the instance with `CYODA_CLOCK_CONTROL_ENABLED=true` on every node to change its clock; the request is not worth repeating against a node that refused it.

## SEE ALSO

- errors
- errors.CLOCK_BEFORE_RECORDED_TIME

## See also

- [`cyoda help errors`](/help/errors/) — Every error response from the Cyoda REST API carries a structured `errorCode` in the `properties` object. Multiple codes may share the same HTTP status. Programmatic handling keys on `errorCode`, not HTTP status.
- [`cyoda help errors CLOCK_BEFORE_RECORDED_TIME`](/help/errors/clock_before_recorded_time/) — `POST /api/platform/clock` with a `time` not later than now sets the clock there. The store keeps history in time order: setting the clock before a time it has already recorded would stamp new writes earlier than existing ones. The request is refused and the clock stays where it was.

## Raw formats

- [`/help/errors/clock_control_disabled.json`](/help/errors/clock_control_disabled.json) — full descriptor (matches `GET /help/{topic}` envelope)
- [`/help/errors/clock_control_disabled.md`](/help/errors/clock_control_disabled.md) — body only