Release を作成
curl --request POST \
--url https://api.example.com/v1/data-apps/{app_id}/releases \
--header 'Content-Type: application/json' \
--data '
{
"build_id": "<string>",
"version": "<string>",
"expected_revision": 123
}
'import requests
url = "https://api.example.com/v1/data-apps/{app_id}/releases"
payload = {
"build_id": "<string>",
"version": "<string>",
"expected_revision": 123
}
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({build_id: '<string>', version: '<string>', expected_revision: 123})
};
fetch('https://api.example.com/v1/data-apps/{app_id}/releases', 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/{app_id}/releases",
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([
'build_id' => '<string>',
'version' => '<string>',
'expected_revision' => 123
]),
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/{app_id}/releases"
payload := strings.NewReader("{\n \"build_id\": \"<string>\",\n \"version\": \"<string>\",\n \"expected_revision\": 123\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/{app_id}/releases")
.header("Content-Type", "application/json")
.body("{\n \"build_id\": \"<string>\",\n \"version\": \"<string>\",\n \"expected_revision\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps/{app_id}/releases")
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 \"build_id\": \"<string>\",\n \"version\": \"<string>\",\n \"expected_revision\": 123\n}"
response = http.request(request)
puts response.read_body{
"app_name": "<string>",
"namespace": "<string>",
"version": "<string>",
"build_id": "<string>",
"published_at": "<string>",
"missing_secrets": [
"<string>"
]
}Publishing
Release を作成
ready Build を正式バージョンへ昇格。バージョン番号はこの時点で確定。
POST
/
v1
/
data-apps
/
{app_id}
/
releases
Release を作成
curl --request POST \
--url https://api.example.com/v1/data-apps/{app_id}/releases \
--header 'Content-Type: application/json' \
--data '
{
"build_id": "<string>",
"version": "<string>",
"expected_revision": 123
}
'import requests
url = "https://api.example.com/v1/data-apps/{app_id}/releases"
payload = {
"build_id": "<string>",
"version": "<string>",
"expected_revision": 123
}
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({build_id: '<string>', version: '<string>', expected_revision: 123})
};
fetch('https://api.example.com/v1/data-apps/{app_id}/releases', 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/{app_id}/releases",
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([
'build_id' => '<string>',
'version' => '<string>',
'expected_revision' => 123
]),
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/{app_id}/releases"
payload := strings.NewReader("{\n \"build_id\": \"<string>\",\n \"version\": \"<string>\",\n \"expected_revision\": 123\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/{app_id}/releases")
.header("Content-Type", "application/json")
.body("{\n \"build_id\": \"<string>\",\n \"version\": \"<string>\",\n \"expected_revision\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps/{app_id}/releases")
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 \"build_id\": \"<string>\",\n \"version\": \"<string>\",\n \"expected_revision\": 123\n}"
response = http.request(request)
puts response.read_body{
"app_name": "<string>",
"namespace": "<string>",
"version": "<string>",
"build_id": "<string>",
"published_at": "<string>",
"missing_secrets": [
"<string>"
]
}POST https://api-datahub.octoparse.com/v1/data-apps/{app_id}/releases
認証:APIキー必須(Authorization: Bearer <API Key>)。App 作者のみ。他者は 404。
指定の ready Build を正式バージョンへ昇格。バージョン番号はここで確定: 既定は現在の最大版の patch を +1。明示的により高い版も可。
前提: Build が存在し ready。スナップショットを検証パイプライン再実行(Build 生存中に仕様が進化していることあり)。expected_revision 指定時はワークスペースが一致。対象バージョンが未存在。App が非推奨でないこと。
リクエスト
パスパラメータ
string
必須
App reference.
リクエスト body
string
必須
公開する Build id。ready 必須。
string
明示的な 3 セグメント版。省略時は patch を +1。
integer
期待する現下書きリビジョン。不一致は
409。リクエスト例
curl -X POST \
-H "Authorization: Bearer $OCTOPARSE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"build_id": "bld_a583f440a0ab", "version": "1.2.0"}' \
"https://api-datahub.octoparse.com/v1/data-apps/carol/reviews-query/releases"
レスポンス
200 成功
{
"data": {
"version": "1.2.0",
"build_id": "bld_a583f440a0ab",
"published_at": "2026-09-15T08:00:00+00:00",
"latest": true
}
}
data に包まれます。フィールド:
string
必須
—
string
—
string
必須
公開バージョン番号。
string
必須
対応する Build。
string
Publish time.
string[]
—
エラー
| HTTP | code | category | Description |
|---|---|---|---|
| 401 | unauthorized | forbidden | API キー欠落または無効。 |
| 404 | build-not-found | not_found | Build スナップショットが存在しない。 |
| 409 | build-not-ready | invalid_input | Build がまだ ready でない(building または failed)ため公開不可。 |
| 422 | invalid-manifest | invalid_input | マニフェスト検証失敗。issues[] に問題一覧。 |
| 409 | revision-conflict | invalid_input | expected_revision が現下書きリビジョンと一致しない — 同時編集。 |
{"error": {code, category, message, retryable}} です。エラー を参照。