curl --request POST \
--url https://api.aisa.one/apis/v1/byteplus/mkt-insight/UpdateMonitorTask \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"Config": {
"RuleExpression": "OpenAI",
"TaskName": "Example monitor"
},
"TaskID": 1
}
'import requests
url = "https://api.aisa.one/apis/v1/byteplus/mkt-insight/UpdateMonitorTask"
payload = {
"Config": {
"RuleExpression": "OpenAI",
"TaskName": "Example monitor"
},
"TaskID": 1
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({Config: {RuleExpression: 'OpenAI', TaskName: 'Example monitor'}, TaskID: 1})
};
fetch('https://api.aisa.one/apis/v1/byteplus/mkt-insight/UpdateMonitorTask', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/byteplus/mkt-insight/UpdateMonitorTask",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'Config' => [
'RuleExpression' => 'OpenAI',
'TaskName' => 'Example monitor'
],
'TaskID' => 1
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/byteplus/mkt-insight/UpdateMonitorTask"
payload := strings.NewReader("{\n \"Config\": {\n \"RuleExpression\": \"OpenAI\",\n \"TaskName\": \"Example monitor\"\n },\n \"TaskID\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/byteplus/mkt-insight/UpdateMonitorTask")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"Config\": {\n \"RuleExpression\": \"OpenAI\",\n \"TaskName\": \"Example monitor\"\n },\n \"TaskID\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/byteplus/mkt-insight/UpdateMonitorTask")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"Config\": {\n \"RuleExpression\": \"OpenAI\",\n \"TaskName\": \"Example monitor\"\n },\n \"TaskID\": 1\n}"
response = http.request(request)
puts response.read_bodyUpdateMonitorTask
全量更新监测任务
BytePlus Market Insight monitor operation. Requires an AIsa API key and owner-scoped TaskID for existing tasks. Only POST JSON on the canonical path is supported; URL query parameters, proxy aliases, MPP and cost quotes are rejected. Request validation is owned by the handler; provider-specific Config fields and PullPosts filters are forwarded. Existing V2 customer pricing applies.
curl --request POST \
--url https://api.aisa.one/apis/v1/byteplus/mkt-insight/UpdateMonitorTask \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"Config": {
"RuleExpression": "OpenAI",
"TaskName": "Example monitor"
},
"TaskID": 1
}
'import requests
url = "https://api.aisa.one/apis/v1/byteplus/mkt-insight/UpdateMonitorTask"
payload = {
"Config": {
"RuleExpression": "OpenAI",
"TaskName": "Example monitor"
},
"TaskID": 1
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({Config: {RuleExpression: 'OpenAI', TaskName: 'Example monitor'}, TaskID: 1})
};
fetch('https://api.aisa.one/apis/v1/byteplus/mkt-insight/UpdateMonitorTask', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/byteplus/mkt-insight/UpdateMonitorTask",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'Config' => [
'RuleExpression' => 'OpenAI',
'TaskName' => 'Example monitor'
],
'TaskID' => 1
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/byteplus/mkt-insight/UpdateMonitorTask"
payload := strings.NewReader("{\n \"Config\": {\n \"RuleExpression\": \"OpenAI\",\n \"TaskName\": \"Example monitor\"\n },\n \"TaskID\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/byteplus/mkt-insight/UpdateMonitorTask")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"Config\": {\n \"RuleExpression\": \"OpenAI\",\n \"TaskName\": \"Example monitor\"\n },\n \"TaskID\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/byteplus/mkt-insight/UpdateMonitorTask")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"Config\": {\n \"RuleExpression\": \"OpenAI\",\n \"TaskName\": \"Example monitor\"\n },\n \"TaskID\": 1\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
One JSON object with exact, case-sensitive root field names. Unknown and duplicate root fields are rejected. URL query parameters are not supported.
TaskName and RuleExpression are required and must be nonblank. Config fields follow Go JSON case-insensitive matching and last-value behavior; additional provider fields are forwarded. Required-field, whitespace and byte checks apply in the runtime validator.
Show child attributes
Show child attributes
Positive task ID previously created by this user for this provider.
1 <= x <= 9223372036854776000Response
Successful response