콘텐츠로 이동

installWorkspace

POST
/api/v1/workspaces/{workspace_id}/install
curl --request POST \
--url https://dev.api.endueos.com/api/v1/workspaces/wsp_01J9ZK3Q8M4XW7D2N5R6T0V1BC/install \
--header 'Authorization: Bearer <token>'

Issues the agent connection token of a local workspace. Each call invalidates the previous token; 409 AGENT_CONNECTED while its device is connected, 409 WORKSPACE_STATE_CONFLICT for cloud workspaces.

workspace_id
필수
string
/^wsp_[0-9A-HJKMNP-TV-Z]{26}$/
예시
wsp_01J9ZK3Q8M4XW7D2N5R6T0V1BC

성공.

Media typeapplication/json
object
data
필수

Connection values for installing the agent of a local workspace. The token is shown only here.

object
workspace_id
필수
string
/^wsp_[0-9A-HJKMNP-TV-Z]{26}$/
environment
필수
string
허용 값: linux chrome macos android
endpoint
필수

Relay socket the agent connects to, wss://{host}/api/v1/relay/socket.

string
token
필수

Agent connection token (osat_). Issuing again invalidates the previous token.

string
download_base
필수
Any of:
string
meta
필수
object
request_id
필수
string
timestamp
필수
string format: date-time
duration

서버 처리 시간(ms).

integer format: int32
예시
{
"data": {
"workspace_id": "wsp_01J9ZK3Q8M4XW7D2N5R6T0V1BC",
"environment": "linux"
}
}
Cache-Control
필수
string
허용 값: no-store

인증이 없거나 무효다 — UNAUTHORIZED. 본문은 오류 봉투.

없거나 내 것이 아니다 — *_NOT_FOUND. 본문은 오류 봉투.

지금 상태와 충돌한다 — 코드는 위 설명을 본다. 본문은 오류 봉투.

한도를 넘었다 — Retry-After 초 뒤에 다시. 본문은 오류 봉투.

서버 오류 — INTERNAL_ERROR. 본문은 오류 봉투.

의존 서비스에 닿지 못했다 — 잠시 뒤 다시. 본문은 오류 봉투.