---
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

## Changes

- **2024-09-09** `8c82d8b35751` — 1 info
  - endpoint added
- **2024-08-27** `fdb43e4a9853` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/spiffe/apis/tornjak/changes/api/v1/spire/federations/bundles/patch.md)

---

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