---
agentTools:
  projectIndex: https://seafile-api.readme.io/llms.txt
---

# Batch copy items synchronously

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Account Operations - User",
    "description": "The official SeaTable API Reference (OpenAPI 3.0). - Part 'User Account Operations'.",
    "version": "13.0"
  },
  "servers": [
    {
      "url": "https://{server}",
      "variables": {
        "server": {
          "default": "cloud.seafile.com"
        }
      }
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "metrics-enabled": false,
    "proxy-enabled": false
  },
  "components": {
    "securitySchemes": {
      "AccountTokenAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "This is the [Account-Token](/reference/authentication)."
      }
    },
    "schemas": {
      "src_repo_id": {
        "type": "string",
        "description": "The unique identifier of a library",
        "pattern": "^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$"
      },
      "src_parent_dir": {
        "type": "string",
        "description": "File path",
        "example": "/src"
      },
      "src_dirents": {
        "type": "array",
        "items": {
          "type": "string",
          "example": [
            "1.md",
            "2.md"
          ]
        }
      },
      "dst_repo_id": {
        "type": "string",
        "description": "The unique identifier of a library",
        "pattern": "^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$"
      },
      "dst_parent_dir": {
        "type": "string",
        "description": "File path",
        "example": "/dst"
      }
    }
  },
  "paths": {
    "/api/v2.1/repos/sync-batch-copy-item/": {
      "post": {
        "tags": [
          "Files/Directories batch operation"
        ],
        "summary": "Batch copy items synchronously",
        "security": [
          {
            "AccountTokenAuth": []
          }
        ],
        "requestBody": {
          "description": "Content type of parameter must be application/json and passed through POST request's body.",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "src_repo_id": {
                    "$ref": "#/components/schemas/src_repo_id"
                  },
                  "src_parent_dir": {
                    "$ref": "#/components/schemas/src_parent_dir"
                  },
                  "src_dirents": {
                    "$ref": "#/components/schemas/src_dirents"
                  },
                  "dst_repo_id": {
                    "$ref": "#/components/schemas/dst_repo_id"
                  },
                  "dst_parent_dir": {
                    "$ref": "#/components/schemas/dst_parent_dir"
                  }
                },
                "required": [
                  "src_repo_id",
                  "src_parent_dir",
                  "src_dirents",
                  "dst_repo_id",
                  "dst_parent_dir"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "Success state"
                    }
                  }
                },
                "example": {
                  "success": true
                }
              }
            }
          }
        }
      }
    }
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 183,
      "2": 248,
      "3": 230,
      "4": 103,
      "5": 20,
      "6": 160,
      "7": 0,
      "8": 41,
      "9": 50,
      "10": 176,
      "11": 71
    }
  }
}
```