---
title: "PUT /access-services/{service_id}"
method: PUT
path: "/access-services/{service_id}"
tags: ["Vault"]
---

# PUT /access-services/{service_id}

`PUT /access-services/{service_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/access-services/{service_id}`
- Auth: HTTP bearer

## Path parameters

- `service_id` string, required

## Request body

- SaveAccessService
  - `clear_credential` boolean
  - `credential` string, password, nullable: A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.
  - `enabled` boolean, required: Allows requests to be saved; does not enable a network connection.
  - `expected_version` integer, nullable: Required for updates; omit for creation.
  - `max_ttl_seconds` integer, required: Maximum lifetime of a request, between 60 and 86400 seconds.
  - `name` string, required
  - `policy` SandboxAccessPolicy, required: Exact destination and request scope. The broker must validate this again against its supported protocols before installing a policy.
    - `delivery` CredentialDelivery, nullable: How a stored credential is presented to the destination, plus any fixed headers the API requires. Changing it changes the policy, so consent given for the previous delivery does not carry over.
      - `format` union: The credential is one stored secret. Formats differ only in how it is sent.
        - object: `Authorization: Bearer <credential>`.
          - `method` 'bearer', required
        - object: `<name>: <prefix><credential>`, for example `x-api-key`.
          - `method` 'header', required
          - `name` string, required
          - `prefix` string, nullable
        - object: `Authorization: Basic base64(<username>:<credential>)` with a fixed username.
          - `method` 'basic_token', required
          - `username` string, required
        - object: `Authorization: Basic base64(<credential>)`; the stored credential is `username:password`.
          - `method` 'basic', required
      - `headers` RequestHeader[]: Fixed, non-secret headers sent with every request, such as an API version. At most 16; values are printable ASCII and never templates.
        - `name` string, required
        - `value` string, required
    - `github_repository` GithubRepositoryAccess, nullable: Immutable reference to an explicitly selected GitHub connection and synced repository. Changing the connection or repository requires a new policy and fresh consent.
      - `connection_id` integer, required
      - `owner` string, required
      - `protocol` 'api' | 'git', required
      - `repository` string, required
    - `methods` AccessMethod[], required
    - `origin` string, required: HTTPS origin only; no path, userinfo, query, fragment or non-443 port.
    - `path_prefixes` string[], required: Segment-boundary path prefixes, for example `/owner/private-repo`.
    - `provider` 'github' | 'gitlab' | 'openai' | 'anthropic' | 'stripe' | 'resend' | 'sendgrid' | 'vercel' | 'netlify' | 'mistral' | 'groq', nullable
  - `vault_id` string, nullable: Add a newly created service to this vault in the same transaction.

## Response `200`

- AccessServiceResponse
  - `catalog` CatalogReference, nullable: What the catalog knows about a saved service's destination: how to show it and where its credential is created, so a key can be rotated from the edit page.
    - `credential_help` CredentialHelp, required
      - `notes` string[], required: Notes the service's template gives for its credential fields.
      - `url` string, nullable: HTTPS page where this service's key or token is created.
    - `credential_labels` string[], required: One label for a single credential, or two (username, password).
    - `id` string, required
    - `logo` string, required
    - `name` string, required
  - `created_at` string, date-time, required
  - `enabled` boolean, required
  - `has_credential` boolean, required
  - `id` string, required
  - `max_ttl_seconds` integer, required
  - `name` string, required
  - `policy` SandboxAccessPolicy, required: Exact destination and request scope. The broker must validate this again against its supported protocols before installing a policy.
    - `delivery` CredentialDelivery, nullable: How a stored credential is presented to the destination, plus any fixed headers the API requires. Changing it changes the policy, so consent given for the previous delivery does not carry over.
      - `format` union: The credential is one stored secret. Formats differ only in how it is sent.
        - object: `Authorization: Bearer <credential>`.
          - `method` 'bearer', required
        - object: `<name>: <prefix><credential>`, for example `x-api-key`.
          - `method` 'header', required
          - `name` string, required
          - `prefix` string, nullable
        - object: `Authorization: Basic base64(<username>:<credential>)` with a fixed username.
          - `method` 'basic_token', required
          - `username` string, required
        - object: `Authorization: Basic base64(<credential>)`; the stored credential is `username:password`.
          - `method` 'basic', required
      - `headers` RequestHeader[]: Fixed, non-secret headers sent with every request, such as an API version. At most 16; values are printable ASCII and never templates.
        - `name` string, required
        - `value` string, required
    - `github_repository` GithubRepositoryAccess, nullable: Immutable reference to an explicitly selected GitHub connection and synced repository. Changing the connection or repository requires a new policy and fresh consent.
      - `connection_id` integer, required
      - `owner` string, required
      - `protocol` 'api' | 'git', required
      - `repository` string, required
    - `methods` AccessMethod[], required
    - `origin` string, required: HTTPS origin only; no path, userinfo, query, fragment or non-443 port.
    - `path_prefixes` string[], required: Segment-boundary path prefixes, for example `/owner/private-repo`.
    - `provider` 'github' | 'gitlab' | 'openai' | 'anthropic' | 'stripe' | 'resend' | 'sendgrid' | 'vercel' | 'netlify' | 'mistral' | 'groq', nullable
  - `project_id` integer, nullable
  - `updated_at` string, date-time, required
  - `version` integer, required

## Other responses

- `400`
- `401`
- `403`
- `404`
- `409`
- `500`

## Changes

- **2026-11-14** `3d5be996525d`: 1 info
  - endpoint added
- **2026-11-14** `101ef74660bc`: 1 breaking
  - api path removed without deprecation
- **2026-11-13** `9093c4f2c4cd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/access-services/:service_id/put.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
