---
title: "PUT /spaces/{spaceIdentifier}/environments/sortorder"
method: PUT
path: "/spaces/{spaceIdentifier}/environments/sortorder"
tags: ["Environments"]
---

# PUT /spaces/{spaceIdentifier}/environments/sortorder

`PUT /spaces/{spaceIdentifier}/environments/sortorder`

Takes an array of environment IDs as the request body, uses the order of items in the array to sort the environments on the server. The ID of every environment must be specified.

## Path parameters

- `spaceIdentifier` string, required

## Request body

- string[]

## Response `200`

Success

---

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