post
https://{defaultHost}/api/v4/contact_center/interaction_context_mappings
Creates an interaction context mapping, returned as interaction_context_mapping, with the same rules as the Interaction context mapping page of the contact center.
imported(default): values come from the givensources. At least one source type with at least one key is required;descriptionis not allowed.collected_by_ai_agent: an AI agent fills the field from the conversation.descriptionis required;sourcesis not allowed, andshow_in_ai_agentscannot betrue.
context_key is derived from name. show_in_ai_agents cannot be true together with a sip_header source. A rule broken answers 422 and creates nothing.
Requires the contact_center.interaction_context_mappings.manage scope.