Backend resource · STATIC DECLARATIONS
Availability API reference · mansoq-core-teleicu
Static source contract for Availability: 2 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}/schedule/{schedule_external_id}/availability/. 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 |
|---|---|---|---|
| POST | /api/v1/facility/{facility_external_id}/schedule/{schedule_external_id}/availability/ |
create | declared/inherited method |
| DELETE | /api/v1/facility/{facility_external_id}/schedule/{schedule_external_id}/availability/{external_id}/ |
destroy | declared/inherited method |
create · POST
POST /api/v1/facility/{facility_external_id}/schedule/{schedule_external_id}/availability/ — 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 | schedule_external_id | router lookup string; semantic ID validation requires handler/schema review | true |
request: AvailabilityCreateSpec. 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 |
| slot_type | SlotTypeOptions | true | No extra constraint extracted |
| slot_size_in_minutes | int | None | true | ge: 1 |
| tokens_per_slot | int | None | true | ge: 1 |
| create_tokens | bool | false | No extra constraint extracted |
| reason | str | false | No extra constraint extracted |
| availability | list[AvailabilityDateTimeSpec] | true | No extra constraint extracted |
| schedule | UUID4 | true | No extra constraint extracted |
response: AvailabilityForScheduleSpec. 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 |
| slot_type | SlotTypeOptions | true | No extra constraint extracted |
| slot_size_in_minutes | int | None | true | ge: 1 |
| tokens_per_slot | int | None | true | ge: 1 |
| create_tokens | bool | false | No extra constraint extracted |
| reason | str | false | No extra constraint extracted |
| availability | list[AvailabilityDateTimeSpec] | true | No extra constraint extracted |
Observed authorization checks: can_list_schedule, can_write_schedule. 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 schedule; PermissionDenied: You do not have permission to update schedule.
destroy · DELETE
DELETE /api/v1/facility/{facility_external_id}/schedule/{schedule_external_id}/availability/{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 | schedule_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_schedule, can_write_schedule. 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 schedule; ValidationError: Cannot delete availability as there are future bookings associated with it; PermissionDenied: You do not have permission to update schedule.
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.
- repositories/teleicu/mansoq-core-teleicu/config/api_router.py:265
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/scheduling/schedule.py:294
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:133
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/scheduling/schedule.py:304
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/scheduling/schedule.py:350
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:139
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/scheduling/schedule.py:299
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/scheduling/schedule.py:325
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:343
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/scheduling/schedule.py:329
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:136
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:322
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:327
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/resources/scheduling/schedule/spec.py:99
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/resources/scheduling/schedule/spec.py:45
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:258
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/scheduling/schedule.py:357
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:255
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/scheduling/schedule.py:334