← Technical API reference

Backend resource · STATIC DECLARATIONS

Token API reference · mansoq-core-teleicu

Static source contract for Token: 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-core-teleicu at /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/. verified core mount in config/urls.py This is an alternative core contract, not proof that the primary core uses the same behavior. 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/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/ list declared/inherited method
POST /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/ create declared/inherited method
GET /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/{external_id}/ retrieve declared/inherited method
PUT /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/{external_id}/ update declared/inherited method
PATCH /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/{external_id}/ partial_update declared/inherited method
DELETE /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/{external_id}/ destroy declared/inherited method
POST /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/upsert/ upsert @action declaration
POST /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/{external_id}/set_next/ set_next @action declaration

list · GET

GET /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/ — action list. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path facility_external_id router lookup string; semantic ID validation requires handler/schema review true
path token_queue_external_id router lookup string; semantic ID validation requires handler/schema review true

response: TokenReadSpec. 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
category dict true No extra constraint extracted
sub_queue dict true No extra constraint extracted
note str true No extra constraint extracted
patient dict true No extra constraint extracted
number int true No extra constraint extracted
status TokenStatusOptions true No extra constraint extracted
queue TokenQueueReadSpec true No extra constraint extracted

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

Declared refusal/error evidence: PermissionDenied: You do not have permission to list token.

create · POST

POST /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/ — action create. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path facility_external_id router lookup string; semantic ID validation requires handler/schema review true
path token_queue_external_id router lookup string; semantic ID validation requires handler/schema review true

request: TokenGenerateSpec. 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
patient UUID4 | None false No extra constraint extracted
category UUID4 true No extra constraint extracted
note str | None false No extra constraint extracted
sub_queue UUID4 | None false No extra constraint extracted

response: TokenRetrieveSpec. 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
category dict true No extra constraint extracted
sub_queue dict true No extra constraint extracted
note str true No extra constraint extracted
patient dict true No extra constraint extracted
number int true No extra constraint extracted
status TokenStatusOptions true No extra constraint extracted
queue TokenQueueReadSpec true No extra constraint extracted
created_by UserSpec true No extra constraint extracted
updated_by UserSpec | None false No extra constraint extracted
booking dict true No extra constraint extracted
resource_type str true No extra constraint extracted
resource dict true No extra constraint extracted
encounter dict | None false No extra constraint extracted

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

Declared refusal/error evidence: PermissionDenied: You do not have permission to list token; PermissionDenied: You do not have permission to create token; ValidationError: Sub Queue already has a current token; ValidationError: Category and Queue are not in the same facility; ValidationError: Sub Queue and Queue are not in the same facility; ValidationError: Sub Queue and Queue are not in the same resource.

retrieve · GET

GET /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/{external_id}/ — action retrieve. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path facility_external_id router lookup string; semantic ID validation requires handler/schema review true
path token_queue_external_id router lookup string; semantic ID validation requires handler/schema review true
path external_id router lookup string; semantic ID validation requires handler/schema review true

response: TokenRetrieveSpec. 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_list_token. Helper/queryset evidence is included; this is not proof of complete security review.

Declared refusal/error evidence: PermissionDenied: You do not have permission to list token; PermissionDenied: You do not have permission to read token; ValidationError: Token does not belong to the specified queue.

update · PUT

PUT /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/{external_id}/ — action update. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path facility_external_id router lookup string; semantic ID validation requires handler/schema review true
path token_queue_external_id router lookup string; semantic ID validation requires handler/schema review true
path external_id router lookup string; semantic ID validation requires handler/schema review true

request: TokenUpdateSpec. 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
status TokenStatusOptions | None false No extra constraint extracted
note str | None false No extra constraint extracted
sub_queue UUID4 | None true No extra constraint extracted

response: TokenRetrieveSpec. 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_list_token, can_write_token. Helper/queryset evidence is included; this is not proof of complete security review.

Declared refusal/error evidence: PermissionDenied: You do not have permission to list token; PermissionDenied: You do not have permission to update token; ValidationError: Token does not belong to the specified queue; ValidationError: Sub Queue already has a current token; ValidationError: Sub Queue and Queue are not in the same facility; ValidationError: Sub Queue and Queue are not in the same resource.

partial_update · PATCH

PATCH /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/{external_id}/ — action partial_update. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path facility_external_id router lookup string; semantic ID validation requires handler/schema review true
path token_queue_external_id router lookup string; semantic ID validation requires handler/schema review true
path external_id router lookup string; semantic ID validation requires handler/schema review true

request: TokenUpdateSpec. 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: TokenRetrieveSpec. 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_list_token, can_write_token. Helper/queryset evidence is included; this is not proof of complete security review.

Declared refusal/error evidence: PermissionDenied: You do not have permission to list token; ValidationError: Sub Queue already has a current token; PermissionDenied: You do not have permission to update token; ValidationError: Token does not belong to the specified queue; ValidationError: Sub Queue and Queue are not in the same facility; ValidationError: Sub Queue and Queue are not in the same resource.

destroy · DELETE

DELETE /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/{external_id}/ — action destroy. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path facility_external_id router lookup string; semantic ID validation requires handler/schema review true
path token_queue_external_id router lookup string; semantic ID validation requires handler/schema review true
path external_id router lookup string; semantic ID validation requires handler/schema review true

Observed authorization checks: can_list_token, can_write_token. 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 list token; PermissionDenied: You do not have permission to update token; ValidationError: Token does not belong to the specified queue.

upsert · POST

POST /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/upsert/ — action upsert. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path facility_external_id router lookup string; semantic ID validation requires handler/schema review true
path token_queue_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
body datapoints not declared at read site not established

Observed authorization checks: can_list_token, can_write_token. 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 list token; ValidationError: Sub Queue already has a current token; PermissionDenied: You do not have permission to update token; ValidationError: Token does not belong to the specified queue; ValidationError: Sub Queue and Queue are not in the same facility; ValidationError: Sub Queue and Queue are not in the same resource; PermissionDenied: You do not have permission to create token; ValidationError: Category and Queue are not in the same facility.

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

set_next · POST

POST /api/v1/facility/{facility_external_id}/token/queue/{token_queue_external_id}/token/{external_id}/set_next/ — action set_next. static contract extracted; runtime/permission/payload behavior review pending.

Path and deployment-context parameters:

Location Parameter Type Required
path facility_external_id router lookup string; semantic ID validation requires handler/schema review true
path token_queue_external_id router lookup string; semantic ID validation requires handler/schema review true
path external_id router lookup string; semantic ID validation requires handler/schema review true

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

Declared refusal/error evidence: PermissionDenied: You do not have permission to list token; PermissionDenied: You do not have permission to update token; ValidationError: Token does not belong to the specified queue.

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.