---
title: "Dock Camera Switch"
method: POST
path: "/openapi/v2.0/device/change-camera"
tags: ["Real-time Control/Payload Control/Camera Control", "Device Management"]
---

# Dock Camera Switch

`POST /openapi/v2.0/device/change-camera`

## Request

- Base URL: `` (relative, and it does not resolve against the document’s source URL)
- URL: `/openapi/v2.0/device/change-camera`
- Auth: none required

Supports switching the dock camera between interior and exterior cameras.
:::tip[]
camera_index and camera_position can be obtained from data.list.gateway:.camera_list in the Get Device List Under Organization interface.
:::

## Headers

- `X-User-Token` string, required
- `X-Project-Uuid` string, required
- `X-Request-Id` string
- `X-Language` string

## Request body

- object
  - `sn` string, required: Dock SN
  - `camera_index` string, required: Camera Index
  - `camera_position` string: Camera Position

## Response `200`

- object
  - `code` integer: Non-zero Indicates Exception
  - `message` string: Message Prompt

## Other responses

- `400`: Invalid Request Parameters
- `500`: Server Internal Error

---

[API](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud.md) - [All operations](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud/revisions/aeef0010be34?raw)
