Skip to content

Commit

Permalink
PUT text sample (#464)
Browse files Browse the repository at this point in the history
PUT text python sample fixed
  • Loading branch information
warunawijesinhaarachchige authored Apr 8, 2022
1 parent a4dc297 commit 76b3cfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/async-api/overview/text/put-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ payload = {

"confidenceThreshold": 0.6, # <Optional,double| Minimum required confidence for the insight to be recognized. Value ranges between 0.0 to 1.0. Default value is 0.5.>

"detectPhrases": true, # <Optional,boolean| It shows Actionable Phrases in each sentence of conversation. These sentences can be found using the Conversation's Messages API. Default value is false.>
"detectPhrases": "true", # <Optional,boolean| It shows Actionable Phrases in each sentence of conversation. These sentences can be found using the Conversation's Messages API. Default value is false.>
"messages": [
{
"payload": {
Expand Down Expand Up @@ -269,7 +269,7 @@ responses = {
500: 'Something went wrong! Please contact [email protected]'
}

response = requests.request("PUT", url, headers=headers, data=json.dumps(payload), params=json.dumps(params)))
response = requests.request("PUT", url, headers=headers, data=json.dumps(payload))

if response.status_code == 201:
# Successful API execution
Expand Down Expand Up @@ -483,4 +483,4 @@ Here, the value of `X` can be found in [FAQ](/docs/faq).

:::caution
You must wait for the job to complete processing before you proceed with getting the Conversation Intelligence. If you immediately make a GET request to Conversation API, it is possible that you'll receive incomplete insights. Therefore, ensure that you wait for the job to complete.
:::
:::

0 comments on commit 76b3cfe

Please sign in to comment.