---
title: "Update pipeline order"
method: PUT
path: "/api/v1/logs/config/pipeline-order"
tags: ["Logs Pipelines"]
---

# Update pipeline order

`PUT /api/v1/logs/config/pipeline-order`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v1/logs/config/pipeline-order`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Update the order of your pipelines. Since logs are processed sequentially, reordering a pipeline may change
the structure and content of the data processed by other pipelines and their processors.

**Note**: Using the `PUT` method updates your pipeline order by replacing your current order
with the new one sent to your Datadog organization.

## Request body

- LogsPipelinesOrder: Object containing the ordered list of pipeline IDs.
  - `pipeline_ids` string[], required: Ordered Array of `<PIPELINE_ID>` strings, the order of pipeline IDs in the array define the overall Pipelines order for Datadog.

## Response `200`

OK

- LogsPipelinesOrder: Object containing the ordered list of pipeline IDs.
  - `pipeline_ids` string[], required: Ordered Array of `<PIPELINE_ID>` strings, the order of pipeline IDs in the array define the overall Pipelines order for Datadog.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `422`: Unprocessable Entity
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v1-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v1-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v1-collection/revisions/ca5871004d26?raw)
