---
title: "Add a file into a job"
method: PUT
path: "/jobs/{id}/files"
tags: ["Import API"]
---

# Add a file into a job

`PUT /jobs/{id}/files`

Add a file into a job, for each file added an alias name needs to be given. This name needs to link to the recipe

## Path parameters

- `id` string, required

## Request body

- File
  - `alias_name` string — An alias name for the file
  - `url` string — The full S3 path including zone, and bucket

## Response `200`

The file was added to the import job

## Other responses

- `400` — Invalid json message was sent to the API
- `404` — JobId does not match any import jobs
- `500` — Failed to process the request due to an internal error

---

[API](https://skmtc.net/office-of-national-statistics/apis/import-api.md) · [All operations](https://skmtc.net/office-of-national-statistics/apis/import-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/office-of-national-statistics/import-api/revisions/8b1b6af71c8b/schema)
