---
title: "Sets federation bundles"
method: PATCH
path: "/api/v1/spire/federations/bundles"
---

# Sets federation bundles

`PATCH /api/v1/spire/federations/bundles`

Updates if bundle found, else returns error

## Request body

- object
  - `bundle` Bundle[]
    - `trust_domain` string
    - `x509_authorities` object[]
      - `asn1` string
    - `jwt_authorities` object[]
      - `public_key` string
      - `key_id` string
      - `expires_at` integer
    - `sequence_number` integer

## Response `200`

OK

- object
  - `results` object[]
    - `status` union
      - SpireStatusOk
        - `message` string
      - SpireStatusError
        - `code` integer
        - `message` string
    - `bundle` Bundle
      - `trust_domain` string
      - `x509_authorities` object[]
        - `asn1` string
      - `jwt_authorities` object[]
        - `public_key` string
        - `key_id` string
        - `expires_at` integer
      - `sequence_number` integer

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.net/spiffe/apis/tornjak.md) · [All operations](https://skmtc.net/spiffe/apis/tornjak/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spiffe/tornjak/versions/5d58d68f79cd/schema)
