---
title: "Replace pipeline labels"
method: POST
path: "/pipelines/labels/apply"
tags: ["labels"]
---

# Replace pipeline labels

`POST /pipelines/labels/apply`

Applies the given list of labels to the given pipelines. Existing labels are replaced — include labels to be preserved in `labelIds`.

## Query parameters

- `workspaceId` integer

## Request body

- AssociatePipelineLabelsRequest
  - `labelIds` integer[]
  - `pipelineIds` integer[]

## Response `204`

OK - No content

## Other responses

- `403` — Operation not allowed

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/versions/13316c9fe5ff/schema)
