> ## Documentation Index
> Fetch the complete documentation index at: https://faces.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Reordenar diapositivas

> Reordena todas las diapositivas de un proyecto en una sola llamada atómica.



## OpenAPI

````yaml PATCH /projects/{slug}/slides
openapi: 3.1.0
info:
  title: Faces API
  version: '1.0'
  description: >-
    Faces API for creating and managing presentations. Generate presentations
    from prompts, or read and write individual slides. Each slide is a React
    component (face.tsx) with content blocks (face.content.json) and editor
    controls (face.controls.json).
servers:
  - url: https://faces.app/api/v1
    description: API v1
security:
  - bearerAuth: []
paths:
  /projects/{slug}/slides:
    patch:
      tags:
        - Slides
      summary: Reorder all slides
      description: >-
        Reorder every slide in a project in a single atomic call. The request
        body's slideIds array must contain exactly the project's existing slide
        IDs (no duplicates, no missing, no extras), in the desired final order.
        Both the persisted project state and the live editor view end up in the
        same order.
      operationId: reorderSlides
      parameters:
        - schema:
            type: string
          required: true
          name: slug
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                slideIds:
                  type: array
                  items:
                    type: string
                  minItems: 1
                  description: >-
                    Full ordered list of every existing slide ID, in the desired
                    final order. Must equal the set of IDs currently in the
                    project.
              required:
                - slideIds
      responses:
        '200':
          description: Slides reordered
          content:
            application/json:
              schema:
                type: object
                properties:
                  slideIds:
                    type: array
                    items:
                      type: string
                    description: The new order of slide IDs in the project.
                  versionId:
                    type: string
                    description: The new project version ID.
                required:
                  - slideIds
                  - versionId
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Project not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        hint:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key with "faces_" prefix. Create one at Settings > Developers.

````