---
title: "Update"
method: PUT
path: "/api/cp/invoice-line/{id}"
tags: ["Invoice Line"]
---

# Update

`PUT /api/cp/invoice-line/{id}`

Update an existing Invoice Line record by ID.

## Path parameters

- `id` integer, required

## Request body

- InvoiceLineInput
  - `id` integer — Id
  - `invoice_id` integer, required — Invoice Id (references invoice.id)
  - `qty` integer — Qty
  - `package_id` integer — Package Id
  - `description` string — Description
  - `start_date` string, date-time — Start Date
  - `end_date` string, date-time — End Date
  - `unit_price` number — Unit Price
  - `net` number — Net
  - `tax` number, required — Tax
  - `sub_total` number — Sub Total
  - `attempts` integer — Attempts
  - `connected` integer — Connected
  - `duration` integer — Duration
  - `json` string — Json

## Response `200`

Operation completed successfully

- SuccessResponse
  - `status` string — Operation status

## Other responses

- `400` — Bad Request - Invalid parameters or request body
- `401` — Authentication information is missing or invalid
- `403` — Access denied - insufficient permissions or dependency access failure
- `404` — Resource not found
- `409` — Conflict - foreign key or unique constraint violation on write
- `500` — Internal server error

---

[API](https://skmtc.dev/connexcs/apis/connexcs-control-panel-api.md) · [All operations](https://skmtc.dev/connexcs/apis/connexcs-control-panel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/connexcs/connexcs-control-panel-api/revisions/54bc2ed6edae/schema)
