Preset
Definition
Preset Type
- JSON
- Typescript
- Kotlin
preset.json
{
"id": 0,
"camID": 0,
"presetName": "",
"presetDescription": "",
"channel": 0,
"presetIndex": 0,
"createdAt": "",
"updatedAt": "",
}
Get Presets
- Curl
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/preset/?\$filter=&\$orderBy=&\$page=1&\$pageSize=10" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Get Preset
- Curl
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/preset/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Apply Preset.ID
- Curl
- Typescript
- Kotlin
curl -X POST "https://${baseUrl}/apply/preset/id/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Create Preset
- Curl
- Typescript
- Kotlin
curl -X POST "https://${baseUrl}/preset/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @preset.json
info
preset.json
{
"camID": 0,
"presetName": "",
"presetDescription": "",
"channel": 0,
"presetIndex": 0,
}
tip
success status: 201
Update Preset
- Curl
- Typescript
- Kotlin
curl -X PUT "https://${baseUrl}/preset/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @preset.json
info
preset.json
{
"camID": 0,
"presetName": "",
"presetDescription": "",
"channel": 0,
"presetIndex": 0,
}
Update Preset Partial
- Curl
- Typescript
- Kotlin
curl -X PATCH "https://${baseUrl}/preset/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Attrs: camID,presetName,presetDescription,channel,presetIndex" \
-d @preset.json
info
preset.json
{
"camID": 0,
"presetName": "",
"presetDescription": "",
"channel": 0,
"presetIndex": 0,
}
Destroy Preset
- Curl
- Typescript
- Kotlin
curl -X DELETE "https://${baseUrl}/preset/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"