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

# Move landers to folder

> Move one or more landers into a folder. Fails if any lander belongs to a website. Returns a single `lander` when one id is passed, otherwise the full `landers` list.



## OpenAPI

````yaml https://backend-v2.landerlab.workers.dev/api/v2/openapi.json post /api/v2/workspaces/{workspaceId}/landers/move-to-folder
openapi: 3.1.0
info:
  title: LanderLab API
  version: 2.0.0
  description: >-
    LanderLab public API. Authenticate with an API key using the X-API-Key
    header.
servers:
  - url: https://api.landerlab.dev
    description: Production
security: []
tags:
  - name: Account
    description: >-
      Discover the organization and workspaces your API key can access. Start
      here.
  - name: Workspaces
    description: List and manage workspaces.
  - name: Landers
    description: Create, update, publish and manage landers.
  - name: A/B Testing
    description: Manage variants and split-test weights.
  - name: Editor
    description: Load and save lander content and settings.
  - name: Analytics
    description: Query unified analytics across workspaces, landers and variants.
  - name: Leads
    description: Retrieve captured leads.
  - name: Integrations
    description: Manage account-level integrations.
  - name: Lander Integrations
    description: Attach and toggle integrations on landers.
  - name: Domains
    description: Manage custom domains.
  - name: Folders
    description: Organize landers into folders.
paths:
  /api/v2/workspaces/{workspaceId}/landers/move-to-folder:
    post:
      tags:
        - Landers
      summary: Move landers to folder
      description: >-
        Move one or more landers into a folder. Fails if any lander belongs to a
        website. Returns a single `lander` when one id is passed, otherwise the
        full `landers` list.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                folderId:
                  type: integer
                landerIds:
                  type: array
                  items:
                    type: integer
              required:
                - folderId
                - landerIds
      responses:
        '200':
          description: Updated lander (single id) or full lander list (multiple ids)
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      lander:
                        type: object
                        propertyNames:
                          type: string
                        additionalProperties: {}
                    required:
                      - lander
                    additionalProperties: false
                  - type: object
                    properties:
                      landers:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: number
                            name:
                              type: string
                            workspaceId:
                              type: number
                            published:
                              type: boolean
                            domainId:
                              anyOf:
                                - type: number
                                - type: 'null'
                            publishedAt:
                              anyOf:
                                - type: string
                                - type: 'null'
                            createdAt:
                              type: string
                            updatedAt:
                              type: string
                            previewURL:
                              type: string
                            status:
                              type: string
                          required:
                            - id
                            - name
                            - workspaceId
                            - published
                            - domainId
                            - publishedAt
                            - createdAt
                            - updatedAt
                            - previewURL
                            - status
                          additionalProperties: false
                    required:
                      - landers
                    additionalProperties: false
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key with ll_live_ prefix

````