> Markdown version of https://tuna.am/en/docs/api/secrets-environment-order/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# Reorder project environments

post`/v1/secrets/environments/order`

Requires `admin` access to the project. Environments with unknown aliases are skipped.

## Request

### Authorization

* **Authorization**stringheaderrequired

  Key in the format `Bearer <API-key>`. Create a key on the [API keys](https://my.tuna.am/api_keys) page.

### Query Parameters

* **project** stringrequired

  Project alias

### Request body

application/json

* Array \[
* **order**integer\<int64>

  Position of the environment in the list

  **Example:&#x20;**`2`

  **slug**stringrequired

  Environment alias

  **Example:&#x20;**`production`

  ]

### Response

204
