---
title: "Upload a Document to Job"
method: POST
path: "/v1/job/{jobId}/upload-document"
tags: ["Jobs"]
---

# Upload a Document to Job

`POST /v1/job/{jobId}/upload-document`

## Request

- Base URL: `https://api.avionte.com/front-office`
- URL: `https://api.avionte.com/front-office/v1/job/{jobId}/upload-document`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Uploads the provided document to the job.

## Path parameters

- `jobId` string, required

## Headers

- `RequestId` string, uuid: Unique request identifier in UUID format used to correlate request data to log entries and events.
- `FrontOfficeTenantId` integer
- `Tenant` string

## Request body

- JobDocumentDTO
  - `jobDocumentID` integer: The identifier for the job document.
  - `jobID` integer, required: The identifier for the job.
  - `fileContent` string, required: The content of the file to be uploaded. This should be a base64 encoded string.
  - `documentTitle` string, required: The name of the document file.
  - `documentType` string: The type of the document.
  - `documentDate` string, date-time, required: The date the document was uploaded. The field follows the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss formats and also supports fractional seconds, such as YYYY-MM-DDTHH:mm:ss.sss. For example, 2024-12-01, 2024-12-01T14:30:00, and 2024-12-01T14:30:00.546.
  - `uploadedBy` string: The HCM ID of the user who uploaded the document.
  - `uploadUserId` integer, required: The identifier for the user who uploaded the document.

## Response `200`

The uploaded document.

- JobDocumentDTO
  - `jobDocumentID` integer: The identifier for the job document.
  - `jobID` integer, required: The identifier for the job.
  - `fileContent` string, required: The content of the file to be uploaded. This should be a base64 encoded string.
  - `documentTitle` string, required: The name of the document file.
  - `documentType` string: The type of the document.
  - `documentDate` string, date-time, required: The date the document was uploaded. The field follows the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss formats and also supports fractional seconds, such as YYYY-MM-DDTHH:mm:ss.sss. For example, 2024-12-01, 2024-12-01T14:30:00, and 2024-12-01T14:30:00.546.
  - `uploadedBy` string: The HCM ID of the user who uploaded the document.
  - `uploadUserId` integer, required: The identifier for the user who uploaded the document.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Access Denied
- `404`: Not found
- `405`: Unsupported method
- `406`: Unsupported format(s) indicated by Accept header
- `415`: Unsupported format(s) indicated by the Content-Type header
- `429`: Too many requests
- `500`: An unexpected error occurred
- `502`: Service Unavailable
- `504`: Gateway Timeout

---

[API](https://skmtc.dev/avionte/apis/bold-front-office-api.md) - [All operations](https://skmtc.dev/avionte/apis/bold-front-office-api/llms.txt) - [OpenAPI document](https://skmtc.dev/avionte/apis/bold-front-office-api/revisions/bd5996cbaa0f?raw)
