campaigns_update
Update ServiceTitan campaign details, including name, status, source, medium, phone numbers, and business unit, using specified ID and tenant information.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
active | No | Is Campaign Active? | |
businessUnit | No | Business Unit | |
campaignPhoneNumbers | No | Campaign Phone Numbers | |
id | Yes | Format - int64. Campaign ID | |
medium | No | Campaign Medium | |
name | No | Campaign Name | |
otherMedium | No | Other Campaign Medium | |
otherSource | No | Other Campaign Source | |
source | No | Campaign Source | |
tenant | Yes | Format - int64. Tenant ID |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"active": {
"description": "Is Campaign Active?",
"type": "boolean"
},
"businessUnit": {
"description": "Business Unit",
"type": "string"
},
"campaignPhoneNumbers": {
"description": "Campaign Phone Numbers",
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"description": "Format - int64. Campaign ID",
"type": "integer"
},
"medium": {
"description": "Campaign Medium",
"type": "string"
},
"name": {
"description": "Campaign Name",
"type": "string"
},
"otherMedium": {
"description": "Other Campaign Medium",
"type": "string"
},
"otherSource": {
"description": "Other Campaign Source",
"type": "string"
},
"source": {
"description": "Campaign Source",
"type": "string"
},
"tenant": {
"description": "Format - int64. Tenant ID",
"type": "integer"
}
},
"required": [
"id",
"tenant"
],
"type": "object"
}