---
title: "Set machine as org default"
method: PUT
path: "/api/v1/machines/{id}/set-default"
tags: ["Machines"]
---

# Set machine as org default

`PUT /api/v1/machines/{id}/set-default`

Set machine as org default.

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

## Path parameters

- `id` string, required

## Headers

- `Accept` string

## Response `200`

OK

- SetDefaultMachineResponse — SetDefaultMachineResponse schema
  - `data` object
    - `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
  - `message` string
  - `status` string

## Other responses

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

---

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