---
title: Record a Change You Approved
description: "Bring a job's materials in line with a change approved in your own system"
sidebar:
  hidden: true
ai:
  exclude: true
seo:
  noindex: true
---

Use this endpoint when a change approved in **your** system alters a job's equipment — for example, a change request on your side that swapped the condenser for a heat pump. Sibi applies it as an already-approved change request, so nobody on the Sibi side has to approve it again.

**Endpoint:** `https://api.sibipro.com/projects/v1/phases/{projectPhaseId}/line-items`

**Method:** `PUT`

**Authentication:** Bearer token with the `write:change-requests` scope (`Authorization: Bearer {accessToken}`)

## How it works

Send the job's **complete** list of materials — every product the job should have after your change, not only the ones that changed. Sibi compares your list with what it holds and applies the difference:

- a product you list that Sibi does not hold is **added**
- a product whose quantity differs is **updated**
- a product Sibi holds that is missing from your list is **removed**, unless Sibi added it to the job and you have not approved a change that includes it. Those products stay until Sibi removes them.

Once a request has finished, sending the same list again changes nothing. A request that timed out may still be running: fetch the job with [Get Project Details](/projects/get-project) and resend only if it still differs from your list.

Send an empty array to remove every product you approved.

Fetch the current list with [Get Project Details](/projects/get-project): `phases[].materials[].productId` identifies each product.

This endpoint does not change labor. A request that includes `laborItems` is refused with `VALIDATION_ERROR`.

### After materials were ordered

Materials ordered for the job stay ordered. New products, and extra units of an ordered product, go on a new order; products you removed or reduced come off your invoice. Sibi staff are notified to place the new order and recover the removed equipment.

The job's status does not change.

## Request body

```json
{
  "sourceRef": "CR-1042",
  "notes": "Homeowner upgraded to a variable-speed heat pump.",
  "products": [
    { "sku": "25VNA036A003", "manufacturer": "carrier", "quantity": 1 },
    { "productId": "sibi-carrier-FE4ANF003", "quantity": 1 }
  ]
}
```

### `sourceRef`

`string | undefined` — Your identifier for the change, such as your change request id (max 256 characters). Stored on the change request this creates.

### `notes`

`string | undefined` — Why the job changed (max 2000 characters). Shown to Sibi staff and the job's owner; the assigned pro and the resident see only that the materials changed.

### `products`

`array` — **Required.** The job's complete list of materials after your change, up to 100 entries. Each entry is identified **either** by `productId` **or** by `sku` and `manufacturer` (the manufacturer slug, e.g. `carrier`), not both. List each product once with its total `quantity` (a positive whole number).

## Response

**Status: 200 OK**

```json
{
  "projectPhaseId": "phase_xyz789",
  "status": "AWAITING_MATERIALS",
  "changeRequests": [
    {
      "changeRequestId": "cr_7Hq2",
      "type": "MATERIALS",
      "lineItems": [
        { "op": "ADD", "description": "Carrier 3 Ton Heat Pump", "quantity": 1, "productId": "sibi-carrier-25VNA036A003" },
        { "op": "REMOVE", "description": "Carrier 3 Ton AC", "quantity": 0, "productId": "sibi-carrier-24ACC636A003" }
      ]
    }
  ]
}
```

`changeRequests` holds the approved change request, and is empty when the job already matched your list. Each line's `op` is `ADD`, `UPDATE` (the line now has `quantity`), `INCREASE` (an ordered product gets `quantity` more units on a new order) or `REMOVE`.

## Error responses

Nothing is changed when a request is refused, except with `INVALID_STATE`: part of the change may have been recorded, so re-read the job before resending.

| Status | `code`                                                                                                                                           | Meaning                                                                                                                                                                                                                                  |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 400    | `VALIDATION_ERROR`                                                                                                                               | The body is malformed, leaves out `products` or lists more than 100, has an entry that names both or neither of `productId` and `sku` + `manufacturer` or a `quantity` that is not a positive whole number, has a `sourceRef` or `notes` over its limit, or includes a field this endpoint does not accept, such as `laborItems`. |
| 401    | `UNAUTHORIZED`                                                                                                                                   | Missing or invalid Bearer token.                                                                                                                                                                                                         |
| 403    | `INSUFFICIENT_SCOPE`                                                                                                                             | The token does not carry `write:change-requests`.                                                                                                                                                                                        |
| 403    | `FORBIDDEN`                                                                                                                                      | You cannot approve changes on this job. A `projectPhaseId` that does not exist also returns this, because access is checked first.                                                                                                      |
| 404    | `NOT_FOUND`                                                                                                                                      | The job could not be found.                                                                                                                                                                                                              |
| 409    | `PENDING_CHANGE_REQUEST`                                                                                                                         | A change request covering the same lines is waiting for a decision; `pendingChangeRequestIds` lists them. [Approve or reject](/projects/change-request-decision) it, then resend.                                                        |
| 409    | `MATERIALS_DRAFT_IN_PROGRESS`, `MATERIALS_NOT_YET_PROPOSED`                                                                                      | Materials for the job are being revised on the Sibi side and have not been sent to you yet. Decide the change request you receive, then resend.                                                                                          |
| 409    | `JOB_CANCELLED`, `ALREADY_INVOICED`                                                                                                              | The job can no longer change.                                                                                                                                                                                                            |
| 409    | `NOT_PARTNER_MANAGED`                                                                                                                            | Changes to this job are proposed and approved in Sibi, not pushed from your system.                                                                                                                                                      |
| 409    | `INVALID_STATE`                                                                                                                                  | The change could not be applied. Re-read the job and resend if it still differs; if it keeps failing, contact Sibi support with your `sourceRef`.                                                                                        |
| 422    | `PRODUCT_NOT_FOUND`, `PRODUCT_UNAVAILABLE`, `PRODUCT_PRICE_UNAVAILABLE`, `DUPLICATE_PRODUCT`, `LINE_OWNED_BY_WORK_PACKAGE` | A product could not be matched, ordered or priced, or belongs to a package sold on this job. `details[].field` points at the entry in your request, e.g. `products[1]`; a line you left out is named in `details[].error`. |
| 500    | `INTERNAL_ERROR`                                                                                                                                 | Unhandled server error.                                                                                                                                                                                                                  |
| 503    | `PRICING_UNAVAILABLE`                                                                                                                            | Product pricing is temporarily unavailable. Retry shortly.                                                                                                                                                                               |
| 503    | `AUTH_UNAVAILABLE`                                                                                                                               | The token could not be checked. Retry shortly.                                                                                                                                                                                           |
