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 참조.
요청 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
필수
새 이름.
string
게시자 사용자 이름.
오류
| HTTP | code | category | 설명 |
|---|---|---|---|
| 401 | unauthorized | forbidden | API 키 누락 또는 무효. |
| 400 | invalid-app-name | invalid_input | 이름이 명명 규칙을 충족하지 않거나 예약어입니다. |
| 409 | app-name-reserved | forbidden | 타인 이력 바인딩이 이름을 보유(사용자 이름 이전 후 30일 동결). |
| 409 | app-name-taken | invalid_input | 이 이름의 App을 이미 보유. |
{"error": {code, category, message, retryable}}입니다. 오류 참고.