---
title: "Upload a new reference file"
method: POST
path: "/api/rest/v1/assets/{asset_code}/reference-files/{locale_code}"
tags: ["PAM asset reference file"]
---

# Upload a new reference file

`POST /api/rest/v1/assets/{asset_code}/reference-files/{locale_code}`

This endpoint allows you to upload a new reference file for a given PAM asset and locale. It will also automatically generate all the variation files corresponding to this reference file.

## Path parameters

- `asset_code` string, required
- `locale_code` string, required

## Headers

- `Content-type` string, required

## Request body

- object
  - `file` string, binary, required — The binaries of the file

## Response `201`

Uploaded

- object
  - `message` string — Message explaining the warning
  - `errors` object[]
    - `channel` string — Channel for which the variation file generation failed
    - `locale` string — Locale for which the variation file generation failed
    - `message` string — Message explaining why the variation file generation failed

## Other responses

- `400` — Bad request
- `401` — Authentication required
- `403` — Access forbidden
- `404` — Resource not found
- `415` — Unsupported Media type
- `422` — Unprocessable entity

---

[API](https://skmtc.net/akeneo/apis/akeneo-pim-rest-api.md) · [All operations](https://skmtc.net/akeneo/apis/akeneo-pim-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeneo/akeneo-pim-rest-api/versions/d8bda9b93b59/schema)
