Data App 게시
curl --request POST \
--url https://api.example.com/v1/data-apps \
--header 'Content-Type: application/json' \
--data '
{
"manifest": "<string>",
"files": {},
"secrets": {}
}
'import requests
url = "https://api.example.com/v1/data-apps"
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', 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",
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"
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")
.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")
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{
"app_name": "<string>",
"namespace": "<string>",
"version": "<string>",
"status": "<string>",
"card": {},
"missing_secrets": [
"<string>"
],
"name_reused_from": "<string>"
}Publishing
Data App 게시
api 형 App 원샷 게시 설탕. 계약 가져오기 동선이 후속.
POST
/
v1
/
data-apps
Data App 게시
curl --request POST \
--url https://api.example.com/v1/data-apps \
--header 'Content-Type: application/json' \
--data '
{
"manifest": "<string>",
"files": {},
"secrets": {}
}
'import requests
url = "https://api.example.com/v1/data-apps"
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', 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",
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"
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")
.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")
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{
"app_name": "<string>",
"namespace": "<string>",
"version": "<string>",
"status": "<string>",
"card": {},
"missing_secrets": [
"<string>"
],
"name_reused_from": "<string>"
}비권장. 제출은 포털 계약 가져오기 마법사(assemble-contract 엔드포인트 기반)로. 신규는 그쪽.
POST https://api-datahub.octoparse.com/v1/data-apps
인증: API 키 필요(Authorization: Bearer <API Key>).
api 형(선언적) App용 원샷 게시 설탕: 내부는 식별자 생성 → 워크스페이스 저장 → Build 생성 → Release 생성 원자 체인.
버전은 게시 액션이 결정: 기본은 현재 최대 버전 patch +1(처음은 0.1.0). 제출물에 버전 번호 불필요·불가(템플릿·수동 stale 값 방지).
네임스페이스는 인증에서 추론: 매니페스트 identity.app_name은 App 이름만. App은 게시자 본인 (user, app name) 아래에 둠. app_id는 한 번 발급되며 사용자명·App 이름 변경 후에도 유지.
요청
요청 body
string
필수
원시 매니페스트 텍스트.
object
첨부 파일.
object
시크릿 이름→평문 맵.
요청 예시
curl -X POST \
-H "Authorization: Bearer $OCTOPARSE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"manifest": "spec_version: \"0.2\"\n…", "secrets": {"EXAMPLE_API_KEY": "sk-example"}}' \
"https://api-datahub.octoparse.com/v1/data-apps"
응답
200 성공
{
"data": {
"app_id": "app_6dfe4e839ccf",
"namespace": "carol",
"app_name": "reviews-query",
"version": "0.1.0",
"build_id": "bld_a583f440a0ab",
"published_at": "2026-09-15T08:00:00+00:00"
}
}
data로 감쌉니다. 필드:
string
필수
App 이름.
string
게시자 사용자 이름.
string
게시 버전 번호.
string
—
object
필수
—
string[]
—
string
—
오류
| HTTP | code | category | 설명 |
|---|---|---|---|
| 401 | unauthorized | forbidden | API 키 누락 또는 무효. |
| 422 | invalid-manifest | invalid_input | 매니페스트 검증 실패. issues[]에 문제 목록. |
| 400 | username-required | invalid_input | 계정에 아직 사용자 이름이 없어 <username>/<app_name>을 만들 수 없음. |
| 409 | app-name-reserved | forbidden | 타인 이력 바인딩이 이름을 보유(사용자 이름 이전 후 30일 동결). |
| 400 | invalid-app-name | invalid_input | 이름이 명명 규칙을 충족하지 않거나 예약어입니다. |
{"error": {code, category, message, retryable}}입니다. 오류 참고.