Skip to main content
POST
/
api
/
cameras
/
{cameraId}
/
actions
/
focus-near-far
Step-based focus adjustment
curl --request POST \
  --url http://{host}:{port}/api/cameras/{cameraId}/actions/focus-near-far \
  --header 'Content-Type: application/json' \
  --data '{
  "step": 0
}'
{
  "success": true,
  "message": "<string>",
  "camera": {
    "connected": false,
    "model": "ILCE-7M4",
    "id": "D06CE05E3323"
  },
  "data": {}
}

Documentation Index

Fetch the complete documentation index at: https://crsdk.app/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

cameraId
string
required

Camera identifier (e.g. D10F60149B0C)

Body

application/json
step
integer
required

Negative = near, positive = far. Magnitude controls speed. 0 is invalid.

Required range: -7 <= x <= 7

Response

Focus command executed

Generic envelope returned by most camera operations. The shape of data varies per endpoint — most operations return an empty or null data; operations that return structured data document a specific shape. SDK-generated types can treat data as an opaque map for generic endpoints.

success
boolean
required
message
string
camera
object

Camera info embedded in API responses

data
object