← Technical API reference

Backend resource · STATIC DECLARATIONS

Camera Position Preset API reference · mansoq-teleicu-devices

Static source contract for Camera Position Preset: 8 declared or inherited operation mappings, schema/field evidence and authorization/refusal references. Deployment and behavioral review remain explicit.

Static API contract — behavior review pending. Source baseline f6e9f05f76d4.

Enable JavaScript to inspect structured operation, parameter, schema and permission evidence. Download this reference and its evidence.

Declared route and availability

This resource is declared in mansoq-teleicu-devices at /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/. plugin/local mount; actual prefix and enablement require deployment verification A registered path and an indexed handler do not prove deployment availability, user permission or production readiness.

Operation map

Method Path Action Evidence
GET /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/ list declared/inherited method
POST /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/ create declared/inherited method
GET /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/{external_id}/ retrieve declared/inherited method
PUT /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/{external_id}/ update declared/inherited method
PATCH /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/{external_id}/ partial_update declared/inherited method
DELETE /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/{external_id}/ destroy declared/inherited method
POST /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/upsert/ upsert @action declaration
POST /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/{external_id}/set_default/ set_default @action declaration

list · GET

GET /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/ — action list. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path camera_external_id string/default converter true
deployment mount installed_plugin_prefix deployment-selected mount prefix true

Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):

Location Field Declared/inferred read type Requiredness evidence
query location not declared at read site direct indexing; validation may be upstream

response: PositionPresetReadSpec. Declared fields below; inherited fields are retained in the schema inventory.

Field Type Required Constraints
meta dict false No extra constraint extracted
id UUID4 | None false No extra constraint extracted
name str true No extra constraint extracted
ptz PTZPayloadSpec true No extra constraint extracted
sort_index int | None false No extra constraint extracted
location FacilityLocationRetrieveSpec true No extra constraint extracted
is_default bool true No extra constraint extracted

Observed authorization checks: can_read_devices_on_location, can_read_device. Helper/queryset evidence is included; this is not proof of complete security review.

Declared refusal/error evidence: PermissionDenied: You do not have permission to get position presets of this location; PermissionDenied: You do not have permission to update device.

create · POST

POST /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/ — action create. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path camera_external_id string/default converter true
deployment mount installed_plugin_prefix deployment-selected mount prefix true

Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):

Location Field Declared/inferred read type Requiredness evidence
query location not declared at read site direct indexing; validation may be upstream
body form_submission not declared at read site not established

request: PositionPresetCreateSpec. Declared fields below; inherited fields are retained in the schema inventory.

Field Type Required Constraints
meta dict false No extra constraint extracted
id UUID4 | None false No extra constraint extracted
name str true No extra constraint extracted
ptz PTZPayloadSpec true No extra constraint extracted
sort_index int | None false No extra constraint extracted
location UUID4 true No extra constraint extracted
camera UUID4 true No extra constraint extracted

response: PositionPresetReadSpec. Declared fields below; inherited fields are retained in the schema inventory.

The declared field table is shown at its first occurrence in this reference; this operation links the same schema.

Observed authorization checks: can_read_devices_on_location, can_read_device, can_manage_device. Helper/queryset evidence is included; this is not proof of complete security review.

Declared refusal/error evidence: PermissionDenied: You do not have permission to get position presets of this location; PermissionDenied: You do not have permission to update device.

retrieve · GET

GET /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/{external_id}/ — action retrieve. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path camera_external_id string/default converter true
deployment mount installed_plugin_prefix deployment-selected mount prefix true
path external_id router lookup string; semantic ID validation requires handler/schema review true

Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):

Location Field Declared/inferred read type Requiredness evidence
query location not declared at read site direct indexing; validation may be upstream

response: PositionPresetReadSpec. Declared fields below; inherited fields are retained in the schema inventory.

The declared field table is shown at its first occurrence in this reference; this operation links the same schema.

Observed authorization checks: can_read_devices_on_location, can_read_device. Helper/queryset evidence is included; this is not proof of complete security review.

Declared refusal/error evidence: PermissionDenied: You do not have permission to get position presets of this location; PermissionDenied: You do not have permission to update device.

update · PUT

PUT /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/{external_id}/ — action update. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path camera_external_id string/default converter true
deployment mount installed_plugin_prefix deployment-selected mount prefix true
path external_id router lookup string; semantic ID validation requires handler/schema review true

Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):

Location Field Declared/inferred read type Requiredness evidence
query location not declared at read site direct indexing; validation may be upstream

request: PositionPresetUpdateSpec. Declared fields below; inherited fields are retained in the schema inventory.

Field Type Required Constraints
meta dict false No extra constraint extracted
id UUID4 | None false No extra constraint extracted
name str true No extra constraint extracted
ptz PTZPayloadSpec true No extra constraint extracted
sort_index int | None false No extra constraint extracted
location UUID4 true No extra constraint extracted

response: PositionPresetReadSpec. Declared fields below; inherited fields are retained in the schema inventory.

The declared field table is shown at its first occurrence in this reference; this operation links the same schema.

Observed authorization checks: can_read_devices_on_location, can_read_device, can_manage_device. Helper/queryset evidence is included; this is not proof of complete security review.

Declared refusal/error evidence: PermissionDenied: You do not have permission to get position presets of this location; PermissionDenied: You do not have permission to update device.

partial_update · PATCH

PATCH /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/{external_id}/ — action partial_update. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path camera_external_id string/default converter true
deployment mount installed_plugin_prefix deployment-selected mount prefix true
path external_id router lookup string; semantic ID validation requires handler/schema review true

Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):

Location Field Declared/inferred read type Requiredness evidence
query location not declared at read site direct indexing; validation may be upstream

request: PositionPresetUpdateSpec. Declared fields below; inherited fields are retained in the schema inventory.

The declared field table is shown at its first occurrence in this reference; this operation links the same schema.

response: PositionPresetReadSpec. Declared fields below; inherited fields are retained in the schema inventory.

The declared field table is shown at its first occurrence in this reference; this operation links the same schema.

Observed authorization checks: can_read_devices_on_location, can_read_device. Helper/queryset evidence is included; this is not proof of complete security review.

Declared refusal/error evidence: PermissionDenied: You do not have permission to get position presets of this location; PermissionDenied: You do not have permission to update device.

destroy · DELETE

DELETE /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/{external_id}/ — action destroy. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path camera_external_id string/default converter true
deployment mount installed_plugin_prefix deployment-selected mount prefix true
path external_id router lookup string; semantic ID validation requires handler/schema review true

Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):

Location Field Declared/inferred read type Requiredness evidence
query location not declared at read site direct indexing; validation may be upstream

Observed authorization checks: can_read_devices_on_location, can_read_device, can_manage_device. Helper/queryset evidence is included; this is not proof of complete security review.

Explicit response statuses in observed code: status.HTTP_204_NO_CONTENT. Other branches/framework exception handling may differ.

Declared refusal/error evidence: PermissionDenied: You do not have permission to get position presets of this location; PermissionDenied: You do not have permission to update device.

upsert · POST

POST /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/upsert/ — action upsert. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path camera_external_id string/default converter true
deployment mount installed_plugin_prefix deployment-selected mount prefix true

Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):

Location Field Declared/inferred read type Requiredness evidence
body datapoints not declared at read site not established
query location not declared at read site direct indexing; validation may be upstream
body form_submission not declared at read site not established

Observed authorization checks: can_read_devices_on_location, can_read_device, can_manage_device. Helper/queryset evidence is included; this is not proof of complete security review.

Explicit response statuses in observed code: 400. Other branches/framework exception handling may differ.

Declared refusal/error evidence: RestFrameworkValidationError: Invalid request data; RestFrameworkValidationError: No datapoints provided; RestFrameworkValidationError: Too many datapoints provided; PermissionDenied: You do not have permission to get position presets of this location; PermissionDenied: You do not have permission to update device.

Conditional gates: conditional/computed expression; inspect pinned declaration comparison settings.MAX_DATAPOINTS_PER_UPSERT.

set_default · POST

POST /api/{installed_plugin_prefix}/{camera_external_id}/position_presets/{external_id}/set_default/ — action set_default. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path camera_external_id string/default converter true
deployment mount installed_plugin_prefix deployment-selected mount prefix true
path external_id router lookup string; semantic ID validation requires handler/schema review true

Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):

Location Field Declared/inferred read type Requiredness evidence
query location not declared at read site direct indexing; validation may be upstream

Observed authorization checks: can_read_devices_on_location, can_read_device, can_manage_device. Helper/queryset evidence is included; this is not proof of complete security review.

Explicit response statuses in observed code: 200. Other branches/framework exception handling may differ.

Declared refusal/error evidence: PermissionDenied: You do not have permission to get position presets of this location; PermissionDenied: You do not have permission to update device.

Integration review checklist

Confirm the installed route and full schema; review authentication, organization/facility scoping, all accepted fields, value-state and date/time semantics, idempotency, pagination, response/exception branches and the allowed correction/reversal workflow. Test positive and negative cases with synthetic data. This source reference does not establish external certification or replace an illustrated user procedure.

Pinned source evidence

Links require access to the private source repository.