Skip to main content
POST
cURL

Path Parameters

accessBundleId
string<uuid>
required

The ID of the access bundle.

Body

application/json
name
string
required

The name of the service.

Required string length: 1 - 64
hostPattern
string
required

A comma-separated set of hosts this service covers, each optionally with a port (defaults to 443). A leading *. wildcard matches exactly one label. Paths are not supported.

Maximum string length: 1024
credential
Bearer · object
required
allowedMethods
enum<string>[] | null

The HTTP methods this service allows. Null allows every method. Anything else is refused by the proxy with a 403.

Required array length: 1 - 7 elements
Available options:
GET,
HEAD,
POST,
PUT,
PATCH,
DELETE,
OPTIONS
allowedPathPrefixes
string[] | null

The path prefixes this service allows, matched on whole segments, so /repos covers /repos/octo but not /repositories. null allows every path. A path-restricted service also refuses any request whose path would have to be normalised to judge.

Required array length: 1 - 20 elements
customHeaders
object[]

Additional headers the proxy attaches to every request to this service, on top of the credential. Send the full list. A header you leave out is deleted. Send a header's id to change it in place and keep its stored value. Without an id, a header is matched by name.

Maximum array length: 20
substitutions
object[]

Placeholders the proxy swaps for a real secret before forwarding. Send the full list. A substitution you leave out is deleted. Send a substitution's id to change it in place and keep its stored value. Without an id, it is matched by its placeholder.

Maximum array length: 20

Response

Default Response

service
object
required