---
title: "Update Artifact Labels"
method: PUT
path: "/registry/{registry_ref}/artifact/{artifact}/labels"
tags: ["Artifacts"]
---

# Update Artifact Labels

`PUT /registry/{registry_ref}/artifact/{artifact}/labels`

Update Artifact Labels.

## Path parameters

- `registry_ref` string, required
- `artifact` string, required

## Query parameters

- `artifact_type` 'model' | 'dataset'

## Request body

- ArtifactLabelRequest
  - `labels` string[], required

## Response `200`

response to get artifact label response

- object
  - `status` 'SUCCESS' | 'FAILURE' | 'ERROR', required — Indicates if the request was successful or not
  - `data` ArtifactSummary, required — Harness Artifact Summary
    - `imageName` string, required
    - `packageType` 'DOCKER' | 'MAVEN' | 'PYTHON' | 'GENERIC' | 'HELM' | 'NUGET' | 'NPM' | 'RPM' | 'CARGO' | 'GO' | 'HUGGINGFACE', required — refers to package
    - `artifactType` 'model' | 'dataset' — refers to artifact type
    - `labels` string[]
    - `downloadsCount` integer
    - `createdAt` string
    - `modifiedAt` string
    - `uuid` string, required
    - `registryUUID` string, required
    - `deletedAt` string — Timestamp in milliseconds when the registry was soft-deleted

## Other responses

- `400` — Bad request
- `401` — Unauthenticated
- `403` — Unauthorized
- `404` — The specified resource was not found
- `500` — Internal server error

## Changes

- **2026-07-17** `e315ed26a2f1` — 1 breaking
  - removed the required property `data/isDeleted` from the response with the `200` status
- **2026-01-08** `81ebfef36eed` — 2 info
  - added the optional property `data/deletedAt` to the response with the `200` status
  - added the required property `data/isDeleted` to the response with the `200` status
- **2025-12-31** `22961dd6a8c5` — 2 info
  - added the required property `data/registryUUID` to the response with the `200` status
  - added the required property `data/uuid` to the response with the `200` status
- **2025-08-07** `821be84493dd` — 2 breaking, 2 warning, 4 info
  - removed the enum value `DATASET` from the `query` request parameter `artifact_type`
  - removed the enum value `MODEL` from the `query` request parameter `artifact_type`
  - added the new `dataset` enum value to the `data/artifactType` response property for the response status `200`
  - added the new `model` enum value to the `data/artifactType` response property for the response status `200`
  - …4 more
- **2025-08-04** `c95e57236992` — 1 warning, 2 info
  - added the new `HUGGINGFACE` enum value to the `data/packageType` response property for the response status `200`
  - added the new optional `query` request parameter `artifact_type`
  - added the optional property `data/artifactType` to the response with the `200` status

[Full history](https://skmtc.dev/harness/apis/harness-artifact-registry-api/changes/registry/:registry_ref/artifact/:artifact/labels/put.md)

---

[API](https://skmtc.dev/harness/apis/harness-artifact-registry-api.md) · [All operations](https://skmtc.dev/harness/apis/harness-artifact-registry-api/llms.txt) · [OpenAPI document](https://skmtc.dev/harness/apis/harness-artifact-registry-api/revisions/e315ed26a2f1?raw)
