Skip to main content
PUT
/
v1
/
chicklets
/
{id}
/
ports
Update chicklet ports
curl --request PUT \
  --url https://api.chicklet.io/v1/chicklets/{id}/ports \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ports": [
    123
  ]
}
'
{
  "ports": [
    123
  ]
}

Authorizations

Authorization
string
header
required

Bearer token authentication (e.g. "Bearer your-api-key")

Path Parameters

id
string
required

Chicklet name or ID

Body

application/json
ports
integer[]
required

List of port numbers to expose

Response

Returns the updated ports

ports
integer[]
required

List of port numbers to expose