---
title: "Upload and link PDF file to product"
method: POST
path: "/products/v1/resources/file/uploadAndLink"
tags: ["Product Management API"]
---

# Upload and link PDF file to product

`POST /products/v1/resources/file/uploadAndLink`

## Request

- Base URL: `https://marketplace.appdirect.com/api`
- URL: `https://marketplace.appdirect.com/api/products/v1/resources/file/uploadAndLink`
- Auth: none declared
- TypeScript: <https://skmtc.dev/appdirect/apis/companies/docs/products/v1/resources/file/uploadAndLink/post.ts> (a function with typed inputs; its response is checked against the schema)

Uploads a PDF file and links it to a specific product as documentation or resource material. PDF files can be configured for visibility (public or reseller-only) and can have custom names and identifiers. Commonly used for user manuals, installation guides, terms of service, and other product documentation.

## Request body `multipart/form-data`

- object
  - `productRefId` string, required: Product reference ID to link the PDF file to
  - `locale` string, required: Locale for the PDF file (ISO 639-1 language code with optional country code)
  - `file` string, binary, required: PDF file to upload
  - `name` string, required: Display name for the uploaded PDF file
  - `onlyVisibleToResellers` string: Whether the PDF should only be visible to resellers (true/false)
  - `externalResourceRefId` string: External reference ID for the uploaded PDF resource

## Response `201`

PDF file uploaded and linked successfully

## Other responses

- `400`: Bad Request - Invalid parameters
- `401`: Unauthorized - Authentication required
- `403`: Forbidden - Insufficient permissions
- `500`: Internal Server Error - Unexpected error uploading and linking external resource pdf file

## Changes

- **2026-11-06** `1fc240f06971`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/appdirect/apis/companies/changes/products/v1/resources/file/uploadAndLink/post.md)

---

[API](https://skmtc.dev/appdirect/apis/companies.md) - [All operations](https://skmtc.dev/appdirect/apis/companies/llms.txt) - [OpenAPI document](https://skmtc.dev/appdirect/apis/companies/revisions/1fc240f06971?raw)
