ListTaskAssignRules

Updated at:

Lists automatic allocation rules for review tasks.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

sca:ListTaskAssignRules

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

JsonStr

string

Yes

Complete JSON string information. See the details below for specific content.

{"pageNumber":1,"pageSize":10}

BaseMeAgentId

integer

No

Workspace ID.

123456

Input Parameters

PropertyValue TypeIs RequiredDescription
pageSizeIntegerYesNumber of entries per page.
pageNumberIntegerYesCurrent page number.
skillNameStringNoSkill group name.
agentNameStringNoAgent name.
reviewerNameStringNoReviewer name.

Response elements

Element

Type

Description

Example

object

RequestId

string

Request ID.

106C6CA0-282D-4AF7-85F0-D2D24F4CE647

Success

boolean

Indicates whether the request was successful. Callers can use this field to determine if the request succeeded: true for success, false/null for failure.

true

Code

string

Result code. 200 indicates success. Other values indicate failure. Callers can use this field to determine the cause of failure.

200

Message

string

Error details if an error occurs. "successful" if the request succeeds.

successful

PageNumber

integer

Current page number.

1

PageSize

integer

Number of entries per page.

10

Count

integer

Total number of entries.

23

Data

object

TaskAssignRuleInfo

array<object>

Detailed response data.

array<object>

UpdateTime

string

Last update time.

2019-07-12T14:47Z

SkillGroupsStr

string

Deprecated field. Ignore it.

废弃字段

CallTimeEnd

integer

End time of the call, in seconds. For example, 39600 for 11:00 AM.

39600

DurationMax

integer

Maximum call duration range, in seconds.

400

CreateTime

string

Creation time.

2019-07-12T14:47Z

Priority

integer

Deprecated field. Ignore it.

1

DurationMin

integer

The minimum call duration in seconds.

100

AgentsStr

string

Deprecated field. Ignore it.

废弃字段

RuleName

string

Rule name.

分配规则

RuleId

integer

Rule ID.

23

AssignmentType

integer

Assignment type. Possible values: 0 for specified assignment, 1 for random assignment.

0

CallType

integer

Call type. Possible values: 1 for outbound, 3 for inbound, 0 for unlimited.

1

Enabled

integer

Deprecated field. Ignore it.

1

CallTimeStart

integer

End time of the call, in seconds. For example, 39600 for 11:00 AM.

39600

Agents

object

Agent

array<object>

Agent list.

object

AgentName

string

Agent name.

agent

AgentId

string

Agent user ID.

202526561358712105

SkillGroups

object

SkillGroup

array<object>

Skill group list information.

object

SkillName

string

Skill group name.

客服组

SkillId

string

Deprecated field. Ignore it.

废弃字段

Reviewers

object

Reviewer

array<object>

Reviewer information.

object

ReviewerId

string

Reviewer user ID.

2337235457340978

ReviewerName

string

Reviewer name.

客服审核1

Rules

object

RuleBasicInfo

array<object>

List of selected quality inspection rules.

object

Name

string

Quality inspection rule name.

用户可能要投诉

Rid

string

Quality inspection rule ID.

2312

SamplingMode

object

Random allocation parameters.

NumberOfDraws

integer

Number of files sampled per agent when specifying agents by agent dimension.

20

AnyNumberOfDraws

integer

Duration of call recordings sampled in time dimension mode, in minutes.

60

Limit

integer

Upper limit for the number of sampled files.

30

Proportion

number

Sampling proportion. 0.1 represents 10%.

0.1

Dimension

integer

Sampling mode. Possible values: 0 for session dimension, 1 for agent dimension, 2 for time dimension.

0

Designated

boolean

Indicates whether agents are specified when the sampling mode is by agent dimension.

true

RandomInspectionNumber

integer

Number of agents randomly sampled when agents are not specified by agent dimension.

5

SamplingModeAgents

object

SamplingModeAgent

array<object>

List of agents when specifying agents by agent dimension.

object

AgentName

string

Agent username.

zhangsan

AgentId

string

Agent ID.

123

Examples

Success response

JSON format

{
  "RequestId": "106C6CA0-282D-4AF7-85F0-D2D24F4CE647",
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "PageNumber": 1,
  "PageSize": 10,
  "Count": 23,
  "Data": {
    "TaskAssignRuleInfo": [
      {
        "UpdateTime": "2019-07-12T14:47Z",
        "SkillGroupsStr": "废弃字段",
        "CallTimeEnd": 39600,
        "DurationMax": 400,
        "CreateTime": "2019-07-12T14:47Z",
        "Priority": 1,
        "DurationMin": 100,
        "AgentsStr": "废弃字段",
        "RuleName": "分配规则",
        "RuleId": 23,
        "AssignmentType": 0,
        "CallType": 1,
        "Enabled": 1,
        "CallTimeStart": 39600,
        "Agents": {
          "Agent": [
            {
              "AgentName": "agent",
              "AgentId": "202526561358712105"
            }
          ]
        },
        "SkillGroups": {
          "SkillGroup": [
            {
              "SkillName": "客服组",
              "SkillId": "废弃字段"
            }
          ]
        },
        "Reviewers": {
          "Reviewer": [
            {
              "ReviewerId": "2337235457340978",
              "ReviewerName": "客服审核1"
            }
          ]
        },
        "Rules": {
          "RuleBasicInfo": [
            {
              "Name": "用户可能要投诉",
              "Rid": "2312"
            }
          ]
        },
        "SamplingMode": {
          "NumberOfDraws": 20,
          "AnyNumberOfDraws": 60,
          "Limit": 30,
          "Proportion": 0.1,
          "Dimension": 0,
          "Designated": true,
          "RandomInspectionNumber": 5,
          "SamplingModeAgents": {
            "SamplingModeAgent": [
              {
                "AgentName": "zhangsan",
                "AgentId": "123"
              }
            ]
          }
        }
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.