> For the complete documentation index, see [llms.txt](https://docs.tagshelf.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tagshelf.dev/event-api/fileevents/move.md).

# File Move

### Usage

This file event triggers when the location of a file has been modified. Files may be moved due to the following reasons:

* When a file is classified, it will move to the corresponding directory,
* When a file fails to be classified, it will move the No Tag directory.
* When its processing pipeline fails.
* When a user voluntarily move the file to the Recycle Bin.<br>

### JSON Payload

```json
{
  "event_id": "(UUID format) - Unique identifier for the event.",
  "event_type": "Describes the type of event that occurred.",
  "event_time": "(floating-point numeric timestamp) - Unix timestamp representing the time when the event occurred, rounded to whole seconds.",
  "event": {
    "event_name": "Name of the specific event.",
    "event_type": "Type of the event, often matching or related to the outer event_type.",
    "company_id": "(UUID format) - Unique identifier for the company involved in the event.",
    "company_name": "Name of the company involved in the event.",
    "file_id": "(UUID format) - Unique identifier for the file associated with the event.",
    "file_name": "Filename of the document including its extension.",
    "file_name_without_extension": "Filename of the document excluding its extension.",
    "blob_name": "Path identifier of the document within the storage system.",
    "blob_url": "URL - Fully qualified URL where the document is stored, accessible via HTTP or HTTPS.",
    "previous_file_directory": "Path - Previous directory path where the file was stored.",
    "new_file_directory": "Path - New directory path to which the file has been moved.",
    "creation_date": "(ISO 8601 date format) - Date and time when the file was initially created.",
    "update_date": "(ISO 8601 date format) - Date and time when the file or event was last updated."
  }
}
```

```bash
 {
  "event_id": "abcd2345-efgh-6789-ijkl-1234mnop5678",
  "event_type": "file_event_type",
  "event_time": "1651629000.00",
  "event": {
    "event_name": "file_move_event",
    "event_type": "file_event_type",
    "company_id": "12345678-1234-1234-1234-1234567890ab",
    "company_name": "Global Corp",
    "file_id": "87654321-4321-4321-4321-210987654321",
    "file_name": "report_2023.docx",
    "file_name_without_extension": "report_2023",
    "blob_name": "2023/reports/report_2023.docx",
    "blob_url": "https://storage.globalcorp.com/2023/reports/report_2023.docx",
    "previous_file_directory": "/previous_directory/2023/reports/",
    "new_file_directory": "/new_directory/2023/reports/",
    "creation_date": "2023-05-10T08:00:00Z",
    "update_date": "2023-05-10T09:00:00Z"
  }
}
                        
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tagshelf.dev/event-api/fileevents/move.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
