UpdateSchemeTaskConfig

Updated at:

Frontend path: Task Management > Edit any data on the right. Apsara Stack URL: ip:port/api/task/UpdateSchemeTaskConfig.json.

Operation description

Updates quality inspection task information.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

jsonStr

string

No

Input parameter JSON. For details, see the request parameters section.

{"schemeTaskConfigId":368,"status":1,"name":"检测任务 2022-09-21 16:59:50"}

BaseMeAgentId

integer

No

Workspace ID

123456

For more information, see the Quality Inspection Task Object Description document.

Request input parameter example

{
    "id": 4761,
    "schemeTaskConfigId": 4761,
    "name": "Car Sales Scenario Task",
    "dataConfig": {
        "assignConfigs": [
            {
                "assignConfigContests": [
                    {
                        "symbol": 1,
                        "dataType": 2,
                        "name": "customerServiceName",
                        "value": [
                            "siqi"
                        ]
                    },
                    {
                        "name": "customerServiceId",
                        "symbol": 1,
                        "value": [
                            "1234"
                        ],
                        "dataType": 2
                    }
                ]
            }
        ]
    },
    "schemeIdList": [
        198
    ],
    "assignConfig": null,
    "manualReview": 0,
    "modeCustomizationId": "cdae396590bb479a9ec40f3476e274fc",
    "vocabId": "3814930c648c48a79a43aaaf3ac937d7",
    "asrTaskPriority": 1
}

Request code example

import com.alibaba.fastjson.JSONObject;
import com.aliyun.qualitycheck20190115.Client;
import com.aliyun.qualitycheck20190115.models.*;
import com.aliyun.teaopenapi.models.Config;


public class sca {

    private static String ak = "YOUR_ACCESS_KEY_ID";
    private static String sk = "YOUR_ACCESS_KEY_SECRET";

    private static void updateSchemeTaskConfig() throws Exception {
        String json="{\"id\":4761,\"schemeTaskConfigId\":4761,\"name\":\"Detection task siqi-test\",\"dataConfig\":{\"assignConfigs\":[{\"assignConfigContests\":[{\"symbol\":1,\"dataType\":2,\"name\":\"customerServiceName\",\"value\":[\"siqi\"]},{\"name\":\"customerServiceId\",\"symbol\":1,\"value\":[\"1234\"],\"dataType\":2}]}]},\"schemeIdList\":[198],\"assignConfig\":null,\"manualReview\":0,\"modeCustomizationId\":\"cdae396590bb479a9ec40f3476e274fc\",\"vocabId\":\"3814930c648c48a79a43aaaf3ac937d7\",\"asrTaskPriority\":1}";

        Config config = new Config();
        config.setAccessKeyId(ak).setAccessKeySecret(sk)
                .setEndpoint("qualitycheck.cn-hangzhou.aliyuncs.com")
                .setRegionId("cn-hangzhou").setProtocol("HTTPS");

        Client client = new Client(config);
        UpdateSchemeTaskConfigRequest result = new UpdateSchemeTaskConfigRequest();

        result.setJsonStr(json);

        UpdateSchemeTaskConfigResponse response = client.updateSchemeTaskConfig(result);
        System.out.println(JSONObject.toJSONString(response));
    }

    public static void main(String[] args) throws Exception {
        updateSchemeTaskConfig();
    }
}

Response elements

Element

Type

Description

Example

object

BaseResult

RequestId

string

Request ID

106C6CA0-282D-4AF7-85F0-D2D24***

Success

boolean

Indicates whether the request succeeded. true means success. false or null means failure.

true

Code

string

Result code. 200 means success. Other values mean failure.

200

Message

string

Error details if an error occurs. When successful, the value is successful.

successful

Messages

object

Message

array

List of messages. Ignore.

string

Message. Ignore.

无

HttpStatusCode

integer

HTTP status code.

200

Examples

Success response

JSON format

{
  "RequestId": "106C6CA0-282D-4AF7-85F0-D2D24***",
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "Messages": {
    "Message": [
      "无"
    ]
  },
  "HttpStatusCode": 200
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.