---
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.
  - `comfy_nodes` object

## Other responses

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

## Changes

- **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
- **2024-06-19** `71d8dae509a8` — 1 warning, 1 info
  - added the new `NodeVersionStatusFlagged` enum value to the `status` response property for the response status `200`
  - added the new `NodeVersionStatusFlagged` enum value to the request property `status`
- **2024-06-15** `c013102b098c` — 2 info
  - added the new optional request property `status_reason`
  - added the optional property `status_reason` to the response with the `200` status
- **2024-06-15** `1932fd7e935d` — 1 info
  - endpoint added

[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/effe73f210a7/schema)
