---
title: "Create ONVIF device PTZ preset based on current position"
method: POST
path: "/cameras/{id}/set-preset/"
tags: ["cameras"]
---

# Create ONVIF device PTZ preset based on current position

`POST /cameras/{id}/set-preset/`

Use this method to create ONVIF device PTZ preset based on current position.

## Path parameters

- `id` integer, required

## Request body

- OnvifSetPresetRequestRequest
  - `profile_token` string, required — Onvif profile token
  - `preset_token` string, required — Onvif PTZ preset token
  - `preset_name` string, required — Onvif PTZ preset name

## Response `200`

- OnvifSetPresetResponse
  - `preset_token` string, required — Onvif PTZ preset token

---

[API](https://skmtc.dev/ntechlab/apis/internal-api-documentation.md) · [All operations](https://skmtc.dev/ntechlab/apis/internal-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ntechlab/internal-api-documentation/revisions/fe217a895bc7/schema)
