---
title: "Add Asset Reference"
method: POST
path: "/projects/{projectId}/files/{fileId}/references"
tags: ["Source Files"]
---

# Add Asset Reference

`POST /projects/{projectId}/files/{fileId}/references`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/projects/{projectId}/files/{fileId}/references`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/docs/projects/:projectId/files/:fileId/references/post.ts> (a function with typed inputs; its response is checked against the schema)

**Required scopes:** `project.source.file` (Read and Write).

Upload a reference file for an asset

## Path parameters

- `projectId` integer, required
- `fileId` integer, required

## Request body

- ReferenceCreateForm
  - `storageId` integer, required: Storage Identifier. Get via [List Storages](#operation/api.storages.getMany)
  - `name` string, required: Reference file name

## Response `201`

Asset reference was successfully created

- ReferenceResource: Base schema of resource container. Container is a wrapper object that contains payload in required `data` property and provides space for adding any other metadata.
  - `data` ReferenceResponseModel, required
    - `id` integer
    - `name` string
    - `url` string
    - `user` object
      - `id` integer
      - `username` string
      - `fullName` string
      - `avatarUrl` string
    - `createdAt` string, date-time
    - `mimeType` string: MIME type of the reference file

## Other responses

- `400`: Invalid Request Parameters
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Project or file with specified id was not found

---

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