Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

POST /CCSQM/rest/ccisqm/v1/regularqualitytask/addQualityTask

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

Scenario

This interface is invoked to add a scheduled sample inspection plan.

Method

POST

URI

https://Domain name/apiaccess/CCSQM/rest/ccisqm/v1/regularqualitytask/addQualityTask (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

appointQuality

Object

Yes

Inspectors to be assigned

1.1.1

setCounts

Array [Object]

Yes

Inspectors

1.1.1.1

count

Number

No

Quantity. The value can contain a maximum of eight characters.

  • When setCountsType is not set to 2, count is mandatory.
  • When setCountsType is set to 2, the sum of all counts in setCounts is 100.

1.1.1.2

personID

String

Yes

Inspector ID. The value can contain a maximum of 64 characters.

1.1.2

setCountsType

Integer

Yes

Quantity type. The options are 0 (on average) and 2 (by percentage).

1.2

cronStructure

Object

Yes

Period

1.2.1

qiqtCycleType

String

Yes

Repetition mode. The options are 1 (daily), 2 (weekly), and 3 (monthly).

1.2.2

qiqtEndTime

Integer

No

End time, in seconds. This parameter is valid when qiqtEndType is set to 2. The value can contain a maximum of 10 digits.

1.2.3

qiqtEndType

String

Yes

End condition. The options are 1 (number of times) and 2 (time).

1.2.4

qiqtStartTime

Integer

Yes

Start time, in seconds. The value can contain a maximum of 10 characters.

1.2.5

qiqtTotalTimes

Integer

No

Number of times a scheduled task is executed. The value can contain a maximum of eight characters.

When qiqtEndType is set to 1, qiqtTotalTimes is mandatory.

1.3

currentRole

String

No

User role

1.4

extractionRange

Object

Yes

Sample inspection scope

1.4.1

currentRole

String

No

User role

1.4.2

fixedColumns

Object

Yes

Sample inspection scope

1.4.2.1

qualityType

Integer

Yes

Sample inspection type. The options are 1 (call scope), 2 (agent quantity), and 3 (agent percentage).

1.4.2.2

durationStart

Integer

No

Minimum call duration, in milliseconds. The value can contain a maximum of 11 characters.

1.4.2.3

qualityNum

String

Yes

Sample inspection quantity. The value can contain a maximum of eight characters.

1.4.2.4

qualityCondition

Integer

Yes

Sample inspection status. The options are 0 (unlimited), 1 (not sampled), and 2 (sampled).

1.4.2.5

durationEnd

String

No

Maximum call duration, in milliseconds. The value can contain a maximum of 11 characters.

1.4.2.6

maxNum

String

No

Maximum sample inspection quantity. The value can contain a maximum of eight characters.

When qualityType is not set to 2, maxNum is mandatory and must be greater than or equal to 1.

1.4.2.7

scoreEnd

String

No

Maximum score. The maximum value is 10000.

1.4.2.8

scoreStart

String

No

Minimum score. The maximum value is 10000.

1.4.2.9

staffIds

Array [String]

No

Agents

1.4.2.10

interactionType

Integer

Yes

Interaction type. The options are as follows:

  • 0: recording
  • 1: text

1.4.3

userId

String

No

User ID

1.5

qiqtName

String

Yes

Plan name. The value can contain a maximum of 64 characters.

1.6

userId

String

No

User ID

Response Description

  • Status code: 200
Table 3 Response body parameters

No.

Parameter

Type

Mandatory or Not

Description

1.1

objId

String

No

Unique ID of a sample inspection plan

1.2

resultCode

String

No

Return code

  • 0408000: success
  • Others: failure

1.3

resultDesc

String

No

Return description

  • 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: Add a scheduled sample inspection plan.

    Request header:

    Content-Type:application/json  
    x-app-key:xxxx-xxxx-xxx-xxxx  
    x-UserId:xxxxxxxxx  
    Authorization:Bearer ********************************

    Request parameters:

    {
    	"extractionRange": {
    		"customColumns": null,
    		"fixedColumns": {
    			"qualityCondition": 0,
    			"qualityType": 1,
    			"qualityNum": 100,
    			"staffIds": ["xxxxxx"],
    			"maxNum": 10,
    			"scoreStart": 0,
    			"scoreEnd": 100,
    			"durationStart": 0,
    			"durationEnd": 100
    		},
    		"currentRole": "qualityDirector"
    	},
    	"appointQuality": {
    		"setCounts": [{
    			"personID": "xxxx",
    			"count": 40
    		}, {
    			"personID": "xxxxx",
    			"count": 60
    		}],
    		"setCountsType": 2
    	},
    	"cronStructure": {
    		"qiqtCycleType": 1,
    		"qiqtStartTime": 1609295228.86,
    		"qiqtEndType": 2,
    		"qiqtTotalTimes": 1,
    		"qiqtEndTime": 1609554428
    	},
    	"qiqtName": "regulartask",
    	"currentRole": "qualityDirector"
    }

    Response header:

    Content-Type: application/json;charset=UTF-8

    Response parameters:

    {
    	"objId": "954637368599307266",
    	"resultCode": 0,
    	"resultDesc": "success"
    }

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback