---
title: "Update indexes order"
method: PUT
path: "/api/v1/logs/config/index-order"
tags: ["Logs Indexes"]
---

# Update indexes order

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

This endpoint updates the index order of your organization.
It returns the index order object passed in the request body when the request is successful.

## Request body

- LogsIndexesOrder — Object containing the ordered list of log index names.
  - `index_names` string[], required — Array of strings identifying by their name(s) the index(es) of your organization. Logs are tested against the query filter of each index one by one, following the order of the array. Logs are eventually stored in the first matching index.

## Response `200`

OK

- LogsIndexesOrder — Object containing the ordered list of log index names.
  - `index_names` string[], required — Array of strings identifying by their name(s) the index(es) of your organization. Logs are tested against the query filter of each index one by one, following the order of the array. Logs are eventually stored in the first matching index.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `429` — Too many requests

---

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