---
updatedAt: 2026-09-02T17:35:26.000Z
agentTools:
  projectIndex: https://docs.go.v7labs.com/llms.txt
---

# Move files in hub

Moves files in a hub to a new folder

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "Common.APIErrorDetails": {
        "description": "Additional structured error context. Shape varies by error code.\n\n- For conflict errors: contains a `conflicts` array with conflicting resources\n- For other errors: may contain arbitrary error-specific context",
        "nullable": true,
        "oneOf": [
          {
            "$ref": "#/components/schemas/Common.ConflictErrorDetails"
          },
          {
            "additionalProperties": true,
            "description": "Generic error details for non-conflict errors",
            "type": "object",
            "x-struct": null,
            "x-validate": null
          }
        ],
        "title": "Common.APIErrorDetails",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Common.APIErrorDetails",
        "x-validate": null
      },
      "Common.ConflictErrorDetails": {
        "additionalProperties": false,
        "description": "Details for conflict errors",
        "properties": {
          "conflicts": {
            "description": "List of conflicting resources",
            "items": {
              "additionalProperties": true,
              "type": "object",
              "x-struct": null,
              "x-validate": null
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "conflicts"
        ],
        "title": "Common.ConflictErrorDetails",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Common.ConflictErrorDetails",
        "x-validate": null
      },
      "Hubs.FileNameConflict": {
        "additionalProperties": false,
        "description": "Details about a file name conflict. Returned when attempting to add files with duplicate names.",
        "properties": {
          "conflict_type": {
            "description": "Type of conflict: 'batch_duplicate' means the filename appears multiple times in the upload batch, 'existing_file' means a file with the same name already exists in the target folder, 'existing_folder' means a folder with the same name already exists in the target folder",
            "enum": [
              "batch_duplicate",
              "existing_file",
              "existing_folder"
            ],
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "filename": {
            "description": "The conflicting filename",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "parent_id": {
            "$ref": "#/components/schemas/Common.NullableUUID"
          }
        },
        "required": [
          "parent_id",
          "filename",
          "conflict_type"
        ],
        "title": "Hubs.FileNameConflict",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Hubs.FileNameConflict",
        "x-validate": null
      },
      "Common.NullableUUID": {
        "example": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
        "format": "uuid",
        "nullable": true,
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "title": "Common.NullableUUID",
        "type": "string",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Common.NullableUUID",
        "x-validate": null
      },
      "Common.UUID": {
        "example": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
        "format": "uuid",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "title": "Common.UUID",
        "type": "string",
        "x-struct": null,
        "x-validate": null
      },
      "Hubs.MoveFilesRequest": {
        "additionalProperties": false,
        "description": "Request to move files",
        "properties": {
          "file_ids": {
            "items": {
              "$ref": "#/components/schemas/Common.UUID"
            },
            "maxItems": 100,
            "minItems": 1,
            "type": "array",
            "uniqueItems": true,
            "x-struct": null,
            "x-validate": null
          },
          "new_parent_folder_id": {
            "$ref": "#/components/schemas/Common.NullableUUID"
          }
        },
        "required": [
          "file_ids",
          "new_parent_folder_id"
        ],
        "title": "Hubs.MoveFilesRequest",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Hubs.MoveFilesRequest",
        "x-validate": null
      },
      "Hubs.MoveFilesResponse": {
        "additionalProperties": false,
        "properties": {},
        "title": "Hubs.MoveFilesResponse",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Hubs.MoveFilesResponse",
        "x-validate": null
      },
      "Hubs.HubFileConflictError": {
        "additionalProperties": false,
        "description": "Error response for hub file name conflicts",
        "properties": {
          "code": {
            "example": "conflict",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "details": {
            "properties": {
              "conflicts": {
                "description": "List of file name conflicts",
                "items": {
                  "$ref": "#/components/schemas/Hubs.FileNameConflict"
                },
                "type": "array",
                "x-struct": null,
                "x-validate": null
              }
            },
            "required": [
              "conflicts"
            ],
            "type": "object",
            "x-struct": null,
            "x-validate": null
          },
          "message": {
            "example": "File name conflicts detected",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "code",
          "message",
          "details"
        ],
        "title": "Hubs.HubFileConflictError",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Hubs.HubFileConflictError",
        "x-validate": null
      },
      "Common.APIError": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "example": "bad_request",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "details": {
            "$ref": "#/components/schemas/Common.APIErrorDetails"
          },
          "message": {
            "example": "Bad Request",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "Common.APIError",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Common.APIError",
        "x-validate": null
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "in": "header",
        "name": "X-API-KEY",
        "type": "apiKey"
      },
      "BearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "V7 Go API",
    "version": "0.1.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/api/workspaces/{workspace_id}/hubs/{hub_id}/files/move": {
      "post": {
        "callbacks": {},
        "description": "Moves files in a hub to a new folder",
        "operationId": "hub-move-files",
        "parameters": [
          {
            "description": "",
            "in": "path",
            "name": "workspace_id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Common.UUID"
            }
          },
          {
            "description": "",
            "in": "path",
            "name": "hub_id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Common.UUID"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hubs.MoveFilesRequest"
              }
            }
          },
          "description": "Hubs.MoveFilesRequest",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Hubs.MoveFilesResponse"
                }
              }
            },
            "description": "Hubs.MoveFilesResponse"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Hubs.HubFileConflictError"
                }
              }
            },
            "description": "Hubs.HubFileConflictError"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          }
        },
        "summary": "Move files in hub",
        "tags": [
          "HubFiles"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyAuth": []
    }
  ],
  "servers": [
    {
      "description": "EU",
      "url": "https://go.v7labs.com",
      "variables": {}
    },
    {
      "description": "US",
      "url": "https://go.us.v7labs.com",
      "variables": {}
    },
    {
      "description": "UAE",
      "url": "https://go.uae.v7labs.com",
      "variables": {}
    }
  ]
}
```