워크스페이스 삭제
curl --request DELETE \
--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.delete(url)
print(response.text)const options = {method: 'DELETE'};
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 => "DELETE",
]);
$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("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("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::Delete.new(url)
response = http.request(request)
puts response.read_body{
"deleted": true,
"app_deleted": true
}Publishing
워크스페이스 삭제
드래프트 폐기. 미게시면 식별자도 연쇄 삭제.
DELETE
/
v1
/
data-apps
/
{app_id}
/
workspace
워크스페이스 삭제
curl --request DELETE \
--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.delete(url)
print(response.text)const options = {method: 'DELETE'};
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 => "DELETE",
]);
$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("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("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::Delete.new(url)
response = http.request(request)
puts response.read_body{
"deleted": true,
"app_deleted": true
}DELETE https://api-datahub.octoparse.com/v1/data-apps/{app_id}/workspace
인증: API 키 필요(Authorization: Bearer <API Key>). App 작성자만. 그 외 404.
드래프트 폐기. Release가 없으면 식별자도 연쇄 삭제(미게시 빈 껍데기 유지 안 함. 이력 이름 속박 해제).
드래프트 없음이 항상 즉시 404는 아님: 드래프트 없음·Release 0 식별자(이력 고아)는 빈 워크스페이스 표현으로 반환될 수 있음.
요청
경로 파라미터
string
필수
App 참조.
요청 예시
curl -X DELETE \
-H "Authorization: Bearer $OCTOPARSE_API_KEY" \
"https://api-datahub.octoparse.com/v1/data-apps/carol/reviews-query/workspace"
응답
200 성공
{
"data": {
"deleted": false,
"app_deleted": false
}
}
data로 감쌉니다. 필드:
boolean
필수
드래프트 삭제 여부.
boolean
—
오류
| HTTP | code | category | 설명 |
|---|---|---|---|
| 401 | unauthorized | forbidden | API 키 누락 또는 무효. |
| 404 | workspace-not-found | not_found | 진행 중 드래프트 없음. 정상 주경로 상태이며 오류가 아님. |
{"error": {code, category, message, retryable}}입니다. 오류 참고.