Skip to main content
This document provides a guide and overview for the InsertTreatmentType and UpdateTreatmentType RPCs, which allow you to insert and update treatment types directly via API.

API Definitions

Entities

SurfacePb

Every Surface named here must already exist for the project, otherwise the request is rejected with 400. Use Insert Surface to register a Surface first.

TreatmentContentFieldTypePb

TreatmentTypePb

InsertTreatmentType

API to insert Treatment Type

Sample cURL Request

Sample Response

UpdateTreatmentType

API to update Treatment Type

Sample cURL Request

Sample cURL Request: detaching every surface

Omit surfaces and set clearSurfaces to true. Omitting surfaces without clearSurfaces leaves the existing surfaces in place.

Sample Response