---
title: "Create a terminator resource"
method: POST
path: "/terminators"
tags: ["Terminator"]
---

# Create a terminator resource

`POST /terminators`

Create a terminator resource. Requires admin access.

## Request body

- TerminatorCreate
  - `service` string, required
  - `router` string, required
  - `binding` string, required
  - `address` string, required
  - `instanceId` string
  - `instanceSecret` string, byte
  - `cost` integer
  - `precedence` 'default' | 'required' | 'failed'
  - `tags` Tags
  - `hostId` string

## Response `201`

The create request was successful and the resource has been added at the following location

- CreateEnvelope
  - `meta` Meta
    - `filterableFields` string[]
    - `pagination` Pagination
      - `limit` number, required
      - `offset` number, required
      - `totalCount` number, required
    - `apiEnrollmentVersion` string
    - `apiVersion` string
  - `data` CreateLocation
    - `_links` Links — A map of named links
    - `id` string

## Other responses

- `400` — The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
- `401` — The currently supplied session does not have the correct access rights to request this resource
- `429` — The resource requested is rate limited and the rate limit has been exceeded
- `503` — The request could not be completed due to the server being busy or in a temporarily bad state

---

[API](https://skmtc.net/openziti/apis/ziti-fabric.md) · [All operations](https://skmtc.net/openziti/apis/ziti-fabric/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openziti/ziti-fabric/revisions/b899875c8f57/schema)
