ワークスペース取得
curl --request GET \
--url https://api.example.com/v1/data-apps/{app_id}/workspaceimport requests
url = "https://api.example.com/v1/data-apps/{app_id}/workspace"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/data-apps/{app_id}/workspace', 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}/workspace",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/data-apps/{app_id}/workspace"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/data-apps/{app_id}/workspace")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps/{app_id}/workspace")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"app_name": "<string>",
"app_id": "<string>",
"namespace": "<string>",
"manifest": "<string>",
"files": {},
"revision": 123,
"valid": true,
"issues": [
{
"path": "<string>",
"message": "<string>"
}
],
"content_hash": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}公開
ワークスペース取得
下書きの原文・ファイル・リビジョン・検証結果を読み戻し。編集継続用。
GET
/
v1
/
data-apps
/
{app_id}
/
workspace
ワークスペース取得
curl --request GET \
--url https://api.example.com/v1/data-apps/{app_id}/workspaceimport requests
url = "https://api.example.com/v1/data-apps/{app_id}/workspace"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/data-apps/{app_id}/workspace', 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}/workspace",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/data-apps/{app_id}/workspace"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/data-apps/{app_id}/workspace")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps/{app_id}/workspace")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"app_name": "<string>",
"app_id": "<string>",
"namespace": "<string>",
"manifest": "<string>",
"files": {},
"revision": 123,
"valid": true,
"issues": [
{
"path": "<string>",
"message": "<string>"
}
],
"content_hash": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}GET https://api-datahub.octoparse.com/v1/data-apps/{app_id}/workspace
認証:APIキー必須(Authorization: Bearer <API Key>)。App 作者のみ。他者は 404。
生マニフェスト、添付、リビジョン、現在の検証結果 — クライアントの「編集を続ける」再投入源。
下書きなしは 404 workspace-not-found。通常の主経路状態(新規 App、または進行中下書きなしの公開済み)。
リクエスト
パスパラメータ
string
必須
App の参照。
リクエスト例
curl \
-H "Authorization: Bearer $OCTOPARSE_API_KEY" \
"https://api-datahub.octoparse.com/v1/data-apps/carol/reviews-query/workspace"
レスポンス
200 成功
{
"data": {
"app_name": "probe-b",
"app_id": "app_6dfe4e839ccf",
"namespace": "carol",
"manifest": "\nspec_version: \"0.2\"\nidentity:\n app_name: probe-b\n name: Runs list probe source\n summary: Test app for runs list pagination and filters\n type: data\n version:…",
"files": {},
"revision": 1,
"valid": true,
"issues": [],
"content_hash": "267d174fa14b05d66608cbd8315242f4b0f5b0b62a5fd94ffa852ee6cf62f978",
"created_at": "2026-09-15T07:45:38.574191+00:00",
"updated_at": "2026-09-15T07:45:38.574191+00:00"
}
}
data に包まれます。フィールド:
string
必須
App 名。
string
必須
安定した App ID。
string
発行者ユーザー名。
string
必須
生マニフェストテキスト。
object
添付ファイル。
integer
必須
保存時
expected_revision 用の下書きリビジョン。boolean
必須
検証が通ったか。
string
コンテンツハッシュ。Build の
content_hash に対応する。string
作成日時。
string
最終保存時刻。
エラー
| HTTP | code | category | 説明 |
|---|---|---|---|
| 401 | unauthorized | forbidden | API キー欠落または無効。 |
| 404 | workspace-not-found | not_found | 進行中の下書きがない。通常の主経路状態であり故障ではない。 |
{"error": {code, category, message, retryable}} です。エラー を参照。