マニフェスト検証
curl --request POST \
--url https://api.example.com/v1/data-apps/validate \
--header 'Content-Type: application/json' \
--data '
{
"manifest": "<string>",
"files": {},
"secrets": {}
}
'import requests
url = "https://api.example.com/v1/data-apps/validate"
payload = {
"manifest": "<string>",
"files": {},
"secrets": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({manifest: '<string>', files: {}, secrets: {}})
};
fetch('https://api.example.com/v1/data-apps/validate', 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.example.com/v1/data-apps/validate",
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([
'manifest' => '<string>',
'files' => [
],
'secrets' => [
]
]),
CURLOPT_HTTPHEADER => [
"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.example.com/v1/data-apps/validate"
payload := strings.NewReader("{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
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.example.com/v1/data-apps/validate")
.header("Content-Type", "application/json")
.body("{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}"
response = http.request(request)
puts response.read_body{
"valid": true,
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"card": {}
}公開
マニフェスト検証
書き込みなしでマニフェストを完全検証。問題一覧とプレビューカード。
POST
/
v1
/
data-apps
/
validate
マニフェスト検証
curl --request POST \
--url https://api.example.com/v1/data-apps/validate \
--header 'Content-Type: application/json' \
--data '
{
"manifest": "<string>",
"files": {},
"secrets": {}
}
'import requests
url = "https://api.example.com/v1/data-apps/validate"
payload = {
"manifest": "<string>",
"files": {},
"secrets": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({manifest: '<string>', files: {}, secrets: {}})
};
fetch('https://api.example.com/v1/data-apps/validate', 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.example.com/v1/data-apps/validate",
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([
'manifest' => '<string>',
'files' => [
],
'secrets' => [
]
]),
CURLOPT_HTTPHEADER => [
"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.example.com/v1/data-apps/validate"
payload := strings.NewReader("{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
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.example.com/v1/data-apps/validate")
.header("Content-Type", "application/json")
.body("{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"manifest\": \"<string>\",\n \"files\": {},\n \"secrets\": {}\n}"
response = http.request(request)
puts response.read_body{
"valid": true,
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"card": {}
}POST https://api-datahub.octoparse.com/v1/data-apps/validate
認証:APIキー必須(Authorization: Bearer <API Key>)。
2 段階公開の第 1 段階:構造、ブロック間ルール、自己公開のガードレール、コードパッケージのチェック、ファイル名のチェックを完全に検証する(公開時と同じルール)。問題の一覧とプレビューカードを返す。合否を決める唯一の基準はこのエンドポイントであり、ドキュメントのフィールド表から推測しないこと。
リクエスト
リクエスト body
string
必須
YAML または JSON 文字列としてのマニフェストのソーステキスト。
object
添付ファイル。キーは相対パス、値はテキスト(code 種別、または README がある場合に使用)。
object
シークレット名から平文へのマップ。検証エンドポイントはこれを保存しない。
リクエスト例
curl -X POST \
-H "Authorization: Bearer $OCTOPARSE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"manifest": "spec_version: \"0.2\"\nidentity:\n app_name: reviews-query\n name: Product review lookup\n …"}' \
"https://api-datahub.octoparse.com/v1/data-apps/validate"
レスポンス
200 成功
{
"data": {
"valid": false,
"errors": [
{
"path": "$",
"message": "'identity' is a required property"
},
{
"path": "$",
"message": "'input' is a required property"
},
"…"
],
"card": null
}
}
data に包まれます。フィールド:
boolean
必須
検証が通ったか。
object
有効な場合はプレビューカード、無効な場合は
null。エラー
| HTTP | code | category | 説明 |
|---|---|---|---|
| 401 | unauthorized | forbidden | API キー欠落または無効。 |
{"error": {code, category, message, retryable}} です。エラー を参照。