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

---

[API](https://skmtc.net/harness/apis/harness-artifact-registry-api.md) · [All operations](https://skmtc.net/harness/apis/harness-artifact-registry-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/harness/harness-artifact-registry-api/revisions/e315ed26a2f1/schema)
