> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/miria-4.6/miria-4.6-fr/documentation-de-reference/reference-de-lapi-rest/files.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Files

## DELETE /files/

> Manual file/directory deleting

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/":{"delete":{"operationId":"filesDestroy","description":"Manual file/directory deleting","parameters":[{"in":"query","name":"globalPath","schema":{"type":"string"},"description":"**Path of the file/directory to delete.**\n\nGlobal Path must be an absolute path\n\n*Must have format:*\narchive@<archive_name>:/archive_path/file\n\nPath example above correspond to Unix format,\nfor Windows use double backslashes instead of \"/\"\n"}],"tags":["files"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/add-to-archiving/

> Register objects to add to initialized job.\
> This endpoint can be called many times on an earlier created archive job.\
> Each object path to be archived should be on the same source host.\
> &#x20;                          &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/add-to-archiving/":{"post":{"operationId":"filesAddToArchivingCreate","description":"Register objects to add to initialized job.\nThis endpoint can be called many times on an earlier created archive job.\nEach object path to be archived should be on the same source host.\n                            ","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/add-to-copy/

> Register objects to add to initialized job.\
> This endpoint can be called many times on an earlier created copy job.\
> Each object path to be copied should be on the same source host and to the same destination host.\
> &#x20;                          &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/add-to-copy/":{"post":{"operationId":"filesAddToCopyCreate","description":"Register objects to add to initialized job.\nThis endpoint can be called many times on an earlier created copy job.\nEach object path to be copied should be on the same source host and to the same destination host.\n                            ","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/add-to-delete/

> Register objects to add to initialized job.\
> This endpoint can be called many times on an earlier created deleted job.\
> Each object path to be deleted should be on the same source host.\
> \
> &#x20;                          &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/add-to-delete/":{"post":{"operationId":"filesAddToDeleteCreate","description":"Register objects to add to initialized job.\nThis endpoint can be called many times on an earlier created deleted job.\nEach object path to be deleted should be on the same source host.\n\n                            ","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/advanced-search/

> Search files by metadata or criteria\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/advanced-search/":{"post":{"operationId":"filesAdvancedSearchCreate","description":"Search files by metadata or criteria\n        ","parameters":[{"in":"query","name":"getMediaInfo","schema":{"type":"boolean"},"description":"Get media(s) id(s) of associated stream if exists. (default: false)"}],"tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/archive/

> File manual archiving

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/archive/":{"post":{"operationId":"filesArchiveCreate","description":"File manual archiving","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/delete/

> Manual file/directory deleting

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/delete/":{"post":{"operationId":"filesDeleteCreate","description":"Manual file/directory deleting","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/init-archiving/

> Init Archiving job.

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/init-archiving/":{"post":{"operationId":"filesInitArchivingCreate","description":"Init Archiving job.","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/init-copy/

> Init Copying job.

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/init-copy/":{"post":{"operationId":"filesInitCopyCreate","description":"Init Copying job.","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/init-delete/

> Init Deleting job.

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/init-delete/":{"post":{"operationId":"filesInitDeleteCreate","description":"Init Deleting job.","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/retrieve/

> File manual retrieving

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/retrieve/":{"post":{"operationId":"filesRetrieveCreate","description":"File manual retrieving","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/search/

> Search files per metadata

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/search/":{"post":{"operationId":"filesSearchCreate","description":"Search files per metadata","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/sync/

> File manual syncing

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/sync/":{"post":{"operationId":"filesSyncCreate","description":"File manual syncing","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/trigger-archiving/

> Closes an earlier created archive job.\
> The job will be launched with previous information from /files/init-archiving and /files/add-to-archiving.\
> &#x20;                          &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/trigger-archiving/":{"post":{"operationId":"filesTriggerArchivingCreate","description":"Closes an earlier created archive job.\nThe job will be launched with previous information from /files/init-archiving and /files/add-to-archiving.\n                            ","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/trigger-copy/

> Closes an earlier created copy job. The job will be launched with previous information from /files/init-copy and /file/add-to-copy.\
> &#x20;                          &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/trigger-copy/":{"post":{"operationId":"filesTriggerCopyCreate","description":"Closes an earlier created copy job. The job will be launched with previous information from /files/init-copy and /file/add-to-copy.\n                            ","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /files/trigger-delete/

> Closes an earlier created delete job. The job will be launched with previous information from /files/init-delete and /file/add-to-delete\
> &#x20;                          &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/files/trigger-delete/":{"post":{"operationId":"filesTriggerDeleteCreate","description":"Closes an earlier created delete job. The job will be launched with previous information from /files/init-delete and /file/add-to-delete\n                            ","tags":["files"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/miria-4.6/miria-4.6-fr/documentation-de-reference/reference-de-lapi-rest/files.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
