---
title: "Set new settings to a working camera"
method: PATCH
path: "/api/v1/cameras/{id}/config"
---

# Set new settings to a working camera

`PATCH /api/v1/cameras/{id}/config`

## 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

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `503` — Service Unavailable

## Changes

- **2023-05-02** `65188ef36d05` — 1 info
  - added the new optional request property `focus`
- **2022-12-14** `f1205c950e45` — 2 breaking, 6 info
  - removed the enum value `EVERY_10_MIN` of the request property `trigger_scheme`
  - removed the enum value `ON_LAYER_CHANGE` of the request property `trigger_scheme`
  - added the new `EACH_LAYER` enum value to the request property `trigger_scheme`
  - added the new `FIFTH_LAYER` enum value to the request property `trigger_scheme`
  - …4 more
- **2022-11-15** `c1e419cc0298` — 1 info
  - endpoint added
- **2021-02-22** `30eda14983ed` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/prusa3d/apis/prusalink-web/changes/api/v1/cameras/:id/config/patch.md)

---

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