---
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'

## 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'

## Other responses

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

## Changes

- **2024-06-15** `1932fd7e935d` — 1 info
  - endpoint added
- **2024-05-23** `9d088b2401a5` — 1 breaking
  - api path removed without deprecation

[Change 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/65d1ad59d1ca/schema)
