Update a custom field mapping
Changed onPartially updates an existing custom field mapping. Only the properties present in the body are changed. The updatable properties depend on the mapping's sourceType; for INTELLIGENCE_OPERATOR, only entityMetadata.intelligenceOperator.field can be updated today.
The new field is validated the same way as at registration: it must be one or two .-separated segments of letters, digits and _, and resolve to a number or integer property in the output schema of the operator's latest active version.
The mapping's id, name, category, createdAt and owning entity never change. Sending a field value equal to the current one is a no-op that returns 200 without modifying the mapping, so the operation is idempotent. Supply If-Match with the ETag returned by GET, POST or a previous PATCH to guard against concurrent updates.
Values already ingested are not recomputed; results processed after the update use the new field.
Request
- Base URLhttps://insights.twilio.com
- URLhttps://insights.twilio.com/v3/ControlPlane/ConversationInsights/CustomFieldMappings/{mappingId}
- AuthHTTP basic
Path parameters
The unique identifier of the custom field mapping, as returned in id when the mapping was created.
Headers
ETag of the custom field mapping, as returned in the ETag response header. When supplied, the update is applied only if the mapping has not changed since that ETag was issued; otherwise 412 is returned.
Request body
Example request
{
"entityMetadata": {
"intelligenceOperator": {
"field": "scores.leadScore"
}
}
}Response
The mapping was updated, or the supplied values already matched and nothing changed.
Example response
{
"id": "convinsights_mapping_01m31967b7em08vh1pqgbam3mj",
"name": "LeadScore",
"description": "Lead quality score derived from sentiment analysis",
"entityMetadata": {
"intelligenceOperator": {
"operatorId": "intelligence_operator_01kcgy1ew0e9x8re6jq542zt8b",
"operatorName": "Sentiment Analysis",
"field": "leadScore"
}
},
"createdAt": "2026-08-13T14:30:00Z",
"updatedAt": "2026-09-30T10:00:00Z"
}Changes
- info
endpoint added
- info