Skip to main content
POST
/
io.pocketenv.service.addService
cURL
curl --request POST \
  --url https://api.pocketenv.io/xrpc/io.pocketenv.service.addService \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "service": {
    "name": "<string>",
    "command": "<string>",
    "description": "<string>",
    "ports": [
      123
    ]
  }
}
'
{
  "error": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
service
object
required

Response

OK