---
title: "Admin Update Node Version Status"
method: PUT
path: "/admin/nodes/{nodeId}/versions/{versionNumber}"
tags: ["Versions"]
---

# Admin Update Node Version Status

`PUT /admin/nodes/{nodeId}/versions/{versionNumber}`

Only admins can approve a node version.

## Path parameters

- `nodeId` string, required
- `versionNumber` string, required

## Request body

- object
  - `status` 'NodeVersionStatusActive' | 'NodeVersionStatusDeleted' | 'NodeVersionStatusBanned' | 'NodeVersionStatusPending' | 'NodeVersionStatusFlagged'
  - `status_reason` string — The reason for the status change.

## Response `200`

Version updated successfully

- NodeVersion
  - `id` string
  - `version` string — The version identifier, following semantic versioning. Must be unique for the node.
  - `createdAt` string, date-time — The date and time the version was created.
  - `changelog` string — Summary of changes made in this version
  - `dependencies` string[] — A list of pip dependencies required by the node.
  - `downloadUrl` string — [Output Only] URL to download this version of the node
  - `deprecated` boolean — Indicates if this version is deprecated.
  - `status` 'NodeVersionStatusActive' | 'NodeVersionStatusDeleted' | 'NodeVersionStatusBanned' | 'NodeVersionStatusPending' | 'NodeVersionStatusFlagged'
  - `status_reason` string — The reason for the status change.
  - `node_id` string — The unique identifier of the node.

## Other responses

- `400` — Bad request, invalid input data.
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Version not found
- `500` — Internal server error

## Changes

- **2025-01-23** `0caacf7dfa8f` — 1 warning
  - removed the optional property `comfy_nodes` from the response with the `200` status
- **2025-01-11** `c83a221f1f42` — 1 breaking
  - the `comfy_nodes/additionalProperties/return_names` response's property type/format changed from `array`/`` to `string`/`` for status `200`
- **2025-01-04** `1aa47fe33bc6` — 1 info
  - added the optional property `node_id` to the response with the `200` status
- **2024-12-31** `effe73f210a7` — 1 breaking
  - the `comfy_nodes/additionalProperties/return_types` response's property type/format changed from `array`/`` to `string`/`` for status `200`
- **2024-12-27** `d6144fb8f689` — 1 info
  - added the optional property `comfy_nodes` to the response with the `200` status

[Full history](https://skmtc.dev/comfy-org/apis/comfy-api/changes/admin/nodes/:nodeId/versions/:versionNumber/put.md)

---

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