---
title: "Calls SPIRE server `spire-server entry create`"
method: POST
path: "/api/v1/spire/entries"
---

# Calls SPIRE server `spire-server entry create`

`POST /api/v1/spire/entries`

Create registration entries

## Request body

- object
  - `entries` Entry[]
    - `id` string
    - `spiffe_id` SpiffeId
      - `path` string
      - `trust_domain` string
    - `parent_id` SpiffeId
      - `path` string
      - `trust_domain` string
    - `selectors` Selector[]
      - `type` string
      - `value` string
    - `x509_svid_ttl` integer
    - `created_at` integer
    - `admin` boolean
    - `dns_names` string[]
    - `downstream` boolean
    - `expires_at` integer
    - `federates_with` string[]

## Response `200`

OK

- object
  - `results` object[]
    - `status` union
      - SpireStatusOk
        - `message` string
      - SpireStatusError
        - `code` integer
        - `message` string
    - `entry` Entry
      - `id` string
      - `spiffe_id` SpiffeId
        - `path` string
        - `trust_domain` string
      - `parent_id` SpiffeId
        - `path` string
        - `trust_domain` string
      - `selectors` Selector[]
        - `type` string
        - `value` string
      - `x509_svid_ttl` integer
      - `created_at` integer
      - `admin` boolean
      - `dns_names` string[]
      - `downstream` boolean
      - `expires_at` integer
      - `federates_with` string[]

## Other responses

- `default` — Unexpected error

## Changes

- **2024-09-09** `8c82d8b35751` — 1 breaking, 3 warning, 2 info
  - the request's body type/format changed from ``/`` to `object`/``
  - removed `#/components/schemas/entry, subschema #2` from the request body `allOf` list
  - removed the optional property `results/items/entry` from the response with the `200` status
  - removed the optional property `results/items/status` from the response with the `200` status
  - …2 more
- **2024-08-27** `fdb43e4a9853` — 2 breaking, 1 warning, 3 info
  - added `#/components/schemas/entry, subschema #2` to the request body `allOf` list
  - the request's body type/format changed from `object`/`` to ``/``
  - removed the request property `entries`
  - added the optional property `results/items/entry` to the response with the `200` status
  - …2 more

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