---
title: "Setup a new camera or fix a broken one"
method: POST
path: "/api/v1/cameras/{id}"
---

# Setup a new camera or fix a broken one

`POST /api/v1/cameras/{id}`

## Request body

- CameraConfigSet — Camera configuration to set
  - `name` string — Name of the camera
  - `trigger_scheme` 'TEN_SEC' | 'THIRTY_SEC' | 'SIXTY_SEC' | 'EACH_LAYER' | 'FIFTH_LAYER' | 'MANUAL' — When the snapshot is taken
  - `resolution` object
    - `width` integer
    - `height` integer
  - `rotation` integer — Current rotation of the output image
  - `focus` number — Focus of the camera (0.0 - 1.0)
  - `exposure` number
  - `send_to_connect` boolean

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `503` — Service Unavailable

---

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