---
title: "Update multiple leak records for a work order and an asset"
method: POST
path: "/refrigeranttracking/BulkLeakRecordsAndAudit"
tags: ["RefrigerantTracking"]
---

# Update multiple leak records for a work order and an asset

`POST /refrigeranttracking/BulkLeakRecordsAndAudit`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/refrigeranttracking/BulkLeakRecordsAndAudit`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/refrigeranttracking/BulkLeakRecordsAndAudit/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates, updates, or deletes multiple leak records for a work order and an asset.
            <br />***Note***: Leak records should belong to a unique pair `WO + Asset`, to perform bulk operations with them.

## Request body

- ServiceChannelServicesMessagingRefrigerantTrackingLeakImmeasurableAndAuditBulkChangeRequest
  - `AddItems` ServiceChannelServicesMessagingRefrigerantTrackingLeakImmeasurableAndAuditBulkAddRequest[]
    - `RepairDate` string, date-time
    - `LeakDetectionDate` string, date-time: Date when the leak was detected. If not provided, defaults to the repair date. Cannot be later than the repair date.
    - `ActionCodeId` integer: Date when the first verification took place.
    - `FaultCodeId` integer: Unique numeric identifier of the reason why the problem occurred.
    - `LeakLocationId` integer: Unique numeric identifier of the location where the leak occurred: more specific place within the particular area, for example, level indicator/alarm/splitting valve.
    - `LeakAreaId` integer: Unique numeric identifier of the area where the leak occurred: more general place, for example, receiver/condensor.
    - `Notes` string[]: Leak record notes.
    - `LeakVerifications` ServiceChannelServicesMessagingRefrigerantTrackingLeakRecordVerificationAddRequest[]: Unique numeric identifier of the work order to add the leak record to.
      - `VerificationDate` string, date-time
      - `VerificationMethod` string, byte
      - `VerificationMethodType` string, byte
      - `VerificationStatus` boolean
      - `Reason` string
  - `UpdateItems` ServiceChannelServicesMessagingRefrigerantTrackingLeakImmeasurableAndAuditBulkUpdateRequest[]
    - `Id` integer
    - `RepairDate` string, date-time
    - `LeakDetectionDate` string, date-time: Date when the leak was detected. If not provided, defaults to the repair date. Cannot be later than the repair date.
    - `ActionCodeId` integer: Date when the first verification took place.
    - `FaultCodeId` integer: Unique numeric identifier of the reason why the problem occurred.
    - `LeakLocationId` integer: Unique numeric identifier of the location where the leak occurred: more specific place within the particular area, for example, level indicator/alarm/splitting valve.
    - `LeakAreaId` integer: Unique numeric identifier of the area where the leak occurred: more general place, for example, receiver/condensor.
    - `Notes` string[]: Leak record notes.
    - `LeakVerifications` ServiceChannelServicesMessagingRefrigerantTrackingLeakRecordVerificationAddRequest[]: Unique numeric identifier of the work order to add the leak record to.
      - `VerificationDate` string, date-time
      - `VerificationMethod` string, byte
      - `VerificationMethodType` string, byte
      - `VerificationStatus` boolean
      - `Reason` string
  - `DeleteItems` integer[]
  - `RecId` integer
  - `AssetId` integer
  - `Technician` string
  - `CertificateId` integer

## Response `200`

The request succeeded and the requested information is in the response.

## Other responses

- `400`: The request was not accepted due to bad syntax, missing parameters, insufficient data, etc.
- `500`: Something went wrong, and the server was unable to complete your request. <br>Error codes: 501 - Internal Error
- `503`: The request was not accepted because the user is not a Refrigerant Tracking Admin.

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
