Conversation Insights, including the APIs, is currently available as a public beta release and the information contained in this document is subject to change. Some features are not yet implemented and others may be changed before the product is declared as generally available. Public beta products are not covered by the Twilio Support Terms or Twilio Service Level Agreement.
Conversation Insights is not PCI compliant or a HIPAA Eligible Service and should not be used in workflows that are subject to HIPAA or PCI.
Conversations products are only available in the new Twilio Console. If your account hasn't been migrated, you'll be redirected to the legacy Console where these products won't appear.
Partially 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
Authentication
Basic Auth
This API uses basic authentication. Use an API key as the username and the API key secret as the password. You can also use your account SID and auth token, but limit their use to local testing.
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.
Updatable subset of entityMetadata. sourceType must equal the
mapping's current sourceType (it cannot be changed), and the property
named for that source carries the fields to update:
The kind of entity that supplies the custom field's value. Each value has
a matching property on entityMetadata that carries that source's
details. Supported values:
INTELLIGENCE_OPERATOR: the value is read from the output of a
Conversational Intelligence operator. Details go in
entityMetadata.intelligenceOperator.
Updatable fields of a custom field mapping sourced from a Conversational
Intelligence operator. At least one field must be present. Currently
only field can be modified; operatorId and operatorName cannot be
updated.
New path to the property in the operator's output schema. Follows the
same rules as field at registration: one or two .-separated
segments of letters, digits and _, resolving to a number or
integer property on the operator's latest active version.
Identifies the entity that supplies this field's value. sourceType
selects the source, and the property named for that source carries its
details. Exactly that one source property must be present:
The kind of entity that supplies the custom field's value. Each value has
a matching property on entityMetadata that carries that source's
details. Supported values:
INTELLIGENCE_OPERATOR: the value is read from the output of a
Conversational Intelligence operator. Details go in
entityMetadata.intelligenceOperator.
The ID of the Conversational Intelligence operator whose output
supplies this field's value. Must match
^intelligence_operator_[0-7][0-9a-z]{25}$. Cannot be changed after
registration.
When the mapping was last modified via PATCH. Null until the first update.
Example: 2026-09-30T10:00:00Z
The request is invalid. One of:
a malformed body, an empty body or source object (nothing to
update), a missing entityMetadata.sourceType, or a field that
fails its pattern;
a property that cannot be updated (for example name,
category, operatorId) is present;
entityMetadata.sourceType does not match the mapping's current
sourceType, or is not supported for updates;
the new field does not resolve to a number or integer
property on the operator's latest active version, or the operator
no longer has an active JSON version.
"message":"The 'field' value 'scores.leadScore' does not resolve on the latest active version of operator 'intelligence_operator_01kcgy1ew0e9x8re6jq542zt8b'.",
The operator details needed to validate the update could not be
retrieved from Conversational Intelligence. The mapping was not
changed; retry after the Retry-After interval.