SaveConfigDataSet
Saves the speaker role configuration for a dataset.
This API has been deprecated with no replacement. While temporary access is maintained, no further updates or bug fixes will be provided. To ensure continued functionality, plan your migration and contact your account manager for support.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sca:SaveConfigDataSet |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JsonStr |
string |
Yes |
The complete JSON string. For more information, see the following details. |
"{"judgeType":1,"setId":851,"jsonStrForRule":{"conditions":[{"cid":"1","check_range":{},"lambda":"1","operators":[{"oid":1,"type":"HIT_ANY_KEYWORDS","param":{"keywords":["How can I help you","Customer Service Center"],"in_sentence":false}}]}],"rules":[{"externalProperty":0,"lambda":"1","rid":"1"}],"roleJudgeMethod":"keyword"},"channelType":1}" |
| BaseMeAgentId |
integer |
No |
The workspace ID. |
123456 |
JSON character string information for request parameters
| Property | Data type | Required | Description |
| setId | Long | Yes | The dataset ID. |
| channelType | Integer | Yes | Specifies whether the audio file is single-track or dual-track. Valid values: 1 (single-track) and 2 (dual-track). |
| jsonStrForRule | String | No | The rule in JSON format. This parameter is required for single-track audio files. For dual-track audio files, this rule is used to determine which track belongs to the agent. For more information, see the jsonStrForRule parameter description below. |
| channelId0 | Integer | No | The track ID of the agent. This parameter is required for dual-track audio files. Valid values: 0 and 1. For example, if the agent is on track 0, set this parameter to 0. |
| channelId1 | Integer | No | The track ID of the customer. This parameter is required for dual-track audio files. Valid values: 0 and 1. For example, if the customer is on track 1, set this parameter to 1. |
jsonStrForRule parameter description
The jsonStrForRule parameter is equivalent to a quality inspection rule. This rule contains only one keyword check condition. The format is fixed as follows. You can only modify the value of keywords to change the keywords.
{"conditions":[{"cid":"1","check_range":{},"lambda":"1","operators":[{"oid":1,"type":"HIT_ANY_KEYWORDS","param":{"keywords":["How can I help you","Customer Service Center"],"in_sentence":false}}]}],"rules":[{"externalProperty":0,"lambda":"1","rid":"1"}],"roleJudgeMethod":"keyword"}
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The result code. A value of 200 indicates success, whereas any other value indicates failure. You can use this field to identify the cause of the failure. |
200 |
| Message |
string |
The error details if an error occurs. The value is successful if the request succeeds. |
successful |
| RequestId |
string |
The request ID. |
F050E835-4E5B-4799-BAE3-D622DC529AB3 |
| Success |
boolean |
Indicates whether the request is successful. A value of true indicates success, and a value of false or null indicates failure. |
true |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "successful",
"RequestId": "F050E835-4E5B-4799-BAE3-D622DC529AB3",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.