---
title: "Calls SPIRE server `spire-server agent ban` command"
method: POST
path: "/api/v1/spire/agents/ban"
---

# Calls SPIRE server `spire-server agent ban` command

`POST /api/v1/spire/agents/ban`

Ban attested node given spiffeID so node is not able to re-attest

## Request body

- object
  - `id` SpiffeId
    - `path` string
    - `trust_domain` string

## Response `200`

OK

- string

## Other responses

- `default` — Unexpected error

## Changes

- **2024-09-09** `8c82d8b35751` — 2 warning, 1 info
  - removed the request property `path`
  - removed the request property `trust_domain`
  - added the new optional request property `id`
- **2024-08-27** `fdb43e4a9853` — 1 warning, 2 info
  - removed the request property `id`
  - added the new optional request property `path`
  - added the new optional request property `trust_domain`

[Change history](https://skmtc.dev/spiffe/apis/tornjak/changes/api/v1/spire/agents/ban/post.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)
