Skip to main content
PATCH
/
user-services
/
{service_id}
Update User Service
curl --request PATCH \
  --url https://api.zo.computer/user-services/{service_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "local_port": 32768,
  "entrypoint": [
    "<string>"
  ],
  "workdir": "<string>",
  "env_vars": {}
}
'
{
  "service_id": "<string>",
  "label": "<string>",
  "protocol": "http",
  "local_port": 123,
  "entrypoint": [
    "<string>"
  ],
  "workdir": "<string>",
  "env_vars": {},
  "http_url": "<string>",
  "tcp_addr": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Zo API key (zo_sk_...)

Path Parameters

service_id
string
required

Body

application/json
label
string | null
Required string length: 1 - 63
local_port
integer | null
Required range: 0 < x < 65536
entrypoint
workdir
string | null
env_vars
Env Vars · object

Response

Successful Response

service_id
string
required
label
string
required
protocol
enum<string>
required
Available options:
http,
tcp
local_port
integer
required
entrypoint
workdir
string | null
env_vars
Env Vars · object
http_url
string | null
tcp_addr
string | null
created_at
string<date-time> | null