---
title: "Update accounting script V1"
method: PATCH
path: "/v1/accounting-scripts/{accountingScriptId}"
tags: ["Accounting scripts V1"]
---

# Update accounting script V1

`PATCH /v1/accounting-scripts/{accountingScriptId}`

Update accounting script.

## Path parameters

- `accountingScriptId` integer, required

## Request body

- AccountingScriptPatch
  - `debit_account_number` string — Debit account accounting number
  - `credit_account_number` string — Credit account accounting number
  - `debit_cost` string — Debit cost center
  - `credit_cost` string — Credit cost center

## Response `200`

OK

- AccountingScriptSinglePatchResponse
  - `new_id` integer — Unique identifier of the newly created accounting script. (The old one will be deactivated)

## Other responses

- `400` — Bad request - invalid parameter

---

[API](https://skmtc.net/pismo/apis/platform-authentication.md) · [All operations](https://skmtc.net/pismo/apis/platform-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pismo/platform-authentication/revisions/935b62e16de4/schema)
