For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update service insurance company

Update an insurance company entry. A field that is left out keeps its stored value; a field that is sent replaces it. Linking the entry to another customer record changes which record the picker puts on the service orders registered from now on; the service orders that already carry the previous record as their insurer keep it. Set deprecated to take the insurer out of the picker while the entry stays in the list.

Required permissions: SERVICE_CONFIG

put
/tenants/{tenantUid}/serviceorders/insurancecompanies/{insuranceCompanyUid}
Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
insuranceCompanyUidstringRequired

Reference to a service insurance company entry

Pattern: ^[A-Za-z0-9-_]+
Body

The editable parts of an insurance company entry. A field that is left out keeps its stored value; a field that is sent replaces it. The name must not be blank and is unique within the tenant, compared exactly as sent. customerUid must be one of the tenant's customers, and a customer record is linked by at most one entry; a name or a customer another entry already holds is refused. Set deprecated to take the insurer out of the picker while the entry stays in the list.

namestringOptional

What the insurer is called, as it is shown in the picker.

customerUidstringOptional

The customer record that stands for the insurer.

Pattern: ^[A-Za-z0-9-_]+
deprecatedbooleanOptional

A deprecated entry stays in the list but is not offered in the picker.

Responses
200

Example response

application/json

An insurance company entry: one of the insurers the tenant's service orders name, linked to the customer record that stands for it. The tenant's entries are the intake wizard's insurer picker — picking one puts its customerUid on the service order as insuranceCompanyCustomerUid, so no service order references the entry itself and it is deletable at any time. The entry goes with its customer record: deleting the record deletes the entry, and merging the record into another customer moves the entry to that customer. customerName is the linked customer's display name as it reads now. A deprecated entry stays in the list but is not offered in the picker.

insuranceCompanyUidstringRequiredPattern: ^[A-Za-z0-9-_]+
tenantUidstringRequiredPattern: ^[A-Za-z0-9-_]+
namestringRequired

What the insurer is called, as it is shown in the picker. Unique within the tenant.

customerUidstringRequired

The customer record that stands for the insurer. Linked by this entry alone.

Pattern: ^[A-Za-z0-9-_]+
customerNamestringRequired

The linked customer's display name as it reads now.

deprecatedbooleanRequired

A deprecated entry stays in the list but is not offered in the picker.

createdAtstring · date-timeRequired
createdBystringRequired
lastModifiedAtstring · date-timeRequired
lastModifiedBystringRequired
put/tenants/{tenantUid}/serviceorders/insurancecompanies/{insuranceCompanyUid}
PUT /v2/tenants/{tenantUid}/serviceorders/insurancecompanies/{insuranceCompanyUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 54

{
  "name": "text",
  "customerUid": "text",
  "deprecated": true
}
200

Example response

{
  "insuranceCompanyUid": "text",
  "tenantUid": "text",
  "name": "text",
  "customerUid": "text",
  "customerName": "text",
  "deprecated": true,
  "createdAt": "2026-01-01T00:00:00.000Z",
  "createdBy": "text",
  "lastModifiedAt": "2026-01-01T00:00:00.000Z",
  "lastModifiedBy": "text"
}

Last updated

Was this helpful?