Respond contact
/srt/api/v1/contactDeflection/response
Process a RespondContact Mode Request
To enable accurate analytics, billing, pagination, and navigation for Search API requests, make sure that you specify the knowledge interaction ID parameter in the kmauthtoken header.
Note: If you are using Oracle B2C Service Knowledge Advanced, you must pass the interfaceId parameter in the kmauthtoken header.
Request
- application/json
- application/xml
-
deflectedFlag: boolean
Whether the quetion was deflected
-
priorTransactionId: integer
This ID relates to the current result set. This includes the displayed results plus any result up to the max number of results, as defined in the search configuration. If the request is for pagination or navigation, it applies pagination or navigation only to the current result set and doesn't retrieve new results.
object
SearchSession
-
baseURL(optional):
string
Base URL
-
ccaInfo(optional):
object CCAInfo
Title:
CCAInfo
-
clientInfo(optional):
object ClientInfo
Title:
ClientInfo
-
domainGroup(optional):
string
The domain group to use for this request
-
facetPriorTransactionId(optional):
integer
The ID that is set from the transactionId of a previous transaction to retain the facets. You can set the value of this ID to the transactionId of a previous transaction in the same session to retain the facets selected in a previous transaction. You must either set the value of the startOverFlag to false or omit the flag. Omitting the flag defaults its value to false. You can use the transactionIds from the most recent transaction or five previous transactions in the history to set facetPriorTransactionId of the current transaction. Note that the facetPriorTransactionId applies only to the /question endpoint.
-
isDeflection(optional):
boolean
Is this request an attempt to deflect
-
locale(optional):
string
locale of the request
- navigationApplicationId(optional): string
-
pageSize(optional):
integer
The maximum number of search results to be displayed in the results page. If a value is not specified by the client, then the default value is used.
-
querySource(optional):
string
The query source for this request
-
requestSource(optional):
string
Request Source
-
resultLocales(optional):
string
A comma separted list of the desired resulting locales
-
segment(optional):
string
The analytics segment to associate with this request
-
session(optional):
string
Session Node
-
subject(optional):
string
The subject/vertical to use for this request
-
transactionId(optional):
integer
TransactionId
-
uiMode(optional):
string
The UI mode for this request
object
CCAInfo
-
answerSolutionList(optional):
string
Answer Solution List
-
caseDescription(optional):
string
Case Description
-
connected(optional):
boolean
Connected
-
contentIds(optional):
string
ContentIds
-
extSolutionList(optional):
string
External Solution List
-
name(optional):
string
Name
-
SRKey(optional):
string
SRKey
-
system(optional):
string
System
-
types(optional):
string
Types
object
ClientInfo
-
address(optional):
string
Address
-
agentAddress(optional):
string
Agent Address
-
cookies(optional):
string
Cookies
-
extSessionId(optional):
string
External Session Id
-
host(optional):
string
Host
-
referrer(optional):
string
Referrer URL
-
requestAttributes(optional):
array requestAttributes
list of Map Entries
-
requestHeaders(optional):
array requestHeaders
list of Map Entries
-
requestParameters(optional):
array requestParameters
list of Map Entries
array
-
Array of:
object MapEntry
Title:
MapEntry
array
-
Array of:
object MapEntry
Title:
MapEntry
array
-
Array of:
object MapEntry
Title:
MapEntry
object
MapEntry
-
key(optional):
string
Key Name
-
value(optional):
string
Value
Response
204 Response
Examples
The following example shows how to create a respond contact by submitting a post request on the REST resource using cURL.
cURL Command
curl -X "POST" "http://<SEARCH_REST_API_HOST>/srt/api/contactDeflection/response"
Example of Request Header
The following shows an example of the request header.
-H "kmauthtoken: {\"siteName\":\"ORACLE_KNOWLEDGE\",\"interfaceId\":\"1\",\"interactionIdGenerated\":\"true\",\"knowledgeInteractionId\":\"Z9X3D85Ka8C\",\"integrationUserToken\":\"\"+eCJYkxKwj5HUaIiJYun0/TpatwT1LmtcsF05W33xnEojifV/AsLDj9RpN0lKuorTMNKeSE1tgC7svVL+BzntqDON4KiM1HFlpxvXEUCB0P2w0Xrs75McygqxdVaDSE9"}" \ -H "Accept: application/json"
Example of Request Body
The following shows an example of the request body in JSON format.
{ "session" : "SESSION_VALUE", "transactionId" : -470886747, "facetPriorTransactionId" : 0, "baseURL" : "BASEURL_VALUE", "locale" : "LOCALE_VALUE", "resultLocales" : "RESULTLOCALES_VALUE", "domainGroup" : "DOMAINGROUP_VALUE", "navigationApplicationId" : "NAVIGATIONAPPLICATIONID_VALUE", "segment" : "SEGMENT_VALUE", "querySource" : "QUERYSOURCE_VALUE", "uiMode" : "UIMODE_VALUE", "requestSource" : "REQUESTSOURCE_VALUE", "subject" : "SUBJECT_VALUE", "isDeflection" : true, "clientInfo" : { "agentAddress" : "AGENTADDRESS_VALUE", "extSessionId" : "EXTSESSIONID_VALUE", "referrer" : "REFERRER_VALUE", "cookies" : "COOKIES_VALUE", "address" : "ADDRESS_VALUE", "host" : "HOST_VALUE", "requestHeaders" : [ { "key" : "KEY_VALUE", "value" : "VALUE_VALUE" } ], "requestParameters" : [ { "key" : "KEY_VALUE", "value" : "VALUE_VALUE" } ], "requestAttributes" : [ { "key" : "KEY_VALUE", "value" : "VALUE_VALUE" } ] } }