Skip to main content
PATCH
cURL

Path Parameters

serviceId
string<uuid>
required

The ID of the service.

Body

application/json
type
enum<string>
required

The service's type, http, mcp, postgres, mysql or ssh. Must match the type the service was created with.

Available options:
http
name
string

The name of the service, unique in the Agent Vault project.

Required string length: 1 - 64
description
string | null

What the service is for, such as what an agent can do with it and when to use it. Up to 256 characters, without line breaks or invisible characters. Agents in a session can read it, so never put a credential or any other secret in it. Send null or an empty string to remove it.

Maximum string length: 256
Pattern: ^[^\x00-\x1f\x7f]*$
hostPattern
string

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
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
credential
Bearer · object
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
hook
object | null

The saved hook for the proxy to ask before it sends this service's requests, by name, with its narrowing. Replaces the service's hook and narrowing. Send null to remove the hook, or leave it out to keep the current one. Needs permission to read hooks to set one.

Response

Default Response

service
HTTP · object
required