---
title: "Update a journal"
method: PUT
path: "/accounting/{connection_id}/journal/{id}"
tags: ["accounting", "journal"]
---

# Update a journal

`PUT /accounting/{connection_id}/journal/{id}`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- AccountingJournal
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `reference` string
  - `tax_amount` number
  - `currency` string
  - `lineitems` AccountingJournalLineitem[] — new field name
    - `id` string
    - `tax_amount` number
    - `total_amount` number
    - `debit_amount` number
    - `credit_amount` number
    - `description` string
    - `account_id` string
    - `contact_id` string
    - `payment_id` string
    - `invoice_id` string
    - `category_ids` string[]
    - `group_id` string
    - `project_id` string
    - `organization_id` string
  - `taxrate_id` string
  - `description` string
  - `posted_at` string, date-time
  - `source` string
  - `organization_id` string
  - `category_ids` string[]
  - `project_id` string
  - `attachments` AccountingAttachment[]
    - `id` string
    - `download_url` string
    - `name` string
    - `mime_type` string
  - `raw` object

## Response `200`

Successful

- AccountingJournal
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `reference` string
  - `tax_amount` number
  - `currency` string
  - `lineitems` AccountingJournalLineitem[] — new field name
    - `id` string
    - `tax_amount` number
    - `total_amount` number
    - `debit_amount` number
    - `credit_amount` number
    - `description` string
    - `account_id` string
    - `contact_id` string
    - `payment_id` string
    - `invoice_id` string
    - `category_ids` string[]
    - `group_id` string
    - `project_id` string
    - `organization_id` string
  - `taxrate_id` string
  - `description` string
  - `posted_at` string, date-time
  - `source` string
  - `organization_id` string
  - `category_ids` string[]
  - `project_id` string
  - `attachments` AccountingAttachment[]
    - `id` string
    - `download_url` string
    - `name` string
    - `mime_type` string
  - `raw` object

---

[API](https://skmtc.net/unified/apis/unified-to-api.md) · [All operations](https://skmtc.net/unified/apis/unified-to-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unified/unified-to-api/versions/1f72720916e4/schema)
