---
title: "Enable custom ordering for a collection's content"
method: POST
path: "/v1/collections/{collection_id}/contents/ordering/custom/"
---

# Enable custom ordering for a collection's content

`POST /v1/collections/{collection_id}/contents/ordering/custom/`

## Request

- Base URL: `https://app.iconik.io/API/assets`
- URL: `https://app.iconik.io/API/assets/v1/collections/{collection_id}/contents/ordering/custom/`
- Auth: none declared. Required headers: `App-ID`, `Auth-Token`
- TypeScript: <https://skmtc.dev/iconik/apis/iconik-assets/docs/v1/collections/:collection_id/contents/ordering/custom/post.ts> (a function with typed inputs; its response is checked against the schema)

Required roles:
 - can_write_collections

## Path parameters

- `collection_id` string, required

## Headers

- `App-ID` string, required
- `Auth-Token` string, required

## Request body

- CreateCollectionContentOrderingSchema
  - `custom_order_sort` string: Initial sort order for an ordered collection. Specified as a comma separated list of fieldnames with direction. For example - date_created,asc;status,desc

## Response `202`

Schedules a background job that will order the collection

## Other responses

- `400`: Bad request
- `401`: Token is invalid
- `404`: Collection not found
- `default`: Error response

---

[API](https://skmtc.dev/iconik/apis/iconik-assets.md) - [All operations](https://skmtc.dev/iconik/apis/iconik-assets/llms.txt) - [OpenAPI document](https://skmtc.dev/iconik/apis/iconik-assets/revisions/62580d9e640e?raw)
