---
title: "Add an upload to a journal entry"
method: POST
path: "/companies/{companyId}/journal-entries/{journalEntryId}/uploads"
tags: ["journal-entries"]
---

# Add an upload to a journal entry

`POST /companies/{companyId}/journal-entries/{journalEntryId}/uploads`

## Request

- Base URL: `https://api.bokio.se/v1`
- URL: `https://api.bokio.se/v1/companies/{companyId}/journal-entries/{journalEntryId}/uploads`
- Auth: HTTP bearer

Add an upload to the journal entry.

**Scope:** `journal-entries:write`

## Request body

- UploadRef
  - `id` string, uuid: Unique identifier of an existing upload

## Response `200`

Upload added to journal entry, returns the updated journal entry

- JournalEntry
  - `id` string, uuid
  - `title` string
  - `journalEntryNumber` string
  - `date` string, date
  - `items` JournalEntryItem[], required
    - `id` integer
    - `debit` number, double
    - `credit` number, double
    - `account` integer
    - `tags` JournalEntryTag[]: Transaction-level tags applied to this specific line item. Tags must be applied either at the transaction level (on individual line items) or at the verification level (on the journal entry), but not both on the same journal entry. Within a tag group, weights on the same transaction must sum to at most 1.
      - `tagId` string, uuid, required: Unique identifier of the tag (value) within the tag group
      - `tagGroupId` string, uuid: Unique identifier of the tag group this tag belongs to
      - `tagName` string: Display name of the tag
      - `tagGroupName` string: Display name of the tag group
      - `weight` number, double, required: Allocation weight between 0 (exclusive) and 1 (inclusive). Controls how costs/revenues are split in reports. Within a tag group, weights on the same journal entry or transaction must sum to at most 1.
  - `tags` JournalEntryTag[]: Verification-level tags applied to the entire journal entry. Tags must be applied either at the verification level (on the journal entry) or at the transaction level (on individual line items), but not both on the same journal entry. Within a tag group, weights on the same journal entry must sum to at most 1.
    - `tagId` string, uuid, required: Unique identifier of the tag (value) within the tag group
    - `tagGroupId` string, uuid: Unique identifier of the tag group this tag belongs to
    - `tagName` string: Display name of the tag
    - `tagGroupName` string: Display name of the tag group
    - `weight` number, double, required: Allocation weight between 0 (exclusive) and 1 (inclusive). Controls how costs/revenues are split in reports. Within a tag group, weights on the same journal entry or transaction must sum to at most 1.
  - `reversingJournalEntryId` string, uuid, nullable
  - `reversedByJournalEntryId` string, uuid, nullable
  - `uploadRef` object, nullable
    - `id` string, uuid: Unique identifier of an existing upload

## Other responses

- `400`: Validation or operation error
- `404`: Journal entry not found

## Changes

- **2026-11-03** `9395020f3da2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bokio/apis/company-api/changes/companies/:companyId/journal-entries/:journalEntryId/uploads/post.md)

---

[API](https://skmtc.dev/bokio/apis/company-api.md) - [All operations](https://skmtc.dev/bokio/apis/company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bokio/apis/company-api/revisions/9395020f3da2?raw)
