---
title: "Add a leak record to a work order and an asset"
method: POST
path: "/refrigeranttracking/LeakRecordImmeasurable"
tags: ["RefrigerantTracking"]
---

# Add a leak record to a work order and an asset

`POST /refrigeranttracking/LeakRecordImmeasurable`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/refrigeranttracking/LeakRecordImmeasurable`
- 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/LeakRecordImmeasurable/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a leak record for the unique pair **WO + Asset**. Returns the leak record ID in the response.
            <br />With the *RTMultiLeakFlow* feature flag turned on, it is possible to add several leak records.

## Request body

- ServiceChannelServicesMessagingRefrigerantTrackingAddLeakImmeasurableRequest: Request model to create a leak record for the work order and asset.
  - `RepairDate` string, date-time: Date and time when the repair was completed. ***Note:*** It cannot be earlier than the work order call date. The date format is `YYYY-MM-DDThh:mm:ss.sssZ`.
  - `InitialVerificationDate` string, date-time: Date when the first verification took place. ***Note:*** The initial verification date cannot be in the future and cannot be less than the repair date. It should be either a current date or a date in the past.
  - `InitialVerificationMethod` integer: Method that was used during the first verification to make sure the leak had been fixed. <br />Possible values: • `0`: Unknown • `1`: Soap Bubble Test • `2`: Electronic Leak Detection • `3`: Ultrasonic Leak Detection • `4`: Pressure Test • `5`: Vacuum Test • `6`: Fluorescent Dye Test • `7`: Infrared Test • `8`: Near Infrared Test • `9`: Halon Gas Detection
  - `FollowUpVerificationDate` string, date-time: Date of the second verification. The date format is `YYYY-MM-DDThh:mm:ss.sssZ`. ***Note:*** The follow-up verification date cannot be earlier than the initial verification date and cannot be in the future. It should be either a current date or a date in the past.
  - `FollowUpVerificationMethod` integer: Method of the second verification. The list of available verification methods is the same as for the `InitialVerificationMethod`.
  - `ActionCodeId` integer: Unique numeric identifier of the action that a technician took to fix the leak. Use the [GET/refrigeranttracking/leakRecord/actionCodes](https://developer.servicechannel.com/swagger/index.html#/RefrigerantTracking/GETv3_refrigeranttracking_leakRecord_actionCodes) method to get available action codes and their IDs.
  - `FaultCodeId` integer: Unique numeric identifier of the reason why the problem occurred. Use the [GET/refrigeranttracking/leakRecord/faultCodes](https://developer.servicechannel.com/swagger/index.html#/RefrigerantTracking/GETv3_refrigeranttracking_leakRecord_faultCodes) method to get available fault codes and their IDs. <br />Possible values: • `1`: Accidental Damage • `2`: Braze or Joint Failure • `3`: Corrosion • `4`: Defrost Heater Failure • `5`: Faulty Part • `6`: Forklift Damage • `7`: Gasket Seal Failure • `8`: Ice Build Up • `9`: Line Break • `10`: Manufacture Defect • `11`: Missing Part • `12`: Natural Disaster • `13`: Normal Mechanical Wear • `14`: Other (Must Explain in Comments) • `15`: Vandalism • `16`: Vibration Related • `17`: Project Related Loss
  - `LeakLocationId` integer: Unique numeric identifier of the location where the leak occurred: more specific place within the particular area, for example, *Coil*, *Level Indicator/Alarm*, *Splitting Valve*. Use the [GET/refrigeranttracking/{subscriberId}/leaklocations](https://developer.servicechannel.com/swagger/index.html#/RefrigerantTracking/GETv3_refrigeranttracking_%7BsubscriberId%7D_leaklocations) method to get the list of available leak locations.
  - `Notes` string[]: Leak record notes.
  - `RecId` integer: Unique numeric identifier of the work order to add the leak record to.
  - `AssetId` integer: Unique numeric identifier of the asset to add the leak record to.
  - `Actor` string: Name of the technician who performed the fix of the leak.
  - `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.

## Response `200`

The leak record has been successfully created.

- SystemObject

## Other responses

- `400`: The request was not accepted due to bad syntax, missing parameters, insufficient data, etc. <br/>Error codes: 503 &mdash; Asset is not attached to a work order 503 &mdash; Asset is not refrigerant 503 &mdash; Asset ID and work order ID are required 503 &mdash; Asset doesn't exist 503 &mdash; Actor length cannot be more than 50 symbols 503 &mdash; There are uncompleted leak records in another WO 503 &mdash; Follow-up verification date cannot be earlier than the initial verification date and later than the work order completion date or the scheduled date 503 &mdash; Initial verification date can't be less than the repair date and more than the work order completion date or scheduled date 503 &mdash; Verification data cannot be entered without the leak location 503 &mdash; Repair date is required 503 &mdash; Repair date cannot be earlier than the work order call date and later than the work order completion date 503 &mdash; Fault code ID is required 503 &mdash; Action code ID is required 503 &mdash; Action сode ID is not found 503 &mdash; Fault code ID is not found 503 &mdash; Follow-up verification date and method should be entered 503 &mdash; Initial verification date and method should be entered 503 &mdash; Work order is in the completed status. Only RT Admins can process leak records on WOs in an invoiceable status 503 &mdash; To complete a leak record, fill out all the fields 503 &mdash; Leak immeasurable must be completed. If a work order is already in an invoiceable status or the linked leak event is already completed, all leak record data should be entered
- `500`: Something went wrong, and the server was unable to complete your request. <br>Error codes: 501 &mdash; Internal Error

---

[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)
