Skip to main content
This document provides a guide and overview for the InsertTreatment and UpdateTreatment RPCs, which allow you to insert and update treatments directly via API.

API Definitions

Entities

TreatmentPb

TreatmentVersionPb

TagPb

ContentPb

TargetActionPb

EligibilityRulesPb

MutualExclusionGroupPb

TreatmentTypePb

EligibilityRulePb

InsertTreatment

API to create a new treatment

Sample cURL Request

Sample Response

UpdateTreatment

API to update an existing treatment.

Sample cURL Request

Sample Response

API to delete an existing treatment.

Don’t set any fields other than project_id, treatment_id, external_treatment_id and last_modified_by when deleting treatments

Sample cURL Request

Sample Response

API to pause an existing treatment.

Don’t set any fields other than project_id, treatment_id, external_treatment_id, last_modified_by, and should_pause when pausing treatments

Sample cURL Request

Sample Response