Updated on 2023-09-27 GMT+08:00

POST /CCSQM/rest/ccisqm/v1/qualityitem/queryQualityItemDetail

Scenario

This interface is invoked to query inspection task details.

Method

POST

URI

https://Domain name/apiaccess/CCSQM/rest/ccisqm/v1/qualityitem/queryQualityItemDetail (For example, the domain name is service.besclouds.com.)

Request Description

Table 1 Request header parameters

No.

Parameter

Type

Mandatory or Not

Description

1

Content-Type

String

No

The value is fixed to application/json; charset=UTF-8.

2

x-app-key

String

No

App key

3

Authorization

String

Yes

Authentication field. The format is Bearer {Value of AccessToken returned by the tokenByAkSk interface}. (A space is required after Bearer.)

4

x-UserId

String

Yes

Operator ID

You can sign in to the system and go to the employee management page to view the value of userId returned by an interface.

Table 2 Request body parameters

No.

Parameter

Type

Mandatory or Not

Description

1.1

qualityItemId

Number

Yes

Inspection task ID

Response Description

  • Status code: 200
Table 3 Response body parameters

No.

Parameter

Type

Mandatory or Not

Description

1.1

agentIsNull

Boolean

No

Whether the previous node handler is empty. The options are true (yes) and false (no).

1.2

qualityItemRuleHit

Array [Object]

No

Inspection rule details

1.2.1

id

Number

No

List ID

1.2.2

callId

Number

No

Call inspection ID

1.2.3

ruleId

Number

No

Rule ID

1.2.4

ruleName

String

No

Rule name

1.2.5

ruleDescribe

String

No

Rule description

1.2.6

valid

Number

No

Inspection result. The options are 1 (valid), 0 (invalid), and -1 (not evaluated).

1.2.7

type

Number

No

Rule type. The options are 10 (dialog rule), 11 (silence rule), 12 (speed rule), 13 (interruption rule), 60 (sensitive word rule), and 70 (manual inspection rule).

1.2.8

createTime

Number

No

Start time. The value is a timestamp, in seconds.

1.2.9

updateTime

Number

No

Update time. The value is a timestamp, in seconds.

1.2.10

description

String

No

Handling description

1.2.11

appealId

Number

No

Handling ID

1.2.12

reviseId

String

No

Inspection result modification ID

1.2.13

ruleGroupId

Number

No

Rule ID

1.2.14

revise

Number

No

Inspection result modification type. The options are 1 (valid), 0 (invalid), and -1 (not modified).

1.3

title

String

No

Inspection task title

1.4

qualityItem

Object

No

Inspection task details

1.4.1

callId

Number

No

Call inspection ID

1.4.2

taskType

Number

No

Inspection task type. The options are 1 (problem) and 2 (appeal).

  • Status code: 400

    Incorrect request. Check the request path and parameters.

  • Status code: 401

    Unauthorized operation. 1. Check whether you have purchased related services. 2. Contact customer service to check the status of your account.

  • Status code: 404

    The requested content is not found. Check the request path.

  • Status code: 500

    Business failure. Check the values of parameters in the request.

Error Codes

None

Example

  • Scenario: Query inspection task details.

    Request header:

    x-app-key:************************************  
    X-UserID:1611917095665261978  
    Authorization:Bearer ********************************

    Request parameters:

    {
    	"qualityItemId": 16239231508327803347
    }

    Response parameters:

    {
    	"qualityItemRuleHit": [{
    		"valid": 1,
    		"revise": 1,
    		"ruleType": 11,
    		"reviseId": "silenceRule0c2ce60b-449a-423e-ada5-c69409e6dbab",
    		"ruleName": "Silence rule 1",
    		"description": "11",
    		"id": 16233929967205038091,
    		"ruleId": "920806740809748480",
    		"ruleGroupId": "groupid_1760cfbb-e24c-4c9f-92f7-2701f154577c"
    	}],
    	"qualityItem": {
    		"callId": "473fbc39-f231-43f4-b1d7-7fc415c6e990",
    		"taskType": 2
    	}
    }