App を改名
curl --request POST \
--url https://api.example.com/v1/data-apps/{app_id}/rename \
--header 'Content-Type: application/json' \
--data '
{
"new_app_name": "<string>"
}
'import requests
url = "https://api.example.com/v1/data-apps/{app_id}/rename"
payload = { "new_app_name": "<string>" }
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({new_app_name: '<string>'})
};
fetch('https://api.example.com/v1/data-apps/{app_id}/rename', 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}/rename",
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([
'new_app_name' => '<string>'
]),
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}/rename"
payload := strings.NewReader("{\n \"new_app_name\": \"<string>\"\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}/rename")
.header("Content-Type", "application/json")
.body("{\n \"new_app_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps/{app_id}/rename")
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 \"new_app_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"app_id": "<string>",
"app_name": "<string>",
"namespace": "<string>"
}Publishing
App を改名
版を出さず進行中実行に影響なく App 名(ルーティング別名)を変更。
POST
/
v1
/
data-apps
/
{app_id}
/
rename
App を改名
curl --request POST \
--url https://api.example.com/v1/data-apps/{app_id}/rename \
--header 'Content-Type: application/json' \
--data '
{
"new_app_name": "<string>"
}
'import requests
url = "https://api.example.com/v1/data-apps/{app_id}/rename"
payload = { "new_app_name": "<string>" }
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({new_app_name: '<string>'})
};
fetch('https://api.example.com/v1/data-apps/{app_id}/rename', 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}/rename",
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([
'new_app_name' => '<string>'
]),
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}/rename"
payload := strings.NewReader("{\n \"new_app_name\": \"<string>\"\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}/rename")
.header("Content-Type", "application/json")
.body("{\n \"new_app_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/data-apps/{app_id}/rename")
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 \"new_app_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"app_id": "<string>",
"app_name": "<string>",
"namespace": "<string>"
}POST https://api-datahub.octoparse.com/v1/data-apps/{app_id}/rename
認証:APIキー必須(Authorization: Bearer <API Key>)。App 作者のみ。他者は 404。
改名は完全に開いている — Release 0 件に限らない。App 名はルーティング別名: 改名は版を公開せず、実行やデータセットを壊さない。安定 app_id は不変。
壊れた呼び出し側参照は開発者責任: 改名後の古い owner/old-name 参照(MCP 固定、SDK、REST、詳細 URL)はリダイレクトなしで明確なな 404。履歴の実行とデータセットは app_id で辿れる。
検証は識別子作成と同じ: 命名規則 → 予約語 → 新名 ≠ 現名。他者の名前との衝突は 409。
リクエスト
パスパラメータ
string
必須
App reference.
リクエスト body
string
必須
—
リクエスト例
curl -X POST \
-H "Authorization: Bearer $OCTOPARSE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"app_name": "review-lookup"}' \
"https://api-datahub.octoparse.com/v1/data-apps/carol/reviews-query/rename"
レスポンス
200 成功
{
"data": {
"app_id": "app_6dfe4e839ccf",
"namespace": "carol",
"app_name": "review-lookup",
"previous_app_name": "reviews-query"
}
}
data に包まれます。フィールド:
string
必須
安定 App id — 不変。
string
必須
New name.
string
発行者ユーザー名。
エラー
| HTTP | code | category | Description |
|---|---|---|---|
| 401 | unauthorized | forbidden | API キー欠落または無効。 |
| 400 | invalid-app-name | invalid_input | Name fails naming rules or is a reserved word. |
| 409 | app-name-reserved | forbidden | 他者の履歴バインドが名前を保持(ユーザー名移管後 30 日凍結)。 |
| 409 | app-name-taken | invalid_input | この名前の App を既に持っている。 |
{"error": {code, category, message, retryable}} です。エラー を参照。