---
title: "Add files"
method: PUT
path: "/runs/{id}/files"
tags: ["Runs"]
---

# Add files

`PUT /runs/{id}/files`

## Request

- Base URL: `https://localhost:8446/api/v2`
- URL: `https://localhost:8446/api/v2/runs/{id}/files`
- Auth: API key in header `Authorization`

Add files map to Distribution Job run (for jobs with %GETFILES% macro in source Agent path)

## Path parameters

- `id` number, required

## Request body

- object
  - `files` object: Files. Maximum 1000 files per request.
  - `files.src` string, required: Source file absolute path
  - `files.dst` string, required: Relative file path in destination folder
  - `commit` boolean: Flag which indicates that this is the last call containing list of files. Default value is false.

## Response `200`

Successful response

- object

## Other responses

- `default`: Error response. Depending on the error, either a 4xx or 5xx response status is returned.

---

[API](https://skmtc.dev/resilio/apis/resilio-api.md) - [All operations](https://skmtc.dev/resilio/apis/resilio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/resilio/apis/resilio-api/revisions/ca39130a395e?raw)
