본문으로 건너뛰기

워크스페이스 보관

워크스페이스를 보관합니다, 그 워크스페이스의 API 키가 모두 폐기됩니다

POST /v1/organizations/{org_id}/workspaces/{workspace_id}/archive

인증

방식허용조건
API 키 (Authorization: Bearer xci_live_…)불가콘솔 세션 전용, 키로 부르면 403 console_only
콘솔 세션 쿠키가능조직 역할 owner, admin, 같은 출처의 Origin 헤더 필요

매개변수

이름위치타입필수설명
org_id경로string필수조직 ID, 형식 ^org_[A-Za-z0-9]+$
workspace_id경로string필수워크스페이스 ID, 형식 ^wrk_[A-Za-z0-9]+$

응답

200

필드타입항상설명
idstring항상ID, 형식 ^wrk_[A-Za-z0-9]+$
organization_idstring항상조직 ID
namestring항상이름
is_defaultboolean항상기본 워크스페이스인지, 기본은 보관할 수 없습니다
monthly_limit_micro_usdinteger항상월 지출 한도, null이면 없음, null 가능
monthly_limit_usdstring월 한도(USD 정수), null 가능
month_spend_micro_usdinteger항상이번 달(UTC) 지출, 최소 0
month_spend_usdstring항상이번 달 지출(USD), 형식 ^-?[0-9]+\.[0-9]{6}$
archived_attimestamp 또는 null보관 시각, 아니면 null, null 가능
created_attimestamp항상만든 시각
{
  "id": "wrk_3fK9Qm2Zp8",
  "organization_id": "org_7Kq2m9ZtP3",
  "name": "ios-app",
  "is_default": false,
  "monthly_limit_micro_usd": 50000000,
  "monthly_limit_usd": "50.000000",
  "month_spend_micro_usd": 475200,
  "month_spend_usd": "0.475200",
  "archived_at": null,
  "created_at": "2026-10-12T03:11:05Z"
}

오류

HTTP코드다시 시도뜻
400invalid_request아니오본문이나 쿼리가 검증에 실패했습니다, error.details.fields에 문제 필드가 있습니다
401session_required아니오콘솔 엔드포인트를 유효한 콘솔 세션 쿠키 없이 불렀습니다
403console_only아니오콘솔 세션 전용 엔드포인트입니다, API 키로는 결제, 키, 멤버 관리를 할 수 없습니다
403insufficient_permission아니오역할이나 키 권한(run/read)이 이 요청을 허용하지 않습니다
404not_found아니오자원이 없거나 이 호출자에게 보이지 않습니다
409conflict아니오자원 상태가 이 요청을 허용하지 않습니다, 다시 읽은 뒤 시도하세요
409default_workspace_protected아니오기본 워크스페이스는 보관할 수 없습니다
429rate_limited가능이 키 또는 조직의 요청이 너무 많습니다, retryafters만큼 기다리세요
500internal_error가능예상하지 못한 오류입니다, 다시 시도하고 반복되면 request_id와 함께 알려 주세요

오류 봉투 모양과 전체 코드 표는 오류 코드에 있습니다

예시

curl -X POST "https://xenoci.com/api/runner/v1/organizations/org_7Kq2m9ZtP3/workspaces/wrk_3fK9Qm2Zp8/archive" \
  --cookie "xci_console=$SESSION" \
  -H "Origin: https://xenoci.com"

다음 단계