---
updatedAt: 2025-06-12T21:53:55.000Z
agentTools:
  projectIndex: https://readme.gooru.org/llms.txt
---

# Reorder Resources/Questions in Existing Collection

Reorder all the contents present in the collection

> 📘 Note
>
> JSON payload would contain all the id of the contents, their type and their new order. The complete set needs to be sent, and if there is any which is missing, validation error would be thrown

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "2"
  },
  "servers": [
    {
      "url": "http://gooru.org/api/nucleus/v2"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/collections/{collection-id}/order": {
      "put": {
        "summary": "Reorder Resources/Questions in Existing Collection",
        "description": "Reorder all the contents present in the collection",
        "operationId": "reorder-resourcesquestions-in-existing-collection",
        "parameters": [
          {
            "name": "collection-id",
            "in": "path",
            "description": "UUID",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "204": {
            "description": "204",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {},
              "examples": {
                "Request Example": {
                  "value": {
                    "order": [
                      {
                        "id": "bf1e3e27-1cbf-40ac-9a4a-c86a7bf9e636",
                        "sequence_id": 1
                      },
                      {
                        "id": "7e19b457-0f93-43f6-bbfa-04783d2c1f7e",
                        "sequence_id": 2
                      },
                      {
                        "id": "13d56645-a9ab-4485-9782-2d67b146743a",
                        "sequence_id": 3
                      }
                    ]
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```