---
title: "Set application servers"
method: PUT
path: "/api/v1/deploy/application/servers"
tags: ["Deploy"]
---

# Set application servers

`PUT /api/v1/deploy/application/servers`

Set application servers.

Auth: Required (bearer token).
Scope: Organization-scoped in authenticated context.
Side effects: May mutate server state.

## Headers

- `Accept` string

## Response `200`

OK

- ApplicationServersResponse — ApplicationServersResponse schema
  - `data` object[]
    - `application_id` string, uuid
    - `created_at` string, date-time
    - `id` string, uuid
    - `is_primary` boolean
    - `server` object, nullable
      - `auth_method` string
      - `created_at` string, date-time
      - `deleted_at` string, date-time, nullable
      - `description` string, nullable
      - `fingerprint` string, nullable
      - `host` string, nullable
      - `id` string, uuid
      - `is_active` boolean
      - `is_default` boolean
      - `key_size` integer, nullable
      - `key_type` string, nullable
      - `last_used_at` string, date-time, nullable
      - `name` string
      - `organization_id` string, uuid
      - `port` integer, nullable
      - `proxy_host` string, nullable
      - `public_key` string, nullable
      - `updated_at` string, date-time
      - `user` string, nullable
    - `server_id` string, uuid
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request _(validation or deserialization error)_
- `500` — Internal Server Error _(panics)_
- `default`

## Changes

- **2026-04-26** `09f18af670c4` — 2 breaking, 4 info
  - the request property `application_id` became required
  - the request property `server_ids` became required
  - api tag `Deploy` added
  - api tag `api/v1/deploy` removed
  - …2 more
- **2026-04-06** `6d5e3b7979d1` — 2 warning
  - removed the optional property `data/items/server/organization` from the response with the `200` status (media type: application/json)
  - removed the optional property `data/items/server/organization` from the response with the `200` status (media type: application/xml)
- **2026-04-02** `2beb810c5221` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/nixopus/apis/openapi/changes/api/v1/deploy/application/servers/put.md)

---

[API](https://skmtc.dev/nixopus/apis/openapi.md) · [All operations](https://skmtc.dev/nixopus/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nixopus/openapi/revisions/c5bacaea7239/schema)
