contact_methods_upsert_contact_method
Update or insert a contact method for a specific contact in ServiceTitan using the tenant ID, contact UUID, and contact method details.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
contactId | Yes | The contact UUID | |
contactMethodId | Yes | The contact method UUID | |
payload | No | Payload for updating contact method | |
tenant | Yes | Tenant ID |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"contactId": {
"description": "The contact UUID",
"format": "uuid",
"type": "string"
},
"contactMethodId": {
"description": "The contact method UUID",
"format": "uuid",
"type": "string"
},
"payload": {
"additionalProperties": false,
"description": "Payload for updating contact method",
"properties": {
"contactId": {
"description": "Contact ID",
"format": "uuid",
"type": "string"
},
"createdBy": {
"description": "User ID of creator",
"type": "integer"
},
"createdOn": {
"description": "Date and time of creation",
"format": "date-time",
"type": "string"
},
"id": {
"description": "Contact Method ID",
"format": "uuid",
"type": "string"
},
"memo": {
"description": "Memo for contact method",
"type": "string"
},
"modifiedBy": {
"description": "User ID of last modifier",
"type": "integer"
},
"modifiedOn": {
"description": "Date and time of last modification",
"format": "date-time",
"type": "string"
},
"referenceId": {
"description": "Reference ID",
"type": "string"
},
"type": {
"description": "Type of contact method",
"type": "string"
},
"value": {
"description": "Value of contact method",
"type": "string"
}
},
"type": "object"
},
"tenant": {
"description": "Tenant ID",
"type": "integer"
}
},
"required": [
"tenant",
"contactId",
"contactMethodId"
],
"type": "object"
}