Placement API Reference
Placement and foster care management: foster homes, removal episodes, placements, kinship evaluations, and matching.
Endpoints
AFCARS Export
Service-to-service: one page of AFCARS source rows (episodes, arrangements and five fact kinds) for a window
GET /v1/placement/afcars-export
The cohort is every child with a removal episode live at as_of whose removal is before to and whose exit is absent or at or after from (closed at from); each cohort child’s rows of seven kinds ride along — episode (1), arrangement (2), trafficking_statement (3), law_enforcement_report (4), health_window (5), education_window (6) and health_assessment_visit (7), each under the anchor its row schema names — ordered (child_id, kind ordinal, row id). from and to are local midnights on the jurisdiction clock; every date is local to the service’s timezone and the period end is the local date before to. as_of is at least five minutes in the past and is held fixed across one walk. Two as-of classes: (1) ledger rows — the episode, its removal response, its exit response, trafficking statements and reports, health and education windows — are those recorded at or before as_of and not retired by then, and a window closed after as_of reads open (effective_until null); (2) an arrangement is one activated at or before as_of and not retracted by then, a caregiver binding one created at or before as_of, and a health record one created at or before as_of and not deleted by then; an arrangement’s ended_at and a binding’s ended_on (an end or a cancel) count only when recorded at or before as_of, else they read open, and an end written before migration 20261005120000 reads as recorded at the arrangement’s activation or the binding’s creation. An arrangement’s facts and a health record’s visit_date and health_assessment read as they stood at as_of, from the prior values each edit keeps: an edit after as_of answers the value it replaced, null included; the history starts with migration 20261005130000, so an edit made before it kept no prior value and an as_of before such an edit reads the edited value. An arrangement’s started_at is fixed at activation (class 2 fences it), and its placement_type, ffh_type_* columns and setting are fixed at insert, so none is edited in place. No column reads current, so the pages of one walk agree. An arrangement’s two caregiver slots are the first two distinct persons whose binding on a foster family home arrangement’s unit covers the local date of its started_at, primary role first. Each non-empty page stages exactly one placement.afcars_released audit naming the page’s distinct children, in the read’s transaction. Cache-Control: no-store. Service-only: refused unless the caller is the bare craig-reporting service principal.
| Name | In | Required | Description |
|---|---|---|---|
from |
query |
Yes |
The window’s first instant, inclusive: a local midnight (RFC 3339). |
to |
query |
Yes |
The window’s end, exclusive: a local midnight after |
as_of |
query |
Yes |
The instant every row is read as of: at least five minutes in the past (RFC 3339). Hold it fixed across every page of one walk. |
after |
query |
No |
The previous page’s |
limit |
query |
No |
Rows per page, |
-
200: One page of rows;
next= the last row’s opaque cursor when the page is full, null on exhaustion -
400:
bad-requestnaming the field:from/tonot a local midnight,fromnot beforeto,as_ofless than five minutes in the past,limitoutside 1..=1000, or a malformedaftercursor. A malformed, missing or unknown query parameter is the extractor’s value-freebad-requestproblem -
401: Missing or invalid bearer
-
403: Not a service caller, not the craig-reporting service identity, or a delegated (actor) token
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Background Jobs
Poll a background job
GET /v1/placement/jobs/{id}
The generic read-only poll of a placement background job: the job as a LOGICAL resource — state (queued / running / succeeded / failed; the last two are terminal and immutable), the current attempt and the attempts[] ledger (an interrupted / crash attempt re-queues a convergent kind up to max_attempts), the typed progress document, result (the kind’s report — for expiry_sweep the pass report — present iff succeeded), error (a CLOSED token + a categorical detail, present iff failed), and resource when the kind links its own row. Authorized on the BackgroundJob resource type: admin realm-flat, the creator (human or service principal) by assigned_worker_sub; another actor is the fleet’s typed 403; an unknown id is 404 (no existence collapse — the row is looked up before the check). Cache-Control: no-store. Never writes.
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Job id — the last segment of the |
-
200: The job (
Cache-Control: no-store) -
401: Unauthorized
-
403: Forbidden — not the creator and not admin
-
404: No such job
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Caregivers
List a unit’s caregiver bindings
GET /v1/placement/caregivers
Newest first, with current on the jurisdiction clock, whether the person holds a live portal identity, and the newest open invitation’s revoke handle (open_invitation: id, code prefix, expiry; never the code).
| Name | In | Required | Description |
|---|---|---|---|
foster_home_id |
query |
No |
The foster home unit — mutually exclusive with |
kinship_household_id |
query |
No |
The kinship household unit — mutually exclusive with
|
page |
query |
No |
1-based page number (default 1); a page past the depth cap is 400. |
per_page |
query |
No |
Rows per page (default 25, at most 500); 0 returns only the total. |
-
200: One page of bindings
-
400: Neither or both unit ids, or a page past the depth cap; a malformed query parameter (e.g. a non-UUID
foster_home_id) is the extractor’s value-freebad-requestproblem, before the handler -
401: Unauthorized
-
403: Forbidden
-
404: Unit not found
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Bind a caregiver (a cases person) to a caregiving unit
POST /v1/placement/caregivers
Exactly one of foster_home_id / kinship_household_id. The person is verified through craig-cases before the row is written; the binding is current from effective_from on the jurisdiction clock. The same client_request_id + intent replays the original 200.
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-held idempotency id (one per create attempt). |
effective_from |
date |
Yes |
First day the binding is current, on the jurisdiction clock. |
foster_home_id |
UUID (optional) |
No |
The foster home unit — mutually exclusive with |
kinship_household_id |
UUID (optional) |
No |
The kinship household unit — mutually exclusive with |
person_id |
UUID |
Yes |
The caregiver as a cases person (existence is verified through the display-name arm before the binding is written). |
role |
enum (primary, co) |
Yes |
A caregiver’s role on the unit. |
-
200: Binding created (or replayed)
-
400: Neither or both unit ids
-
401: Unauthorized
-
403: Forbidden
-
404: Unit not found
-
409: An open binding already exists for this caregiver on this unit (duplicate-resource), the dates overlap another binding of the caregiver on this unit (caregiver-binding-overlap), or the client_request_id was used for a different operation
-
422: No such person, or the foster home is a congregate provider, or a body field whose value does not deserialize, e.g. a non-UUID
person_idor an unknownrole(validation-failed; the field is named, the value never echoed) -
503: craig-cases could not confirm the person within the budget (
person-lookup-unavailable) -
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
End a caregiver binding
POST /v1/placement/caregivers/{id}/end
effective_from ⇐ ended_on ⇐ today on the jurisdiction clock; a binding not yet in effect is CANCELLED by ending it on its own effective_from (an empty interval that is never current — the row and its events stay as the record of the entry). Revokes the binding’s open invitations in the same transaction; a live portal identity stays (revoke it separately) but loses this unit at once.
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Binding id |
| Field | Type | Required | Description |
|---|---|---|---|
ended_on |
date |
Yes |
First day the binding is NOT current. |
-
200: Binding ended
-
400:
ended_onbeforeeffective_from, or after today (a binding not yet in effect admits only its owneffective_from), or the binding has already ended (invalid-state-transition) -
401: Unauthorized
-
403: Forbidden
-
404: Binding not found
-
409: The home’s admin_unit moved since authorization (
concurrent-modification— re-read and retry) -
422: An unknown body field, or a body field whose value does not deserialize, e.g. a non-date
ended_on(validation-failed; the field is named, the value never echoed) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Revoke the caregiver’s live portal identity
DELETE /v1/placement/caregivers/{id}/identity
Ends portal access for the binding’s person at once, on every unit — so the actor must be allowed to update every unit the person holds an open (current or future-dated) binding on; re-enrolment is a new invitation.
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Binding id |
-
204: Revoked
-
401: Unauthorized
-
403: Forbidden — on the binding’s unit or on any other unit the person holds an open binding on
-
404: Binding not found, or the person holds no live identity
-
409: A unit’s admin_unit moved, or the person gained a binding on another unit, since authorization (
concurrent-modification— re-read and retry) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Issue a one-time portal enrollment code on an open binding
POST /v1/placement/caregivers/{id}/invitations
The code is returned ONCE in this response and kept only as its SHA-256. A one-time secret: a replayed client_request_id answers 409 one-time-secret-already-issued naming the invitation — never the code again — for the row’s lifetime.
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Binding id |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-held idempotency id: the code is a one-time secret,
so a replay answers 409 ( |
-
200: Invitation issued — the only response carrying the code
-
400: The binding has ended (
invalid-state-transition) -
401: Unauthorized
-
403: Forbidden
-
404: Binding not found
-
409: This client_request_id already issued an invitation, or the home’s admin_unit moved since authorization (
concurrent-modification— re-read and retry) -
422: An unknown body field, or a body field whose value does not deserialize, e.g. a non-UUID
client_request_id(validation-failed; the field is named, the value never echoed) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Service-to-service: a portal subject’s current caregiver bindings
GET /v1/placement/internal/caregiver-bindings
The bindings current TODAY on the jurisdiction clock whose person holds a live portal identity for sub, with the unit ids. Service-only: a worker bearer is refused outright; a service call relaying X-Craig-Actor is refused 403 before the engine or any read; a bare service principal passes only the caregiver ruleset’s caregiver_bindings row (claims.service_id == 'craig-financial'). Unpaged (bounded by the ledger’s one-open-binding-per-unit uniques); Cache-Control: no-store.
| Name | In | Required | Description |
|---|---|---|---|
sub |
query |
Yes |
The portal subject (the identity provider’s |
-
200: The subject’s current bindings (possibly none)
-
400: A malformed query parameter (e.g. a missing or non-UUID
sub) is the extractor’s value-freebad-requestproblem, before the handler -
401: Missing or invalid bearer
-
403: Not a service caller; a relayed (
X-Craig-Actor) call; or a bare service principal the row does not admit; a portal subject meets the fleet guard first -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Revoke an open invitation
DELETE /v1/placement/invitations/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Invitation id |
-
204: Revoked
-
400: Already redeemed or revoked (
invalid-state-transition) -
401: Unauthorized
-
403: Forbidden
-
404: Invitation not found
-
409: The home’s admin_unit moved since authorization (
concurrent-modification— re-read and retry) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Education
The child’s education-facts window in force on a date (absent as_of = today on the jurisdiction clock)
GET /v1/placement/children/{child_id}/education-facts
| Name | In | Required | Description |
|---|---|---|---|
child_id |
path |
Yes |
The child |
as_of |
query |
No |
The anchor date; absent = today on the jurisdiction clock. The row
in force is the live row with |
-
200: The live window in force on as_of
-
204: No live window is in force on as_of
-
400: A malformed query parameter (e.g. a non-date
as_of) is the extractor’s value-freebad-requestproblem, before the handler; a date before -4713-11-24 (PostgreSQL’s minimum) isledger-date-before-minimum -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Record the child’s education facts from effective_from: a change (no effective_until) or a backfill
POST /v1/placement/children/{child_id}/education-facts
| Name | In | Required | Description |
|---|---|---|---|
child_id |
path |
Yes |
The child (any child id, as an education record names it) |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
educational_level |
enum (not_school_age, kindergarten, 1st_grade, 2nd_grade, 3rd_grade, 4th_grade, 5th_grade, 6th_grade, 7th_grade, 8th_grade, 9th_grade, 10th_grade, 11th_grade, 12th_grade, ged, post_secondary_education_or_training, college) (optional) |
Yes |
(b)(12) the highest educational level the child completed. |
effective_from |
date |
Yes |
First day the facts hold (on or before today, jurisdiction clock). |
effective_until |
date (optional) |
No |
Present only for a backfill: the first day they no longer hold. |
school_enrollment |
enum (elementary, secondary, post_secondary_education_or_training, college, not_school_age, not_enrolled) (optional) |
Yes |
(b)(11) the child’s school enrollment. |
special_education |
enum (yes, no) (optional) |
Yes |
(b)(14) an IEP or an IFSP. |
-
200: The recorded window (or replayed — same client_request_id + intent)
-
400:
ledger-date-after-today(orledger-date-before-minimum, a date before -4713-11-24),ledger-window-invalidorledger-not-a-change -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
409:
ledger-window-overlap, or client_request_id claimed by a different operation / replayed entity gone, orconcurrent-modification(the child’s latest removal episode, or whether its unit is filled, changed since the check — re-read and retry) -
422: Validation failure (including a missing client_request_id or a missing answer key — send
nullfor unanswered) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Close the open education-facts window: the facts no longer hold from effective_until
POST /v1/placement/children/{child_id}/education-facts/{row_id}/close
| Name | In | Required | Description |
|---|---|---|---|
child_id |
path |
Yes |
The child |
row_id |
path |
Yes |
The live open window to close |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
effective_until |
date |
Yes |
The first day the facts no longer hold (after the row’s
|
-
200: The closed window (or replayed — same client_request_id + intent)
-
400:
ledger-date-after-today(orledger-date-before-minimum, a date before -4713-11-24) orledger-window-invalid -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404:
ledger-row-not-found(absent, retired or not open) -
409: client_request_id claimed by a different operation / replayed entity gone, or
concurrent-modification(the child’s latest removal episode, or whether its unit is filled, changed since the check — re-read and retry) -
422: Validation failure (including a missing client_request_id)
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Correct an education-facts window entered wrongly (the complete corrected facts; an omitted bound is kept)
POST /v1/placement/children/{child_id}/education-facts/{row_id}/corrections
| Name | In | Required | Description |
|---|---|---|---|
child_id |
path |
Yes |
The child |
row_id |
path |
Yes |
The live window to correct |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
educational_level |
enum (not_school_age, kindergarten, 1st_grade, 2nd_grade, 3rd_grade, 4th_grade, 5th_grade, 6th_grade, 7th_grade, 8th_grade, 9th_grade, 10th_grade, 11th_grade, 12th_grade, ged, post_secondary_education_or_training, college) (optional) |
Yes |
(b)(12) the highest educational level the child completed. |
effective_from |
date (optional) |
No |
A corrected window start; omitted = the predecessor’s. |
effective_until |
date (optional) |
No |
A corrected window end; omitted = the predecessor’s. |
school_enrollment |
enum (elementary, secondary, post_secondary_education_or_training, college, not_school_age, not_enrolled) (optional) |
Yes |
(b)(11) the child’s school enrollment. |
special_education |
enum (yes, no) (optional) |
Yes |
(b)(14) an IEP or an IFSP. |
-
200: The correcting window, which supersedes the corrected one (or replayed — same client_request_id + intent)
-
400:
ledger-date-after-today(orledger-date-before-minimum, a date before -4713-11-24) orledger-window-invalid -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404:
ledger-row-not-found(the row is not a live window of this child) -
409:
ledger-window-overlap, or client_request_id claimed by a different operation / replayed entity gone, orconcurrent-modification(the child’s latest removal episode, or whether its unit is filled, changed since the check — re-read and retry) -
422: Validation failure (including a missing client_request_id or a missing answer key — send
nullfor unanswered) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Retract an education-facts window entered in error
POST /v1/placement/children/{child_id}/education-facts/{row_id}/retract
| Name | In | Required | Description |
|---|---|---|---|
child_id |
path |
Yes |
The child |
row_id |
path |
Yes |
The live window to retract |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
note |
string |
Yes |
Why the row was entered in error (stored as |
-
200: The retracted window, retired
retracted(or replayed — same client_request_id + intent) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404:
ledger-row-not-found(the row is not a live window of this child) -
409: client_request_id claimed by a different operation / replayed entity gone, or
concurrent-modification(the child’s latest removal episode, or whether its unit is filled, changed since the check — re-read and retry) -
422: Validation failure (including a missing client_request_id, an empty note, or a NUL (U+0000) in
note—validation-failednamingnote, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
List education records by child
GET /v1/placement/education
| Name | In | Required | Description |
|---|---|---|---|
child_id |
query |
No |
Optional child filter. When omitted, lists across all children (supervisor/admin triage). |
page |
query |
No |
1-based page number (default 1); a page past the depth cap is 400. |
per_page |
query |
No |
Rows per page (default 25, at most 500); 0 returns only the total. |
-
200: Page of education records
-
400: A page past the depth cap; a malformed query parameter (e.g. a non-UUID
child_id) is the extractor’s value-freebad-requestproblem, before the handler -
401: Unauthorized
-
403: Forbidden
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Create education record
POST /v1/placement/education
| Field | Type | Required | Description |
|---|---|---|---|
child_id |
UUID |
Yes |
The child enrolled; the child’s latest live removal episode supplies the record’s unit. |
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. Same id + identical intent replays the original education record; a different intent under the same id is a 409 idempotency-conflict. |
enrollment_date |
date |
Yes |
First day of enrollment at the school; education lists order by it, latest first. |
grade_level |
string (optional) |
No |
The grade level. A NUL (U+0000) is a 422 |
iep_flag |
boolean (optional) |
No |
Whether the child has an Individualized Education Program; omitted stores |
notes |
string (optional) |
No |
Notes. A NUL (U+0000) is a 422 |
placement_id |
UUID (optional) |
No |
The living arrangement the enrollment belongs to; optional. |
school_district |
string (optional) |
No |
The school district. A NUL (U+0000) is a 422 |
school_name |
string |
Yes |
The school’s name. A NUL (U+0000) is a 422 |
school_type |
string |
Yes |
One of |
section_504 |
boolean (optional) |
No |
Whether the child has a Section 504 plan; omitted stores |
-
200: Education record created (or replayed — same client_request_id + intent)
-
400: Bad request
-
401: Unauthorized
-
403: Forbidden — including a replay whose stored record the caller may not read
-
409: client_request_id claimed by a different operation, or replayed entity gone, or
concurrent-modification(the child’s latest removal episode changed since the pre-transaction read — re-read and retry) -
422: Validation failure (including a missing client_request_id), or a NUL (U+0000) in
school_name,school_district,grade_levelornotes(validation-failednaming the field, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
A child’s partner-reported education records
GET /v1/placement/education/partner-reports
The child’s live reports: none, or one per partner interface. View only: no route changes what a partner reported. The caller is checked on the education_partner_report resource type with the worker and supervisor of the child’s case (the case of the child’s latest live removal episode) before anything is read, so a refused caller is answered 403 whether or not a report exists.
| Name | In | Required | Description |
|---|---|---|---|
child_id |
query |
Yes |
The child: the craig-cases person id. |
-
200: The child’s live reports, by interface (possibly none)
-
400: A malformed, missing or unknown query parameter
-
401: Unauthorized
-
403: The jurisdiction’s ruleset does not admit the caller to this child’s partner reports
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Service-to-service: store what a partner reported about a child’s schooling
POST /v1/placement/education/partner-reports
Posted by craig-exchange for each record of a partner’s document that it admitted under an open listing. One live report is kept per child and partner interface. The body’s outcome says what happened: applied (201) when the report is now the child’s live report; stale (200) when the child’s held report is as of a later day, or is this same report; listing_ended (200) when the listing the report names has ended, so nothing was stored. A repeat of the held facts on a later day moves the held report to that day; different facts withdraw it and store the new report. The body carries no idempotency key: posting a report twice leaves one record.
| Field | Type | Required | Description |
|---|---|---|---|
as_of |
date |
Yes |
The day the partner’s report is as of. A later report replaces an
earlier one; an earlier one, and a repeat of the one held, is answered
|
child_id |
UUID |
Yes |
The child the report is about: the craig-cases person id. |
enrollment_date |
date |
Yes |
The date the child entered the school. |
grade_level |
string |
Yes |
The grade level, as the partner states it. |
identifier_kind |
string |
Yes |
The kind of identifier the partner keys the child on ( |
interface |
string |
Yes |
The partner interface the report came through, as its adapter-kind
token ( |
listing_id |
UUID |
Yes |
The listing craig-exchange admitted the report under: the child as this deployment named them to the partner. The report is withdrawn when that listing ends. |
school_district |
string |
Yes |
The school system (district). |
school_name |
string |
Yes |
The school’s name. |
-
200: Nothing changed:
outcome=staleorlisting_ended -
201: The report is now the child’s live report (
outcome=applied) -
400: The body is not well-formed JSON
-
401: Missing or invalid bearer
-
403: Not a service caller, not the craig-exchange service identity, or a delegated (actor) token; answered before the body is judged, whatever was posted
-
413: The body is past the service’s request-body limit
-
415: The body is not sent as
application/json -
422: The body is not the contract’s: an unknown or missing key, a field empty or past its cap, or a NUL (U+0000) in a text field
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Get education record by ID
GET /v1/placement/education/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Education record ID |
-
200: Education record
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Update education record
PUT /v1/placement/education/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Education record ID |
| Field | Type | Required | Description |
|---|---|---|---|
grade_level |
string (optional) |
No |
Tri-state: absent keeps the stored value, |
iep_flag |
boolean (optional) |
No |
New Individualized Education Program flag; omit to keep the stored value. |
notes |
string (optional) |
No |
Tri-state: absent keeps the stored value, |
school_district |
string (optional) |
No |
Tri-state: absent keeps the stored value, |
school_name |
string (optional) |
No |
The school’s name. A NUL (U+0000) is a 422 |
school_type |
string (optional) |
No |
New school type, from the same vocabulary as on create. |
section_504 |
boolean (optional) |
No |
New Section 504 plan flag; omit to keep the stored value. |
withdrawal_date |
date (optional) |
No |
Tri-state: absent keeps the stored value, |
withdrawal_reason |
string (optional) |
No |
Tri-state: absent keeps the stored value, |
-
200: Education record updated
-
400: Bad request
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
409: The record’s admin_unit changed since authorization (
concurrent-modification— re-read and retry) -
422: A body field whose value does not deserialize, e.g. a non-boolean
iep_flag(validation-failed; the field is named, the value never echoed), or a field over its length cap (validation-failed), or a NUL (U+0000) inschool_name,school_district,grade_levelornotes(validation-failednaming the field, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Delete education record (soft-delete)
DELETE /v1/placement/education/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Education record ID |
-
200: Education record deleted
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
409: The record’s admin_unit changed since authorization (
concurrent-modification— re-read and retry) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
EventReplay
Replay outbox events in a time window
POST /v1/admin/events/replay
Re-stages the published outbox rows created in [from, to] (optionally one event_type) so the outbox worker republishes them. At most 100000 rows per call; when more is true, call again with the same window and resume_from. Rows already pending are left alone. dry_run=true only counts. A from older than the service’s outbox retention window is refused. Each batch commits on its own, so after a 5xx the committed batches stay re-staged and re-running the same window picks up the rest. Every admitted call, a dry run included, records an admin.events_replayed act naming the worker.
| Name | In | Required | Description |
|---|---|---|---|
from |
query |
Yes |
RFC 3339 inclusive lower bound on |
to |
query |
Yes |
RFC 3339 inclusive upper bound on |
event_type |
query |
No |
Optional |
dry_run |
query |
No |
If true, return the would-replay count without modifying rows. |
resume_from |
query |
No |
The |
-
200: The window’s count and what this call re-staged
-
400:
bad-request: a malformed or missingfrom/to, a non-booleandry_run,fromafterto,fromolder than the outbox retention window, or aresume_fromthat is not a replay cursor (fieldnames it) -
401: Missing or invalid bearer token
-
403: The acting identity is not an admin, or is a bare service principal (
worker-required): a replay is a worker’s act -
422:
validation-failed:event_typelonger than 255 bytes -
500: Internal error (the re-staged count overflowed, or an unclassified database error); batches already committed stay committed
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Expiry Sweep
Enqueue a foster-home expiry notice sweep
POST /v1/placement/expiry-sweep/run
Enqueues ONE pass of the foster-home expiry notice sweep as a background job on the jurisdiction’s business date at enqueue, two independent legs: every stored-active home whose license lapses within EXPIRY_SWEEP__LEAD_DAYS (or has lapsed) gets at most ONE foster_home.license_expiring / foster_home.license_expired notice per (home, kind, expiry date); every stored-active home’s training TYPE whose effective certificate lapses within the same window (or has lapsed) gets at most ONE foster_home.training_expiring / foster_home.training_expired notice per (home, kind, expiry date, training type). Each notice is staged in its own transaction. Body = { client_request_id } (REQUIRED; the same id replays the SAME job whatever its state, a fresh id is a new job; any other field is 422 validation-failed). Answers 202 with Location: /v1/placement/jobs/{id} and the job (state = queued); poll the Location until succeeded (result = the pass report: a pass with failures > 0 still succeeds — the failed homes are retried by the next pass) or failed (error.token closed: exhausted after three crashed / interrupted attempts, engine_failed). A second enqueue while a sweep is queued or running is 409 job-already-active; a peer-held engine lease is NOT a refusal — the attempt waits for it (progress.phase = waiting_for_lease). Authorized as approve on foster homes.
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
The client-minted operation id: the same id replays the SAME job (whatever its state); a fresh id is a new job. |
-
202: Sweep enqueued (or a replay of the stored job — nothing re-enqueued);
Location=/v1/placement/jobs/{id} -
401: Unauthorized
-
403: Forbidden
-
409: A sweep is already queued or running in this jurisdiction (
job-already-active), or this client_request_id was used with a different intent (idempotency-conflict) -
422: Validation failure — a missing
client_request_idor a forged field (validation-failed) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Foster Homes
The caregiver proposal queue
GET /v1/placement/field-proposals
Oldest first, pending by default (?decision=accepted|rejected for the decided ones). Each row names the unit (the home’s name for a home unit), the target record’s child (child_display from the cases arm — null when unavailable) and the proposed vs. current value. No caregiver or staff subject rides the wire. Listing follows the foster_home LIST scope: a non-admin scope answers an empty page.
| Name | In | Required | Description |
|---|---|---|---|
decision |
query |
No |
|
page |
query |
No |
1-based page number (default 1); a page past the depth cap is 400. |
per_page |
query |
No |
Rows per page (default 25, at most 500); 0 returns only the total. |
-
200: One page of proposals
-
400: Page depth beyond the fleet cap; a malformed query parameter (e.g. an unknown
decision) is the extractor’s value-freebad-requestproblem, before the handler -
401: Unauthorized
-
403: Forbidden
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Accept a caregiver proposal — writes the field
POST /v1/placement/field-proposals/{id}/accept
Authority is approve on the TARGET row’s own resource type (education record / health record / foster home). Under the proposal lock the target is locked FOR NO KEY UPDATE, its current text compared with the proposal’s previous_value (moved → 409 concurrent-modification; reject it or ask the caregiver again), then written — a foster_homes write bumps version without If-Match. A soft-deleted education / health target is 409 field-proposal-target-gone on accept (the row stays pending; reject drains it); an absent education record, health record or foster home is 404 naming it BEFORE the authorization check (existence-first); a target whose admin_unit changed since the check — a record’s stamp or a foster home’s unit — is 409 concurrent-modification (re-read and retry). A replayed client_request_id answers the decided row.
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Proposal id |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-held idempotency id (one per decision attempt; a replay answers the decided row). |
reason |
string (optional) |
No |
The reason shown to the caregiver, when given. A NUL (U+0000),
which the stored reason cannot hold, is a 422 |
-
200: Accepted (or replayed)
-
401: Unauthorized
-
403: Not an approver on the target’s resource type
-
404: No such proposal, or the proposal’s foster-home row is gone or its education / health record is absent (answered before the authorization check)
-
409: Already decided (
field-proposal-decided), target gone (field-proposal-target-gone), value or the target’s unit moved since the check (concurrent-modification), or a client_request_id claimed by a different intent -
422: The field is no longer proposable on this deployment (
field-not-proposable); areasonover 500 bytes or holding a NUL (U+0000), or a body field whose value does not deserialize (e.g. a non-UUIDclient_request_id), isvalidation-failed(the field is named, the value never echoed) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Reject a caregiver proposal — the target is unchanged
POST /v1/placement/field-proposals/{id}/reject
Authority is approve on the TARGET row’s own resource type. The row is marked rejected with the optional reason the caregiver reads on their unit page; the target row is untouched, and the caregiver may propose the field again. Rejecting is also how a stale or soft-deleted education / health proposal is drained. Under the proposal lock the target is locked FOR NO KEY UPDATE: a target whose admin_unit changed since the check — an education / health record’s stamp or a foster home’s unit — is 409 concurrent-modification (re-read and retry). An absent education record, health record or foster home is 404 naming it BEFORE the authorization check (existence-first). A replayed client_request_id answers the decided row.
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Proposal id |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-held idempotency id (one per decision attempt; a replay answers the decided row). |
reason |
string (optional) |
No |
The reason shown to the caregiver, when given. A NUL (U+0000),
which the stored reason cannot hold, is a 422 |
-
200: Rejected (or replayed)
-
401: Unauthorized
-
403: Not an approver on the target’s resource type
-
404: No such proposal, or the proposal’s foster-home row is gone or its education / health record is absent (answered before the authorization check)
-
409: Already decided (
field-proposal-decided), the target’s unit moved since the check (concurrent-modification), or a client_request_id claimed by a different intent -
422: An unknown body field, or a body field whose value does not deserialize, e.g. a non-UUID
client_request_id(validation-failed; the field is named, the value never echoed), or areasonover 500 bytes or holding a NUL (U+0000) (validation-failed) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Search foster homes
GET /v1/placement/homes
| Name | In | Required | Description |
|---|---|---|---|
page |
query |
No |
1-based page number (default 1); a page past the depth cap is 400. |
per_page |
query |
No |
Rows per page (default 25, at most 500); 0 returns only the total. |
admin_unit |
query |
No |
A registry unit in any casing, filtered on its canonical name; in a US-state jurisdiction an unknown one is the typed 400. |
license_status |
query |
No |
Only homes whose effective license status (an |
license_type |
query |
No |
Only homes with this license type token. |
provider_kind |
query |
No |
Only this provider kind. |
has_capacity |
query |
No |
|
search |
query |
No |
Full-text search across name, address, |
sort_by |
query |
No |
Sort column: name, |
sort_dir |
query |
No |
Sort direction: asc or desc (default: desc). |
-
200: Page of foster homes
-
400: A page past the depth cap;
invalid-enum-valueonadmin_unitwhen the deployment’s jurisdiction is a US state and?admin_unit=names no administrative unit in it (the lookup is case-insensitive and a known unit filters on its canonical name); a malformed query parameter (e.g. an unknownprovider_kind) is the extractor’s value-freebad-requestproblem, before the handler -
401: Unauthorized
-
403: Forbidden
-
422: A filter over its length cap:
admin_unit100,license_status/sort_by/sort_dir32,license_type64,search500 bytes (validation-failed) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Create foster home record
POST /v1/placement/homes
| Field | Type | Required | Description |
|---|---|---|---|
accepts_ages_max |
integer (optional) |
No |
Oldest accepted age in years (inclusive); omitted fails a required age-band match. |
accepts_ages_min |
integer (optional) |
No |
Youngest accepted age in years (inclusive); omitted fails a required age-band match. Must
not exceed |
accepts_sibling_groups |
boolean |
No |
Whether the home takes sibling groups, read by sibling matching criteria; defaults to
|
address |
string |
Yes |
The home’s address. A NUL (U+0000) is a 422 |
admin_unit |
string |
Yes |
The home’s unit: a US jurisdiction’s FIPS unit, stored in its registry
spelling (an unknown one is the typed 400); elsewhere free text, where a
NUL (U+0000) is a 422 |
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. Same id + identical intent replays the original foster home; a different intent under the same id is a 409 idempotency-conflict. |
icwa_compliant |
boolean |
No |
Whether the home is ICWA-compliant, read by ICWA matching criteria; defaults to |
license_expires |
date (optional) |
No |
Last licensed day: from the next day an |
license_number |
string (optional) |
No |
The home’s license number. A NUL (U+0000) is a 422 |
license_type |
string (optional) |
No |
Present iff |
licensed_at |
date (optional) |
No |
Date the license was issued; optional, stored as given. |
max_capacity |
integer |
Yes |
Most children the home may hold; a home has capacity while its occupancy is below it. |
name |
string |
Yes |
The home’s name. A NUL (U+0000) is a 422 |
phone |
string (optional) |
No |
The home’s phone. A NUL (U+0000) is a 422 |
primary_contact |
string (optional) |
No |
The home’s primary contact. A NUL (U+0000) is a 422 |
provider_kind |
enum (family_home, congregate_facility) |
Yes |
What kind of provider a |
-
200: Foster home created (or replayed — same client_request_id + intent)
-
400: An unknown license_type (invalid-enum-value); a family_home without a license_type (required-field-missing), or a congregate_facility with one (structural-mismatch)
-
401: Unauthorized
-
403: Forbidden
-
409: client_request_id claimed by a different operation, or replayed entity gone; or
license_numberis already another home’s (duplicate-resource; value-free, nothing written, no claim held) -
422: Validation failure (including a missing client_request_id), or a NUL (U+0000) in
name,address,phone,license_numberorprimary_contact, or in the free-textadmin_unitof a jurisdiction without a US unit table (validation-failednaming the field, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Get foster home detail with training records and per-type training evidence
GET /v1/placement/homes/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Foster home ID |
-
200: Foster home detail
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Update foster home
PUT /v1/placement/homes/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Foster home ID |
If-Match |
header |
Yes |
REQUIRED row version from your last read, e.g. |
| Field | Type | Required | Description |
|---|---|---|---|
accepts_ages_max |
integer (optional) |
No |
New oldest accepted age in years; checked against the resulting minimum. |
accepts_ages_min |
integer (optional) |
No |
New youngest accepted age in years; checked against the resulting maximum. |
accepts_sibling_groups |
boolean (optional) |
No |
New sibling-group acceptance; omit to keep the stored value. |
address |
string (optional) |
No |
The home’s address. A NUL (U+0000) is a 422 |
admin_unit |
string (optional) |
No |
The home’s unit: a US jurisdiction’s FIPS unit, stored in its registry
spelling (an unknown one is the typed 400); elsewhere free text, where a
NUL (U+0000) is a 422 |
icwa_compliant |
boolean (optional) |
No |
New ICWA-compliance flag; omit to keep the stored value. |
license_expires |
date (optional) |
No |
Tri-state: absent keeps the stored date, an explicit JSON
|
license_number |
string (optional) |
No |
The home’s license number. A NUL (U+0000) is a 422 |
license_status |
string (optional) |
No |
New license status; must be a legal transition from the current one, else 400. |
license_type |
string (optional) |
No |
New license type token; refused on a congregate facility. |
licensed_at |
date (optional) |
No |
New license issue date; omit to keep the stored one. |
max_capacity |
integer (optional) |
No |
New capacity; omit to keep the stored one. |
name |
string (optional) |
No |
The home’s name. A NUL (U+0000) is a 422 |
phone |
string (optional) |
No |
The home’s phone. A NUL (U+0000) is a 422 |
primary_contact |
string (optional) |
No |
The home’s primary contact. A NUL (U+0000) is a 422 |
provider_kind |
ProviderKind (optional) |
No |
Provider kind |
-
200: Foster home updated
-
400: Invalid license type or license-status transition, a missing/malformed If-Match, a provider_kind different from the stored one (structural-mismatch), or a license_type on a congregate_facility (structural-mismatch)
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
409: Version moved since your read (stale If-Match), or the home was written between this request’s authorization read and its row lock —
concurrent-modification, re-read and retry; or the newlicense_numberis already another home’s (duplicate-resource; value-free, nothing written) -
422: A body field whose value does not deserialize, e.g. an unknown
provider_kind(validation-failed; the field is named, the value never echoed), or a field over its length cap, or a negativeaccepts_ages_min/accepts_ages_max(validation-failed), or a NUL (U+0000) inname,address,phone,license_numberorprimary_contact, or in the free-textadmin_unitof a jurisdiction without a US unit table (validation-failednaming the field, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
List training records for a foster home
GET /v1/placement/homes/{id}/training
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Foster home ID |
-
200: Training records
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Record training completion
POST /v1/placement/homes/{id}/training
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Foster home ID |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. Same id + identical intent (including the foster home path id) replays the original training record; a different intent under the same id is a 409 idempotency-conflict. |
completed_at |
date |
Yes |
Completion date; a date after the jurisdiction’s business date is 400. |
expires_at |
date (optional) |
No |
Certificate expiry; omit for an undated certificate, whose currency cannot be verified. |
hours |
number |
Yes |
Hours of training; must be a positive number. |
training_type |
string |
Yes |
Training type token from the reference vocabulary; an unknown one is 400. |
verified_by |
string (optional) |
No |
Who verified the training. A NUL (U+0000) is a 422 |
-
200: Training recorded (or replayed — same client_request_id + intent)
-
400: Invalid input — a non-positive hours value, or a
completed_atafter the jurisdiction business date (problem typeinvalid-date: a future completion is not evidence) -
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
409: client_request_id claimed by a different operation, or replayed entity gone; or the home’s admin_unit moved since authorization (
concurrent-modification— re-read and retry) -
422: Validation failure (including a missing client_request_id, or a NUL (U+0000) in
verified_by—validation-failednaming the field, value-free); or the home is a congregate provider -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Get a training record
GET /v1/placement/training/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Training record ID |
-
200: Training record
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Update a training record
PUT /v1/placement/training/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Training record ID |
| Field | Type | Required | Description |
|---|---|---|---|
completed_at |
date (optional) |
No |
New completion date; a date after the jurisdiction’s business date is 400. |
expires_at |
date (optional) |
No |
Tri-state: absent keeps the stored value, |
hours |
number (optional) |
No |
New hours; must be a positive number. |
training_type |
string (optional) |
No |
New training type token; an unknown one is 400. |
verified_by |
string (optional) |
No |
Who verified the training. A NUL (U+0000) is a 422 |
-
200: Training updated
-
400: Invalid input — a non-positive hours value, or a
completed_atafter the jurisdiction business date (problem typeinvalid-date) -
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
409: The training record changed concurrently, or the home’s admin_unit moved since authorization (
concurrent-modification— re-read and retry) -
422: A body field whose value does not deserialize, e.g. a non-date
completed_at(validation-failed; the field is named, the value never echoed), or atraining_type/verified_byover its length cap (validation-failed), or a NUL (U+0000) inverified_by(validation-failednaming the field, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Delete a training record
DELETE /v1/placement/training/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Training record ID |
-
204: Training deleted
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
409: The home’s admin_unit moved since authorization (
concurrent-modification— re-read and retry) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Foster Portal
Redeem an invitation code into a live portal identity
POST /v1/placement/portal/enrollment
Portal channel only (the portal BFF’s service bearer + the caregiver’s own X-Craig-Subject). Unknown, expired, redeemed or revoked codes and codes whose binding is not current today all answer ONE indistinguishable 404. The same client_request_id replays the original 200.
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-held idempotency id: the same request replays the original 200; any other attempt on a consumed code is the uniform 404. |
code |
string |
Yes |
The code exactly as issued (URL-safe base64, 22 chars). |
-
200: Enrolled (or replayed)
-
401: Unauthorized
-
403: Not the portal channel
-
404: The uniform refusal
-
409: A live portal identity already exists for this account or caregiver, or the client_request_id belongs to a different operation
-
422: Validation failure
-
429: Per-IP or per-subject quota exceeded
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
The caregiver’s current units
GET /v1/placement/portal/units
Portal channel only. Every unit the relayed subject is a CURRENT caregiver of on the jurisdiction clock — a foster home (with its name) or a kinship household. No current binding → 403.
-
200: The subject’s units
-
401: Unauthorized
-
403: Not the portal channel, or no current caregiver binding
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
One unit’s children with their education and health projections
GET /v1/placement/portal/units/{unit}
Portal channel only; the unit must be one of the subject’s current units (else 404). Children = the unit’s ACTIVE placements: child_display (first name + last initial) and caseworker_name come from the cases display-name / security contact arms and are null with names_unavailable: true when an arm did not answer — never a guess; caseworker_phone (the caseworker’s work line, same arm) is null then too, and whenever no admin has recorded one. Education carries record_id, school_name, grade_level, enrollment_date; health carries record_id, record_type, provider_name, next_due_date — nothing else. The detail also rides the unit’s lock state (field_permissions: which governed fields the caregiver may propose on), the home’s own home_contact (phone + primary contact; null on a kinship unit) and the caregiver’s proposals (pending, plus those decided in the last 30 days with the decision and reason).
| Name | In | Required | Description |
|---|---|---|---|
unit |
path |
Yes |
Unit id (foster home or kinship household) |
-
200: The unit projection
-
401: Unauthorized
-
403: Not the portal channel, or no current caregiver binding
-
404: Not one of the subject’s units
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
The unit’s training certificates
GET /v1/placement/portal/units/{unit}/documents
Portal channel only; the unit must be one of the subject’s current units (else 404). ONLY training_certificate documents — filename, content type, type and date. A kinship household unit has no documents: [].
| Name | In | Required | Description |
|---|---|---|---|
unit |
path |
Yes |
Unit id |
-
200: Certificates
-
401: Unauthorized
-
403: Not the portal channel, or no current caregiver binding
-
404: Not one of the subject’s units
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Upload a training certificate to the unit’s home
POST /v1/placement/portal/units/{unit}/documents
Portal channel only; multipart with file, client_request_id and file_sha256. The type is fixed server-side to training_certificate — any client-sent type is never read. The binding and channel are checked BEFORE the body is parsed; the finalizer re-checks the binding under its row lock and answers 404 upload target if it was revoked in between. A kinship household unit has no document folder: 422.
| Name | In | Required | Description |
|---|---|---|---|
unit |
path |
Yes |
Unit id |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
The client-held idempotency id: a byte-identical retry under the same id replays the same document. |
file |
binary |
Yes |
The certificate file part. |
file_sha256 |
string |
Yes |
The lowercase-hex SHA-256 of the file bytes (64 characters). |
-
200: The stored certificate (a byte-identical retry under the same client_request_id replays the SAME document)
-
400: Validation error (missing identity fields, a digest mismatch, an unsupported type or an oversize file)
-
401: Unauthorized
-
403: Not the portal channel, or no current caregiver binding
-
404: Not one of the subject’s units, or the binding was revoked before the finalize
-
422: A kinship household unit, or a client_request_id reused with a different upload
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Download one of the unit’s training certificates
GET /v1/placement/portal/units/{unit}/documents/{doc_id}/download
Portal channel only; the unit must be one of the subject’s current units and the document one of ITS training certificates — anything else (a licence document, another home’s certificate, a kinship unit) is the uniform 404.
| Name | In | Required | Description |
|---|---|---|---|
unit |
path |
Yes |
Unit id |
doc_id |
path |
Yes |
Document id |
-
200: The certificate bytes
-
206: Partial content: the one
Rangeslice (bytes=a-b,a-or-n) withContent-Range,Accept-Ranges: bytesand the slice’sContent-Length; honoured only when anIf-Rangestrong-matches theETag. A multi-range request is the full 200 -
401: Unauthorized
-
403: Not the portal channel, or no current caregiver binding
-
404: Not one of the subject’s units, or not one of its certificates
-
416: Range not satisfiable:
Content-Range: bytes */<length> -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Ask to change a shared field of the unit
POST /v1/placement/portal/units/{unit}/proposals
Portal channel only; the unit must be one of the subject’s current units (else 404) and the target row one of ITS rows — an education / health record of a child ACTIVELY placed in the unit, or the home itself for foster_homes (a row outside the unit is the same 404). The field must be a shared token of the named table (else 422 field-not-proposable; a kinship unit has no home contact); the value is trimmed, bounded by the staff cap for that column and, for a date, parsed YYYY-MM-DD (else 422 validation-failed). A replayed client_request_id answers the same receipt. One open proposal per (target, field): a second is 409 field-proposal-pending.
| Name | In | Required | Description |
|---|---|---|---|
unit |
path |
Yes |
Unit id (foster home or kinship household) |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-held idempotency id (one per propose attempt; a replay answers the original receipt). |
field |
string |
Yes |
The governed |
proposed_value |
string |
Yes |
The proposed new value as typed (a date as |
target_id |
UUID |
Yes |
The target row: |
target_table |
enum (education_records, health_records, foster_homes) |
Yes |
The table a proposal’s target row lives in — the three tables that host
a |
-
200: The proposal was recorded (or replayed)
-
401: Unauthorized
-
403: Not the portal channel, or no current caregiver binding
-
404: Not one of the subject’s units, or not one of the unit’s rows
-
409: A proposal on this field is already pending (
field-proposal-pending), or the client_request_id was claimed by a different intent -
422: Not a proposable field of that table (
field-not-proposable), or the value failed the column’s contract (validation-failedonproposed_value), a NUL (U+0000) included (value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
The unit’s training records
GET /v1/placement/portal/units/{unit}/training
Portal channel only; the unit must be one of the subject’s current units (else 404). Each row carries training_type, completed_at, expires_at, hours — no verifier. A kinship household unit has no training ledger: [].
| Name | In | Required | Description |
|---|---|---|---|
unit |
path |
Yes |
Unit id (foster home or kinship household) |
-
200: Training rows
-
401: Unauthorized
-
403: Not the portal channel, or no current caregiver binding
-
404: Not one of the subject’s units
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Health
The child’s health-facts window in force on a date (absent as_of = today on the jurisdiction clock)
GET /v1/placement/children/{child_id}/health-facts
| Name | In | Required | Description |
|---|---|---|---|
child_id |
path |
Yes |
The child |
as_of |
query |
No |
The anchor date; absent = today on the jurisdiction clock. The row
in force is the live row with |
-
200: The live window in force on as_of
-
204: No live window is in force on as_of
-
400: A malformed query parameter (e.g. a non-date
as_of) is the extractor’s value-freebad-requestproblem, before the handler; a date before -4713-11-24 (PostgreSQL’s minimum) isledger-date-before-minimum -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Record the child’s health facts from effective_from: a change (no effective_until) or a backfill
POST /v1/placement/children/{child_id}/health-facts
| Name | In | Required | Description |
|---|---|---|---|
child_id |
path |
Yes |
The child (any child id, as a health record names it) |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
condition_attention_deficit_hyperactivity_disorder |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Attention deficit hyperactivity disorder. |
condition_autism_spectrum_disorder |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Autism spectrum disorder. |
condition_developmental_delay |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Developmental delay. |
condition_developmental_disability |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Developmental disability. |
condition_hearing_impairment_and_deafness |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Hearing impairment and deafness. |
condition_intellectual_disability |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Intellectual disability. |
condition_mental_emotional_disorders |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Mental or emotional disorders. |
condition_orthopedic_impairment_or_other_physical_condition |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Orthopedic impairment or other physical condition. |
condition_other_diagnosed_condition |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Other diagnosed condition. |
condition_serious_mental_disorders |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Serious mental disorders. |
condition_status |
enum (child_has_a_diagnosed_condition, no_exam_or_assessment_conducted, exam_or_assessment_conducted_and_none_of_the_conditions_apply, exam_or_assessment_conducted_but_results_not_received) (optional) |
Yes |
(b)(10) whether a condition was diagnosed, or why none was. |
condition_visual_impairment_and_blindness |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Visual impairment and blindness. |
effective_from |
date |
Yes |
First day the facts hold (on or before today, jurisdiction clock). |
effective_until |
date (optional) |
No |
Present only for a backfill: the first day they no longer hold. |
-
200: The recorded window (or replayed — same client_request_id + intent)
-
400:
ledger-date-after-today(orledger-date-before-minimum, a date before -4713-11-24),ledger-window-invalid,ledger-not-a-change, orstructural-mismatch(a condition answer without the diagnosed status) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
409:
ledger-window-overlap, or client_request_id claimed by a different operation / replayed entity gone, orconcurrent-modification(the child’s latest removal episode, or whether its unit is filled, changed since the check — re-read and retry) -
422: Validation failure (including a missing client_request_id or a missing answer key — send
nullfor unanswered) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Close the open health-facts window: the facts no longer hold from effective_until
POST /v1/placement/children/{child_id}/health-facts/{row_id}/close
| Name | In | Required | Description |
|---|---|---|---|
child_id |
path |
Yes |
The child |
row_id |
path |
Yes |
The live open window to close |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
effective_until |
date |
Yes |
The first day the facts no longer hold (after the row’s
|
-
200: The closed window (or replayed — same client_request_id + intent)
-
400:
ledger-date-after-today(orledger-date-before-minimum, a date before -4713-11-24) orledger-window-invalid -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404:
ledger-row-not-found(absent, retired or not open) -
409: client_request_id claimed by a different operation / replayed entity gone, or
concurrent-modification(the child’s latest removal episode, or whether its unit is filled, changed since the check — re-read and retry) -
422: Validation failure (including a missing client_request_id)
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Correct a health-facts window entered wrongly (the complete corrected facts; an omitted bound is kept)
POST /v1/placement/children/{child_id}/health-facts/{row_id}/corrections
| Name | In | Required | Description |
|---|---|---|---|
child_id |
path |
Yes |
The child |
row_id |
path |
Yes |
The live window to correct |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
condition_attention_deficit_hyperactivity_disorder |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Attention deficit hyperactivity disorder. |
condition_autism_spectrum_disorder |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Autism spectrum disorder. |
condition_developmental_delay |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Developmental delay. |
condition_developmental_disability |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Developmental disability. |
condition_hearing_impairment_and_deafness |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Hearing impairment and deafness. |
condition_intellectual_disability |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Intellectual disability. |
condition_mental_emotional_disorders |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Mental or emotional disorders. |
condition_orthopedic_impairment_or_other_physical_condition |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Orthopedic impairment or other physical condition. |
condition_other_diagnosed_condition |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Other diagnosed condition. |
condition_serious_mental_disorders |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Serious mental disorders. |
condition_status |
enum (child_has_a_diagnosed_condition, no_exam_or_assessment_conducted, exam_or_assessment_conducted_and_none_of_the_conditions_apply, exam_or_assessment_conducted_but_results_not_received) (optional) |
Yes |
(b)(10) whether a condition was diagnosed, or why none was. |
condition_visual_impairment_and_blindness |
enum (existing, previous, does_not_apply) (optional) |
Yes |
Visual impairment and blindness. |
effective_from |
date (optional) |
No |
A corrected window start; omitted = the predecessor’s. |
effective_until |
date (optional) |
No |
A corrected window end; omitted = the predecessor’s. |
-
200: The correcting window, which supersedes the corrected one (or replayed — same client_request_id + intent)
-
400:
ledger-date-after-today(orledger-date-before-minimum, a date before -4713-11-24),ledger-window-invalidorstructural-mismatch(a condition answer without the diagnosed status) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404:
ledger-row-not-found(the row is not a live window of this child) -
409:
ledger-window-overlap, or client_request_id claimed by a different operation / replayed entity gone, orconcurrent-modification(the child’s latest removal episode, or whether its unit is filled, changed since the check — re-read and retry) -
422: Validation failure (including a missing client_request_id or a missing answer key — send
nullfor unanswered) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Retract a health-facts window entered in error
POST /v1/placement/children/{child_id}/health-facts/{row_id}/retract
| Name | In | Required | Description |
|---|---|---|---|
child_id |
path |
Yes |
The child |
row_id |
path |
Yes |
The live window to retract |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
note |
string |
Yes |
Why the row was entered in error (stored as |
-
200: The retracted window, retired
retracted(or replayed — same client_request_id + intent) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404:
ledger-row-not-found(the row is not a live window of this child) -
409: client_request_id claimed by a different operation / replayed entity gone, or
concurrent-modification(the child’s latest removal episode, or whether its unit is filled, changed since the check — re-read and retry) -
422: Validation failure (including a missing client_request_id, an empty note, or a NUL (U+0000) in
note—validation-failednamingnote, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
List health records by child
GET /v1/placement/health
| Name | In | Required | Description |
|---|---|---|---|
child_id |
query |
No |
Optional child filter. When omitted, lists across all children (supervisor/admin triage). |
page |
query |
No |
1-based page number (default 1); a page past the depth cap is 400. |
per_page |
query |
No |
Rows per page (default 25, at most 500); 0 returns only the total. |
-
200: Page of health records
-
400: A page past the depth cap; a malformed query parameter (e.g. a non-UUID
child_id) is the extractor’s value-freebad-requestproblem, before the handler -
401: Unauthorized
-
403: Forbidden
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Create health record
POST /v1/placement/health
| Field | Type | Required | Description |
|---|---|---|---|
child_id |
UUID |
Yes |
The child seen; the child’s latest live removal episode supplies the record’s unit. |
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. Same id + identical intent replays the original health record; a different intent under the same id is a 409 idempotency-conflict. |
diagnosis |
string (optional) |
No |
The diagnosis. A NUL (U+0000) is a 422 |
health_assessment |
boolean |
Yes |
(b)(9): the visit was a health assessment —
REQUIRED (a missing key or a |
immunization_date |
date (optional) |
No |
Date the immunization was given; optional. |
immunization_name |
string (optional) |
No |
The immunization’s name. A NUL (U+0000) is a 422 |
medications |
string (optional) |
No |
The medications. A NUL (U+0000) is a 422 |
next_due_date |
date (optional) |
No |
When the next visit is due; once it has passed, the record appears in the overdue list. |
notes |
string (optional) |
No |
Notes. A NUL (U+0000) is a 422 |
provider_name |
string (optional) |
No |
The provider’s name. A NUL (U+0000) is a 422 |
provider_type |
string (optional) |
No |
One of |
record_type |
string |
Yes |
One of |
treatment_plan |
string (optional) |
No |
The treatment plan. A NUL (U+0000) is a 422 |
visit_date |
date |
Yes |
Date of the visit; health lists order by it, latest first. |
-
200: Health record created (or replayed — same client_request_id + intent)
-
400: Bad request
-
401: Unauthorized
-
403: Forbidden — including a replay whose stored record the caller may not read
-
409: client_request_id claimed by a different operation, or replayed entity gone, or
concurrent-modification(the child’s latest removal episode changed since the pre-transaction read — re-read and retry) -
422: Validation failure (including a missing client_request_id), or a NUL (U+0000) in
provider_name,diagnosis,treatment_plan,medications,immunization_nameornotes(validation-failednaming the field, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
List overdue health records
GET /v1/placement/health/overdue
| Name | In | Required | Description |
|---|---|---|---|
page |
query |
No |
1-based page number (default 1); a page past the depth cap is 400. |
per_page |
query |
No |
Rows per page (default 25, at most 500); 0 returns only the total. |
-
200: Page of overdue health records
-
400: A page past the depth cap; a malformed query parameter (e.g. a non-integer
page) is the extractor’s value-freebad-requestproblem, before the handler -
401: Unauthorized
-
403: Forbidden
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Get health record by ID
GET /v1/placement/health/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Health record ID |
-
200: Health record
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Update health record
PUT /v1/placement/health/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Health record ID |
| Field | Type | Required | Description |
|---|---|---|---|
diagnosis |
string (optional) |
No |
Tri-state: absent keeps the stored value, |
health_assessment |
boolean (optional) |
No |
(b)(9): absent (or |
immunization_date |
date (optional) |
No |
Tri-state: absent keeps the stored value, |
immunization_name |
string (optional) |
No |
Tri-state: absent keeps the stored value, |
medications |
string (optional) |
No |
Tri-state: absent keeps the stored value, |
next_due_date |
date (optional) |
No |
Tri-state: absent keeps the stored value, |
notes |
string (optional) |
No |
Tri-state: absent keeps the stored value, |
provider_name |
string (optional) |
No |
Tri-state: absent keeps the stored value, |
provider_type |
string (optional) |
No |
Tri-state: absent keeps the stored value, |
record_type |
string (optional) |
No |
New record type, from the same vocabulary as on create; an |
treatment_plan |
string (optional) |
No |
Tri-state: absent keeps the stored value, |
visit_date |
date (optional) |
No |
New visit date; omit to keep the stored one. |
-
200: Health record updated
-
400: Bad request — an unknown record_type or provider_type token (
invalid-enum-value), orimmunization_name: nullwhile the record stays an immunization (required-field-missing) -
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
409: The record’s admin_unit changed since authorization (
concurrent-modification— re-read and retry) -
422: A body field whose value does not deserialize, e.g. a non-date
visit_date(validation-failed; the field is named, the value never echoed), or a field over its length cap (validation-failed), or a NUL (U+0000) inprovider_name,diagnosis,treatment_plan,medications,immunization_nameornotes(validation-failednaming the field, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Delete health record (soft-delete)
DELETE /v1/placement/health/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Health record ID |
-
200: Health record deleted
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
409: The record’s admin_unit changed since authorization (
concurrent-modification— re-read and retry) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Home Documents
List documents for a foster home
GET /v1/placement/homes/{home_id}/documents
| Name | In | Required | Description |
|---|---|---|---|
home_id |
path |
Yes |
Foster home ID |
-
200: Documents list
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Upload a document to a foster home
POST /v1/placement/homes/{home_id}/documents
| Name | In | Required | Description |
|---|---|---|---|
home_id |
path |
Yes |
Foster home ID |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
The client-held idempotency id: a byte- and metadata-identical retry under the same id replays the same document. |
description |
string (optional) |
No |
A free-text description; an empty value is dropped. A NUL (U+0000) is
a 422 |
document_type |
string (optional) |
No |
The document type; |
file |
binary |
Yes |
The document file part. |
file_sha256 |
string |
Yes |
The lowercase-hex SHA-256 of the file bytes (64 characters). |
-
200: Document uploaded (a byte- and metadata-identical retry under the same client_request_id replays the SAME document)
-
400: Validation error (including a missing client_request_id / file_sha256 text field or a digest that does not match the bytes)
-
401: Unauthorized
-
403: Forbidden (including a foreign actor replaying another’s client_request_id)
-
404: Not found
-
409: Concurrent retries kept finalizing this upload; retry the request
-
422: client_request_id reused with a different upload; or (
validation-failed, value-free) adocument_typethat is not 1 to 50 bytes of^[a-z0-9][a-z0-9_.-]*$, or a NUL (U+0000) indescription -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Delete a foster home document
DELETE /v1/placement/homes/{home_id}/documents/{doc_id}
| Name | In | Required | Description |
|---|---|---|---|
home_id |
path |
Yes |
Foster home ID |
doc_id |
path |
Yes |
Document ID |
-
204: Document deleted
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
409: The home’s admin_unit moved since authorization (
concurrent-modification— re-read and retry) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Download a foster home document
GET /v1/placement/homes/{home_id}/documents/{doc_id}/download
| Name | In | Required | Description |
|---|---|---|---|
home_id |
path |
Yes |
Foster home ID |
doc_id |
path |
Yes |
Document ID |
-
200: Document file
-
206: Partial content: the one
Rangeslice (bytes=a-b,a-or-n) withContent-Range,Accept-Ranges: bytesand the slice’sContent-Length; honoured only when anIf-Rangestrong-matches theETag. A multi-range request is the full 200 -
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
416: Range not satisfiable:
Content-Range: bytes */<length> -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Kinship
List kinship options for a case
GET /v1/placement/kinship
| Name | In | Required | Description |
|---|---|---|---|
case_id |
query |
Yes |
The case whose options to list; required. |
-
200: Kinship options
-
400: A malformed query parameter (e.g. a missing or non-UUID
case_id) is the extractor’s value-freebad-requestproblem, before the handler -
401: Unauthorized
-
403: Forbidden
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Record kinship option evaluation
POST /v1/placement/kinship
| Field | Type | Required | Description |
|---|---|---|---|
approved |
boolean (optional) |
No |
The evaluation’s outcome; omit or |
case_id |
UUID |
Yes |
The case the option belongs to; its assignment decides who may record it. |
child_id |
UUID |
Yes |
The child the relative is considered for. |
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. Same id + identical intent replays the original kinship option; a different intent under the same id is a 409 idempotency-conflict. |
evaluated |
boolean |
No |
Whether the relative has been evaluated; defaults to |
evaluated_at |
datetime (optional) |
No |
When the evaluation took place; lists order by it, latest first, options without one last. |
rejection_reason |
string (optional) |
No |
Why the option was rejected. A NUL (U+0000) is a 422
|
relationship |
string |
Yes |
The relative’s relationship to the child, from the kinship-relationship vocabulary. |
relative_name |
string |
Yes |
The relative’s name. A NUL (U+0000) is a 422 |
-
200: Kinship option recorded (or replayed — same client_request_id + intent)
-
401: Unauthorized
-
403: Forbidden
-
409: client_request_id claimed by a different operation, replayed entity gone, or case assignment changed since authorization — re-read and retry
-
422: Validation failure (including a missing client_request_id), or a NUL (U+0000) in
relative_nameorrejection_reason(validation-failednaming the field, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Get a kinship option
GET /v1/placement/kinship/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Kinship option ID |
-
200: Kinship option
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Update a kinship option
PUT /v1/placement/kinship/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Kinship option ID |
| Field | Type | Required | Description |
|---|---|---|---|
approved |
boolean (optional) |
No |
Tri-state: absent keeps the stored value, |
evaluated |
boolean (optional) |
No |
New evaluated flag; omit to keep the stored value. |
evaluated_at |
datetime (optional) |
No |
New evaluation time; omit to keep the stored one (it cannot be cleared). |
rejection_reason |
string (optional) |
No |
Why the option was rejected. A NUL (U+0000) is a 422
|
-
200: Kinship option updated
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
409: Assignment changed since authorization — re-read and retry
-
422: A body field whose value does not deserialize, e.g. a non-boolean
evaluated(validation-failed; the field is named, the value never echoed), or arejection_reasonover 1000 bytes (validation-failed), or a NUL (U+0000) inrejection_reason(validation-failednaming the field, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Delete a kinship option
DELETE /v1/placement/kinship/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Kinship option ID |
-
204: Kinship option deleted
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
409: Assignment changed since authorization — re-read and retry
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Kinship Households
List a person’s kinship households
GET /v1/placement/kinship-households
The households where the person holds any binding, open or ended; scoped by the household’s admin_unit as the foster-home list. Newest first.
| Name | In | Required | Description |
|---|---|---|---|
person_id |
query |
No |
Required (400 |
page |
query |
No |
1-based page number (default 1); a page past the depth cap is 400. |
per_page |
query |
No |
Rows per page (default 25, at most 500); 0 returns only the total. |
-
200: One page of households
-
400: No person_id, or a page past the depth cap; a malformed query parameter (e.g. a non-UUID
person_id) is the extractor’s value-freebad-requestproblem, before the handler -
401: Unauthorized
-
403: A pure service principal, or no foster_home list
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Get a kinship household
GET /v1/placement/kinship-households/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Kinship household ID |
-
200: The household
-
401: Unauthorized
-
403: A pure service principal, or no foster_home read
-
404: Not found
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Matching
Matching search for available foster homes — FOR a child
GET /v1/placement/matching
A search FOR A CHILD: case_id + child_id are both required and the child’s facts (whole years at the jurisdiction’s business date, both ICWA carriers — icwa_person derived by craig-cases through the federal federal-icwa-status ruleset over the case’s current child_icwa_facts row, icwa_case the case’s own flag — the case’s active child-role count) are read from craig-cases' placement-facts projection under the ACTING WORKER’s relayed credentials — cases evaluates the worker against the case with its own case: read rows (a caseworker must be assigned; a refusal is relayed as 403). ONE merged consult of the jurisdiction’s {j}-placement-eligibility ruleset over { child: {..} } then answers the candidate scope (matching-scope) AND the per-request child_criteria (v1.4): age_band / icwa / sibling ∈ require (a WHERE arm — a home outside the arm is absent; a NULL age band is absent under a required band) | prefer (a rank prefix — homes meeting the arm sort first) | ignore, applied MECHANICALLY by the SQL, plus child_refusal_reason (a jurisdiction’s refusal ⇒ 409 child-not-matchable BEFORE any home is scanned). Candidates are the in-scope homes with a free bed that pass every require arm; each DISTINCT eligibility facts tuple is consulted once — the license_gate AND the training_gate — and the page is cut from the admitted set. The query is CLOSED: a stale attribute parameter (child_age, icwa_required, sibling_group_size) is a typed 400 structural-mismatch. per_page is capped at 50; per_page=0 answers an EMPTY page with total: 0 and makes NO cases call and NO consult (membership is not verified for an empty page — recorded).
| Name | In | Required | Description |
|---|---|---|---|
case_id |
query |
Yes |
The case the child belongs to — cases evaluates the acting worker’s
|
child_id |
query |
Yes |
The child (an active |
provider_kind |
query |
Yes |
The requested setting’s class — only providers of this kind are candidates. Required. |
page |
query |
No |
1-based page of the admitted set (default 1); a page past the depth cap is 400. |
per_page |
query |
No |
Homes per page (default 25, at most 50); 0 returns an empty page without reading the child’s facts. |
-
200: Matching foster homes for the child —
totalcounts the admitted set;excluded_by_policyandtruncatedare the two honesty counters; under apreferarm the homes meeting it lead -
400: Typed refusals —
structural-mismatch(a missing / malformed / unknown query parameter, e.g. a stalechild_age) /child-not-in-case(the person is not an ACTIVE child-role member of the case; relayed from cases, fieldchild_id) /placement-facts-clock-drift(the two services' business dates disagree by more than a day; relayed, fieldon) -
401: Unauthorized
-
403: Forbidden — the acting worker may not read the case (relayed from cases: an unassigned caseworker, a refused bearer), or the relayed consult was refused by craig-rules (problem type
rules-consult-denied, e.g. readonly — refused AFTER one cases read) -
404: The case does not exist (relayed from cases)
-
409:
child-not-matchable— the jurisdiction’schild-matchabilityrow refuses matching for this child; the detail carries the row’s reason verbatim and the ruleset revision. No home was scanned. Or craig-cases' relayedcase-closed— the case is closed or transferred. -
422:
child-dob-missing— the child’s person record yields no age at the business date (relayed from cases, fieldchild_id) -
503:
matching-facts-unavailable— craig-cases did not answer the placement-facts read inside its 4 s budget, is unreachable, or answered 5xx / 429 (fail-closed: never a match on unverified facts; retry);matching-consult-budget-exceeded— the eligibility fan-out could not be bounded (narrow the search); or craig-rules is unavailable -
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Placements
The child’s live removal episodes, each with its live removal response and its live exit response (null while in care) — only the episodes the caller may read
GET /v1/placement/children/{child_id}/episodes
| Name | In | Required | Description |
|---|---|---|---|
child_id |
path |
Yes |
Child (craig-cases person) ID |
-
200: The child’s live (unretracted) episodes the caller may read; an unreadable episode is omitted, never refused
-
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Open a removal episode: the episode and its root removal response, recorded together
POST /v1/placement/episodes
| Field | Type | Required | Description |
|---|---|---|---|
case_id |
UUID |
Yes |
The case the removal is under. |
child_id |
UUID |
Yes |
The child removed (craig-cases person id). |
circumstance_abandonment |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_caretakers_alcohol_use |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_caretakers_drug_use |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_caretakers_impairment_physical_emotional |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_caretakers_significant_impairment_cognitive |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_child_alcohol_use |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_child_behavior_problem |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_child_drug_use |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_child_requested_placement |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_death_of_caretaker |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_diagnosed_condition |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_domestic_violence |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_educational_neglect |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_failure_to_return |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_family_conflict_orientation_gender_identity |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_homelessness |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_inadequate_access_to_medical_services |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_inadequate_access_to_mental_health_services |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_inadequate_housing |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_incarceration_of_caretaker |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_medical_neglect |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_neglect |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_parental_immigration_detainment_or_deportation |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_physical_abuse |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_prenatal_alcohol_exposure |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_prenatal_drug_exposure |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_psychological_or_emotional_abuse |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_public_agency_title_iv_e_agreement |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_runaway |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_sex_trafficking |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_sexual_abuse |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_tribal_title_iv_e_agreement |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_voluntary_relinquishment_for_adoption |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_whereabouts_unknown |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
environment |
enum (parent_household, relative_household, legal_guardian_household, relative_legal_guardian_household, justice_facility, medical_mental_health_facility, other) (optional) |
Yes |
(d)(3) the child’s environment at the removal. |
icwa_active_efforts |
enum (yes, no) (optional) |
Yes |
(i)(4)(iii) active efforts were made. |
icwa_clear_and_convincing_evidence |
enum (yes, no) (optional) |
Yes |
(i)(4)(i) the removal rests on clear and convincing evidence. |
icwa_denial_parents_objected |
enum (applies, does_not_apply) (optional) |
Yes |
(i)(1)(iii) |
icwa_denial_state_court_good_cause |
enum (applies, does_not_apply) (optional) |
Yes |
(i)(1)(iii) |
icwa_denial_tribal_court_declined |
enum (applies, does_not_apply) (optional) |
Yes |
(i)(1)(iii) |
icwa_qualified_expert_witness |
enum (yes, no) (optional) |
Yes |
(i)(4)(ii) a qualified expert witness testified. |
icwa_transfer_denied |
enum (yes, no) (optional) |
Yes |
(i)(1)(ii) the transfer was denied; only on an (i)(1)(i) |
icwa_transfer_requested |
enum (yes, no) (optional) |
Yes |
(i)(1)(i) a transfer to tribal court was requested. |
removal_at |
datetime |
Yes |
The instant the child was removed from home (never after now). |
removal_manner |
enum (voluntary_placement_agreement, court_ordered_removal) |
Yes |
Manner of removal from home — the removal response’s |
-
201: Episode opened — the same answer on a replay of the same
client_request_id(a replay answers even while craig-cases is down) -
400:
ledger-instant-after-now(removal_at is in the future), or the placement-facts read’s relayed refusal:child-not-in-caseorplacement-facts-clock-drift, or an icwa_transfer_denied without an icwa_transfer_requested of yes, or an icwa_denial answer without an icwa_transfer_denied of yes (structural-mismatch) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
409:
episode-overlap(the child already has a live episode over the same instants),concurrent-modification(the case assignment changed since authorization — re-read and retry), or client_request_id claimed by a different operation / replayed entity gone; or the placement-facts read’s relayedcase-closed— the case is closed or transferred -
422: Validation failure (including a missing client_request_id, or a missing removal-answer key), or
child-dob-missing(the placement-facts read) -
503: craig-cases did not answer the child placement-facts read (fail-closed; retry)
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Record a historical episode: an episode that has already ended, recorded together with its root removal and root exit responses
POST /v1/placement/episodes/historical
| Field | Type | Required | Description |
|---|---|---|---|
adoptive_icwa_available_extended_family |
enum (yes, no, not_applicable) (optional) |
Yes |
(i)(10) a member of the Indian child’s extended family was available. |
adoptive_icwa_available_other_indian_families |
enum (yes, no, not_applicable) (optional) |
Yes |
(i)(10) other Indian families were available. |
adoptive_icwa_available_tribe_members |
enum (yes, no, not_applicable) (optional) |
Yes |
(i)(10) other members of the Indian child’s Tribe were available. |
adoptive_icwa_available_tribe_order_of_preference |
enum (yes, no, not_applicable) (optional) |
Yes |
(i)(10) a placement complying with the Tribe’s order of preference was available. |
adoptive_icwa_good_cause |
enum (yes, no) (optional) |
Yes |
(i)(12) good cause to depart from the preferences — only when (i)(11) misses them. |
adoptive_icwa_good_cause_basis_extraordinary_needs |
enum (yes, no) (optional) |
Yes |
(i)(13) the child’s extraordinary needs — same gate. |
adoptive_icwa_good_cause_basis_no_suitable_placement |
enum (yes, no) (optional) |
Yes |
(i)(13) no suitable placement after a diligent search — same gate. |
adoptive_icwa_good_cause_basis_parents_request |
enum (yes, no) (optional) |
Yes |
(i)(13) at the request of one or both of the child’s parents — only on an (i)(12) |
adoptive_icwa_good_cause_basis_request_of_the_indian_child |
enum (yes, no) (optional) |
Yes |
(i)(13) at the Indian child’s request — same gate. |
adoptive_icwa_good_cause_basis_sibling_attachment |
enum (yes, no) (optional) |
Yes |
(i)(13) a sibling attachment kept only by this placement — same gate. |
adoptive_icwa_preference_met |
enum (a_member_of_the_indian_childs_extended_family, other_members_of_the_indian_childs_tribe, other_indian_families, a_placement_that_complies_with_the_order_of_preference_for_adoptive_placements_established_by_an_indian_childs_tribe, placement_does_not_meet_icwa_placement_preferences) (optional) |
Yes |
(i)(11) the ICWA adoptive preference the adoption met. |
adoptive_marital_status |
enum (married_couple, married_but_individually_adopting_or_obtaining_legal_guardianship, separated, unmarried_couple, single_adult) (optional) |
Yes |
(h)(1) the adoptive parents' or guardians' marital status. |
case_id |
UUID |
Yes |
The case the removal was under. |
child_id |
UUID |
Yes |
The child removed (craig-cases person id). |
circumstance_abandonment |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_caretakers_alcohol_use |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_caretakers_drug_use |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_caretakers_impairment_physical_emotional |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_caretakers_significant_impairment_cognitive |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_child_alcohol_use |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_child_behavior_problem |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_child_drug_use |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_child_requested_placement |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_death_of_caretaker |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_diagnosed_condition |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_domestic_violence |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_educational_neglect |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_failure_to_return |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_family_conflict_orientation_gender_identity |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_homelessness |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_inadequate_access_to_medical_services |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_inadequate_access_to_mental_health_services |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_inadequate_housing |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_incarceration_of_caretaker |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_medical_neglect |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_neglect |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_parental_immigration_detainment_or_deportation |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_physical_abuse |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_prenatal_alcohol_exposure |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_prenatal_drug_exposure |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_psychological_or_emotional_abuse |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_public_agency_title_iv_e_agreement |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_runaway |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_sex_trafficking |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_sexual_abuse |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_tribal_title_iv_e_agreement |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_voluntary_relinquishment_for_adoption |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_whereabouts_unknown |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
environment |
enum (parent_household, relative_household, legal_guardian_household, relative_legal_guardian_household, justice_facility, medical_mental_health_facility, other) (optional) |
Yes |
(d)(3) the child’s environment at the removal. |
exit_at |
datetime |
Yes |
The instant the agency’s placement and care responsibility ended (after the episode’s removal, never after now). |
exit_reason |
enum (reunify_with_parents_legal_guardians, live_with_other_relatives, adoption, emancipation, guardianship, runaway_or_whereabouts_unknown, death_of_child, transfer_to_another_agency) |
Yes |
Why an episode ended — the (g)(3) exit reason (oohc.g3.2022-10-01) minus
|
first_adoptive_parent_person_id |
UUID (optional) |
Yes |
(h)(3)–(h)(7): the first adoptive parent or guardian, a craig-cases person (never the episode’s child). |
icwa_active_efforts |
enum (yes, no) (optional) |
Yes |
(i)(4)(iii) active efforts were made. |
icwa_clear_and_convincing_evidence |
enum (yes, no) (optional) |
Yes |
(i)(4)(i) the removal rests on clear and convincing evidence. |
icwa_denial_parents_objected |
enum (applies, does_not_apply) (optional) |
Yes |
(i)(1)(iii) |
icwa_denial_state_court_good_cause |
enum (applies, does_not_apply) (optional) |
Yes |
(i)(1)(iii) |
icwa_denial_tribal_court_declined |
enum (applies, does_not_apply) (optional) |
Yes |
(i)(1)(iii) |
icwa_qualified_expert_witness |
enum (yes, no) (optional) |
Yes |
(i)(4)(ii) a qualified expert witness testified. |
icwa_transfer_denied |
enum (yes, no) (optional) |
Yes |
(i)(1)(ii) the transfer was denied; only on an (i)(1)(i) |
icwa_transfer_requested |
enum (yes, no) (optional) |
Yes |
(i)(1)(i) a transfer to tribal court was requested. |
jurisdiction_kind |
enum (interjurisdictional_adoption_or_guardianship, intercountry_adoption_or_guardianship, intrajurisdictional_adoption_or_guardianship) (optional) |
Yes |
(h)(13) where the child was placed for adoption or guardianship. |
relationship_foster_parents |
enum (applies, does_not_apply) (optional) |
Yes |
(h)(2) the adoptive parents or guardians were the child’s foster parents. |
relationship_kin |
enum (applies, does_not_apply) (optional) |
Yes |
(h)(2) the child is kin of the adoptive parents or guardians. |
relationship_non_relatives |
enum (applies, does_not_apply) (optional) |
Yes |
(h)(2) the child is not related to the adoptive parents or guardians. |
relationship_relatives |
enum (applies, does_not_apply) (optional) |
Yes |
(h)(2) the child is a relative of the adoptive parents or guardians. |
removal_at |
datetime |
Yes |
The instant the child was removed from home (never after now). |
removal_manner |
enum (voluntary_placement_agreement, court_ordered_removal) |
Yes |
Manner of removal from home — the removal response’s |
second_adoptive_parent_person_id |
UUID (optional) |
Yes |
(h)(8)–(h)(12): the second adoptive parent, guardian or other member of the couple — only beside a first, never the same person; need not adopt. |
siblings_in_home |
integer (optional) |
Yes |
(h)(15) the child’s siblings in the adoptive or guardianship home, 0–999; never beside
|
siblings_not_applicable |
boolean (optional) |
Yes |
(h)(15)'s |
transfer_agency_type |
TransferAgencyType (optional) |
No |
Transfer agency type |
-
201: Historical episode recorded — the same answer on a replay of the same
client_request_id(a replay answers even while craig-cases is down) -
400:
ledger-instant-after-now(removal_at or exit_at is in the future),exit-before-removal(exit_at is at or before removal_at), or the placement-facts read’s relayed refusal:child-not-in-caseorplacement-facts-clock-drift, or an icwa_transfer_denied without an icwa_transfer_requested of yes, or an icwa_denial answer without an icwa_transfer_denied of yes (structural-mismatch), or an adoption / guardianship answer off an adoption or guardianship exit, an adoptive_icwa answer off an adoption exit, a siblings count besidesiblings_not_applicable, or an adoptive ICWA answer off its gate (structural-mismatch) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
409:
episode-overlap(the child already has a live episode over the same instants),concurrent-modification(the case assignment changed since authorization — re-read and retry), or client_request_id claimed by a different operation / replayed entity gone; or the placement-facts read’s relayedcase-closed— the case is closed or transferred -
422: Validation failure (including a missing client_request_id, a missing removal-answer key, or the (g)(4) mismatch: transfer_agency_type is required exactly when exit_reason is
transfer_to_another_agency), orchild-dob-missing(the placement-facts read), a missing exit-answer key, a siblings count outside 0–999 or afalsesiblings_not_applicable, or an adoptive slot that names no craig-cases person, the episode’s child, the other slot’s person, or a second without a first -
503: craig-cases did not answer the child placement-facts read, or could not confirm an adoptive parent within the budget (fail-closed; retry)
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Record the episode’s exit: its root exit response, which ends the episode
POST /v1/placement/episodes/{id}/exit
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Removal episode ID |
| Field | Type | Required | Description |
|---|---|---|---|
adoptive_icwa_available_extended_family |
enum (yes, no, not_applicable) (optional) |
Yes |
(i)(10) a member of the Indian child’s extended family was available. |
adoptive_icwa_available_other_indian_families |
enum (yes, no, not_applicable) (optional) |
Yes |
(i)(10) other Indian families were available. |
adoptive_icwa_available_tribe_members |
enum (yes, no, not_applicable) (optional) |
Yes |
(i)(10) other members of the Indian child’s Tribe were available. |
adoptive_icwa_available_tribe_order_of_preference |
enum (yes, no, not_applicable) (optional) |
Yes |
(i)(10) a placement complying with the Tribe’s order of preference was available. |
adoptive_icwa_good_cause |
enum (yes, no) (optional) |
Yes |
(i)(12) good cause to depart from the preferences — only when (i)(11) misses them. |
adoptive_icwa_good_cause_basis_extraordinary_needs |
enum (yes, no) (optional) |
Yes |
(i)(13) the child’s extraordinary needs — same gate. |
adoptive_icwa_good_cause_basis_no_suitable_placement |
enum (yes, no) (optional) |
Yes |
(i)(13) no suitable placement after a diligent search — same gate. |
adoptive_icwa_good_cause_basis_parents_request |
enum (yes, no) (optional) |
Yes |
(i)(13) at the request of one or both of the child’s parents — only on an (i)(12) |
adoptive_icwa_good_cause_basis_request_of_the_indian_child |
enum (yes, no) (optional) |
Yes |
(i)(13) at the Indian child’s request — same gate. |
adoptive_icwa_good_cause_basis_sibling_attachment |
enum (yes, no) (optional) |
Yes |
(i)(13) a sibling attachment kept only by this placement — same gate. |
adoptive_icwa_preference_met |
enum (a_member_of_the_indian_childs_extended_family, other_members_of_the_indian_childs_tribe, other_indian_families, a_placement_that_complies_with_the_order_of_preference_for_adoptive_placements_established_by_an_indian_childs_tribe, placement_does_not_meet_icwa_placement_preferences) (optional) |
Yes |
(i)(11) the ICWA adoptive preference the adoption met. |
adoptive_marital_status |
enum (married_couple, married_but_individually_adopting_or_obtaining_legal_guardianship, separated, unmarried_couple, single_adult) (optional) |
Yes |
(h)(1) the adoptive parents' or guardians' marital status. |
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
exit_at |
datetime |
Yes |
The instant the agency’s placement and care responsibility ended (after the episode’s removal, never after now). |
exit_reason |
enum (reunify_with_parents_legal_guardians, live_with_other_relatives, adoption, emancipation, guardianship, runaway_or_whereabouts_unknown, death_of_child, transfer_to_another_agency) |
Yes |
Why an episode ended — the (g)(3) exit reason (oohc.g3.2022-10-01) minus
|
first_adoptive_parent_person_id |
UUID (optional) |
Yes |
(h)(3)–(h)(7): the first adoptive parent or guardian, a craig-cases person (never the episode’s child). |
jurisdiction_kind |
enum (interjurisdictional_adoption_or_guardianship, intercountry_adoption_or_guardianship, intrajurisdictional_adoption_or_guardianship) (optional) |
Yes |
(h)(13) where the child was placed for adoption or guardianship. |
relationship_foster_parents |
enum (applies, does_not_apply) (optional) |
Yes |
(h)(2) the adoptive parents or guardians were the child’s foster parents. |
relationship_kin |
enum (applies, does_not_apply) (optional) |
Yes |
(h)(2) the child is kin of the adoptive parents or guardians. |
relationship_non_relatives |
enum (applies, does_not_apply) (optional) |
Yes |
(h)(2) the child is not related to the adoptive parents or guardians. |
relationship_relatives |
enum (applies, does_not_apply) (optional) |
Yes |
(h)(2) the child is a relative of the adoptive parents or guardians. |
second_adoptive_parent_person_id |
UUID (optional) |
Yes |
(h)(8)–(h)(12): the second adoptive parent, guardian or other member of the couple — only beside a first, never the same person; need not adopt. |
siblings_in_home |
integer (optional) |
Yes |
(h)(15) the child’s siblings in the adoptive or guardianship home, 0–999; never beside
|
siblings_not_applicable |
boolean (optional) |
Yes |
(h)(15)'s |
transfer_agency_type |
TransferAgencyType (optional) |
No |
Transfer agency type |
-
200: The episode with its exit response (or replayed — same client_request_id + intent; a replay answers even while craig-cases is down)
-
400:
ledger-instant-after-now(exit_at is in the future), orexit-before-removal(exit_at is at or before the episode’s removal), or an adoption / guardianship answer off an adoption or guardianship exit, an adoptive_icwa answer off an adoption exit, a siblings count besidesiblings_not_applicable, or an adoptive ICWA answer off its gate (structural-mismatch) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404: Removal episode not found
-
409:
episode-retracted,episode-already-exited(the episode has a live exit — correct or retract it),episode-has-open-arrangement(a planned or active arrangement references the episode — end or cancel it first),arrangement-outside-episode(an ended arrangement runs past the exit),concurrent-modification(the case assignment changed since authorization), or client_request_id claimed by a different operation / replayed entity gone -
422: Validation failure (including a missing client_request_id, or the (g)(4) mismatch: transfer_agency_type is required exactly when exit_reason is
transfer_to_another_agency), a missing exit-answer key, a siblings count outside 0–999 or afalsesiblings_not_applicable, or an adoptive slot that names no craig-cases person, the episode’s child, the other slot’s person, or a second without a first -
503: craig-cases could not confirm an adoptive parent within the budget (
person-lookup-unavailable; fail-closed, retry) -
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Correct the episode’s live exit response: the complete corrected statement supersedes it
POST /v1/placement/episodes/{id}/exit/{row_id}/corrections
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Removal episode ID |
row_id |
path |
Yes |
The live exit response being corrected |
| Field | Type | Required | Description |
|---|---|---|---|
adoptive_icwa_available_extended_family |
enum (yes, no, not_applicable) (optional) |
Yes |
(i)(10) a member of the Indian child’s extended family was available. |
adoptive_icwa_available_other_indian_families |
enum (yes, no, not_applicable) (optional) |
Yes |
(i)(10) other Indian families were available. |
adoptive_icwa_available_tribe_members |
enum (yes, no, not_applicable) (optional) |
Yes |
(i)(10) other members of the Indian child’s Tribe were available. |
adoptive_icwa_available_tribe_order_of_preference |
enum (yes, no, not_applicable) (optional) |
Yes |
(i)(10) a placement complying with the Tribe’s order of preference was available. |
adoptive_icwa_good_cause |
enum (yes, no) (optional) |
Yes |
(i)(12) good cause to depart from the preferences — only when (i)(11) misses them. |
adoptive_icwa_good_cause_basis_extraordinary_needs |
enum (yes, no) (optional) |
Yes |
(i)(13) the child’s extraordinary needs — same gate. |
adoptive_icwa_good_cause_basis_no_suitable_placement |
enum (yes, no) (optional) |
Yes |
(i)(13) no suitable placement after a diligent search — same gate. |
adoptive_icwa_good_cause_basis_parents_request |
enum (yes, no) (optional) |
Yes |
(i)(13) at the request of one or both of the child’s parents — only on an (i)(12) |
adoptive_icwa_good_cause_basis_request_of_the_indian_child |
enum (yes, no) (optional) |
Yes |
(i)(13) at the Indian child’s request — same gate. |
adoptive_icwa_good_cause_basis_sibling_attachment |
enum (yes, no) (optional) |
Yes |
(i)(13) a sibling attachment kept only by this placement — same gate. |
adoptive_icwa_preference_met |
enum (a_member_of_the_indian_childs_extended_family, other_members_of_the_indian_childs_tribe, other_indian_families, a_placement_that_complies_with_the_order_of_preference_for_adoptive_placements_established_by_an_indian_childs_tribe, placement_does_not_meet_icwa_placement_preferences) (optional) |
Yes |
(i)(11) the ICWA adoptive preference the adoption met. |
adoptive_marital_status |
enum (married_couple, married_but_individually_adopting_or_obtaining_legal_guardianship, separated, unmarried_couple, single_adult) (optional) |
Yes |
(h)(1) the adoptive parents' or guardians' marital status. |
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
exit_at |
datetime |
Yes |
The instant the agency’s placement and care responsibility ended (after the episode’s removal, never after now). |
exit_reason |
enum (reunify_with_parents_legal_guardians, live_with_other_relatives, adoption, emancipation, guardianship, runaway_or_whereabouts_unknown, death_of_child, transfer_to_another_agency) |
Yes |
Why an episode ended — the (g)(3) exit reason (oohc.g3.2022-10-01) minus
|
first_adoptive_parent_person_id |
UUID (optional) |
Yes |
(h)(3)–(h)(7): the first adoptive parent or guardian, a craig-cases person (never the episode’s child). |
jurisdiction_kind |
enum (interjurisdictional_adoption_or_guardianship, intercountry_adoption_or_guardianship, intrajurisdictional_adoption_or_guardianship) (optional) |
Yes |
(h)(13) where the child was placed for adoption or guardianship. |
relationship_foster_parents |
enum (applies, does_not_apply) (optional) |
Yes |
(h)(2) the adoptive parents or guardians were the child’s foster parents. |
relationship_kin |
enum (applies, does_not_apply) (optional) |
Yes |
(h)(2) the child is kin of the adoptive parents or guardians. |
relationship_non_relatives |
enum (applies, does_not_apply) (optional) |
Yes |
(h)(2) the child is not related to the adoptive parents or guardians. |
relationship_relatives |
enum (applies, does_not_apply) (optional) |
Yes |
(h)(2) the child is a relative of the adoptive parents or guardians. |
second_adoptive_parent_person_id |
UUID (optional) |
Yes |
(h)(8)–(h)(12): the second adoptive parent, guardian or other member of the couple — only beside a first, never the same person; need not adopt. |
siblings_in_home |
integer (optional) |
Yes |
(h)(15) the child’s siblings in the adoptive or guardianship home, 0–999; never beside
|
siblings_not_applicable |
boolean (optional) |
Yes |
(h)(15)'s |
transfer_agency_type |
TransferAgencyType (optional) |
No |
Transfer agency type |
-
200: The episode with its successor exit response (or replayed — same client_request_id + intent; a replay answers even while craig-cases is down)
-
400:
ledger-instant-after-now(exit_at is in the future),response-after-recording(the exit date is after the date the exit response chain was first recorded), orexit-before-removal(exit_at is at or before the episode’s removal), or an adoption / guardianship answer off an adoption or guardianship exit, an adoptive_icwa answer off an adoption exit, a siblings count besidesiblings_not_applicable, or an adoptive ICWA answer off its gate (structural-mismatch) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404: Removal episode not found, or
ledger-row-not-found(the exit response is absent, retired, superseded or of another episode — nothing written) -
409:
episode-retracted,episode-overlap(the moved exit would overlap the child’s later episode),arrangement-outside-episode(an ended arrangement runs past the new exit),concurrent-modification(the case assignment changed since authorization), or client_request_id claimed by a different operation / replayed entity gone -
422: Validation failure (including a missing client_request_id, or the (g)(4) mismatch: transfer_agency_type is required exactly when exit_reason is
transfer_to_another_agency), a missing exit-answer key, a siblings count outside 0–999 or afalsesiblings_not_applicable, or an adoptive slot that names no craig-cases person, the episode’s child, the other slot’s person, or a second without a first -
503: craig-cases could not confirm an adoptive parent within the budget (
person-lookup-unavailable; fail-closed, retry) -
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Retract the episode’s live exit response entered in error: the episode is in care again
POST /v1/placement/episodes/{id}/exit/{row_id}/retract
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Removal episode ID |
row_id |
path |
Yes |
The live exit response being retracted |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
note |
string |
Yes |
Why the row was entered in error (stored as |
-
200: The re-opened episode;
exitandexit_atare null (or replayed — same client_request_id + intent) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused, before any episode lookup
-
404: Removal episode not found, or
ledger-row-not-found(the exit response is absent, retired, superseded or of another episode — nothing written) -
409:
episode-retracted,later-episode-exists(the child has a later live episode the re-opened window would overlap — retract or correct it first),concurrent-modification(the case assignment changed since authorization), or client_request_id claimed by a different operation / replayed entity gone -
422: Validation failure (including a missing client_request_id, an empty note, or a NUL (U+0000) in
note—validation-failednamingnote, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Correct the episode’s live removal response: the complete corrected statement supersedes it
POST /v1/placement/episodes/{id}/removal/{row_id}/corrections
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Removal episode ID |
row_id |
path |
Yes |
The live removal response being corrected |
| Field | Type | Required | Description |
|---|---|---|---|
circumstance_abandonment |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_caretakers_alcohol_use |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_caretakers_drug_use |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_caretakers_impairment_physical_emotional |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_caretakers_significant_impairment_cognitive |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_child_alcohol_use |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_child_behavior_problem |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_child_drug_use |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_child_requested_placement |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_death_of_caretaker |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_diagnosed_condition |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_domestic_violence |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_educational_neglect |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_failure_to_return |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_family_conflict_orientation_gender_identity |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_homelessness |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_inadequate_access_to_medical_services |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_inadequate_access_to_mental_health_services |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_inadequate_housing |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_incarceration_of_caretaker |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_medical_neglect |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_neglect |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_parental_immigration_detainment_or_deportation |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_physical_abuse |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_prenatal_alcohol_exposure |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_prenatal_drug_exposure |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_psychological_or_emotional_abuse |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_public_agency_title_iv_e_agreement |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_runaway |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_sex_trafficking |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_sexual_abuse |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_tribal_title_iv_e_agreement |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_voluntary_relinquishment_for_adoption |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
circumstance_whereabouts_unknown |
enum (applies, does_not_apply) (optional) |
Yes |
(d)(4) |
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
environment |
enum (parent_household, relative_household, legal_guardian_household, relative_legal_guardian_household, justice_facility, medical_mental_health_facility, other) (optional) |
Yes |
(d)(3) the child’s environment at the removal. |
icwa_active_efforts |
enum (yes, no) (optional) |
Yes |
(i)(4)(iii) active efforts were made. |
icwa_clear_and_convincing_evidence |
enum (yes, no) (optional) |
Yes |
(i)(4)(i) the removal rests on clear and convincing evidence. |
icwa_denial_parents_objected |
enum (applies, does_not_apply) (optional) |
Yes |
(i)(1)(iii) |
icwa_denial_state_court_good_cause |
enum (applies, does_not_apply) (optional) |
Yes |
(i)(1)(iii) |
icwa_denial_tribal_court_declined |
enum (applies, does_not_apply) (optional) |
Yes |
(i)(1)(iii) |
icwa_qualified_expert_witness |
enum (yes, no) (optional) |
Yes |
(i)(4)(ii) a qualified expert witness testified. |
icwa_transfer_denied |
enum (yes, no) (optional) |
Yes |
(i)(1)(ii) the transfer was denied; only on an (i)(1)(i) |
icwa_transfer_requested |
enum (yes, no) (optional) |
Yes |
(i)(1)(i) a transfer to tribal court was requested. |
removal_at |
datetime |
Yes |
The instant the child was removed from home (never after now). |
removal_manner |
enum (voluntary_placement_agreement, court_ordered_removal) |
Yes |
Manner of removal from home — the removal response’s |
-
200: The episode with its successor response (or replayed — same client_request_id + intent)
-
400:
ledger-instant-after-now(removal_at is in the future),response-after-recording(the removal date is after the date the response chain was first recorded), orexit-before-removal(removal_at is at or after the episode’s exit), or an icwa_transfer_denied without an icwa_transfer_requested of yes, or an icwa_denial answer without an icwa_transfer_denied of yes (structural-mismatch) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404: Removal episode not found, or
ledger-row-not-found(the response is absent, retired, superseded or of another episode — nothing written) -
409:
episode-retracted,episode-overlap,arrangement-outside-episode(the new removal postdates an arrangement’s start),concurrent-modification(the case assignment changed since authorization), or client_request_id claimed by a different operation / replayed entity gone -
422: Validation failure (including a missing client_request_id, or a missing removal-answer key)
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Retract a removal episode entered in error: its live removal response, its live exit response (if any) and its live trafficking statements and reports are retired and the episode takes no further act
POST /v1/placement/episodes/{id}/retract
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Removal episode ID |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
note |
string |
Yes |
Why the row was entered in error (stored as |
-
200: The retracted episode with its retired removal response and, when it had exited, its retired exit response; its live trafficking statements and reports are retired with it (or replayed — same client_request_id + intent)
-
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused, before any episode lookup
-
404: Removal episode not found
-
409:
episode-retracted,episode-has-arrangements(a planned, active or ended arrangement still references the episode),concurrent-modification(the case assignment changed since authorization), or client_request_id claimed by a different operation / replayed entity gone -
422: Validation failure (including a missing client_request_id, an empty note, or a NUL (U+0000) in
note—validation-failednamingnote, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
An episode’s trafficking statements, or the one in force on a date
GET /v1/placement/episodes/{id}/trafficking
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Removal episode ID |
as_of |
query |
No |
The anchor date. Absent = the history: every live row, current first
by the ledger’s order (each route states it; |
-
200: Without as_of the live statements, latest-dated first; with it the statement in force on that date (at most one)
-
400: A malformed query parameter (e.g. a non-date
as_of) is the extractor’s value-freebad-requestproblem, before the handler; a date before -4713-11-24 (PostgreSQL’s minimum) isledger-date-before-minimum -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404: Removal episode not found
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Record a trafficking statement: what was known on stated_on of the child’s (d)(5) / (d)(6) victimization — a changed answer is a new statement
POST /v1/placement/episodes/{id}/trafficking
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Removal episode ID |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
in_care_reported |
enum (yes, no) (optional) |
Yes |
(d)(6)(i) that victimization was reported to law enforcement (only
on a (d)(6) |
in_care_victim |
enum (yes, no) (optional) |
Yes |
(d)(6) a victim of sex trafficking while in foster care. |
prior_reported |
enum (yes, no) (optional) |
Yes |
(d)(5)(i) that victimization was reported to law enforcement (only
on a (d)(5) |
prior_reported_on |
date (optional) |
Yes |
(d)(5)(ii) the date of that report (only on a (d)(5)(i) |
prior_victim |
enum (yes, no) (optional) |
Yes |
(d)(5) a victim of sex trafficking before entering foster care. |
stated_on |
date |
Yes |
The event date: the day these answers were known (never after today on the jurisdiction clock). |
-
200: The recorded statement (or replayed — same client_request_id + intent)
-
400:
ledger-date-after-today(orledger-date-before-minimum, a date before -4713-11-24) (stated_on after today),ledger-fact-date-after-event(prior_reported_on after stated_on), orstructural-mismatch(a leaf without its parent’syes) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404: Removal episode not found
-
409:
episode-retracted,concurrent-modification(the case assignment changed since authorization), or client_request_id claimed by a different operation / replayed entity gone -
422: Validation failure (including a missing client_request_id or a missing answer key — send
nullfor unanswered) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
An episode’s law-enforcement reports, or those dated on or before a date
GET /v1/placement/episodes/{id}/trafficking-reports
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Removal episode ID |
as_of |
query |
No |
The cutoff date. Absent = the history: every live row, current first
by the ledger’s order (each route states it). Present = every live
row whose event date is on or before |
-
200: Every live report, latest-dated first; with as_of only those dated on or before it
-
400: A malformed query parameter (e.g. a non-date
as_of) is the extractor’s value-freebad-requestproblem, before the handler; a date before -4713-11-24 (PostgreSQL’s minimum) isledger-date-before-minimum -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404: Removal episode not found
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Record a report of the in-care victimization to law enforcement d)(6)(ii
POST /v1/placement/episodes/{id}/trafficking-reports
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Removal episode ID |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
reported_on |
date |
Yes |
The event date: the day the report was made. |
-
200: The recorded report (or replayed — same client_request_id + intent)
-
400:
ledger-date-after-today(orledger-date-before-minimum, a date before -4713-11-24) (reported_on after today) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404: Removal episode not found
-
409:
episode-retracted,concurrent-modification(the case assignment changed since authorization), or client_request_id claimed by a different operation / replayed entity gone -
422: Validation failure (including a missing client_request_id or reported_on)
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Correct a law-enforcement report entered wrongly (the complete corrected report)
POST /v1/placement/episodes/{id}/trafficking-reports/{row_id}/corrections
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Removal episode ID |
row_id |
path |
Yes |
The live report to correct |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
reported_on |
date |
Yes |
The event date: the day the report was made. |
-
200: The correcting report, which supersedes the corrected one (or replayed — same client_request_id + intent)
-
400:
ledger-date-after-today(orledger-date-before-minimum, a date before -4713-11-24) (reported_on after today) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404: Removal episode not found, or
ledger-row-not-found(the row is not a live report of this episode) -
409:
episode-retracted,concurrent-modification(the case assignment changed since authorization), or client_request_id claimed by a different operation / replayed entity gone -
422: Validation failure (including a missing client_request_id or reported_on)
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Retract a law-enforcement report entered in error
POST /v1/placement/episodes/{id}/trafficking-reports/{row_id}/retract
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Removal episode ID |
row_id |
path |
Yes |
The live report to retract |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
note |
string |
Yes |
Why the row was entered in error (stored as |
-
200: The retracted report, retired
retracted(or replayed — same client_request_id + intent) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused, before any episode lookup
-
404: Removal episode not found, or
ledger-row-not-found(the row is not a live report of this episode — nothing written) -
409:
episode-retracted,concurrent-modification(the case assignment changed since authorization), or client_request_id claimed by a different operation / replayed entity gone -
422: Validation failure (including a missing client_request_id, an empty note, or a NUL (U+0000) in
note—validation-failednamingnote, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Correct a trafficking statement entered wrongly (the complete corrected statement)
POST /v1/placement/episodes/{id}/trafficking/{row_id}/corrections
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Removal episode ID |
row_id |
path |
Yes |
The live statement to correct |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
in_care_reported |
enum (yes, no) (optional) |
Yes |
(d)(6)(i) that victimization was reported to law enforcement (only
on a (d)(6) |
in_care_victim |
enum (yes, no) (optional) |
Yes |
(d)(6) a victim of sex trafficking while in foster care. |
prior_reported |
enum (yes, no) (optional) |
Yes |
(d)(5)(i) that victimization was reported to law enforcement (only
on a (d)(5) |
prior_reported_on |
date (optional) |
Yes |
(d)(5)(ii) the date of that report (only on a (d)(5)(i) |
prior_victim |
enum (yes, no) (optional) |
Yes |
(d)(5) a victim of sex trafficking before entering foster care. |
stated_on |
date |
Yes |
The event date: the day these answers were known (never after today on the jurisdiction clock). |
-
200: The correcting statement, which supersedes the corrected one (or replayed — same client_request_id + intent)
-
400:
ledger-date-after-today(orledger-date-before-minimum, a date before -4713-11-24) (stated_on after today),ledger-fact-date-after-event(prior_reported_on after stated_on), orstructural-mismatch(a leaf without its parent’syes) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused
-
404: Removal episode not found, or
ledger-row-not-found(the row is not a live statement of this episode) -
409:
episode-retracted,concurrent-modification(the case assignment changed since authorization), or client_request_id claimed by a different operation / replayed entity gone -
422: Validation failure (including a missing client_request_id or a missing answer key — send
nullfor unanswered) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Retract a trafficking statement entered in error
POST /v1/placement/episodes/{id}/trafficking/{row_id}/retract
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Removal episode ID |
row_id |
path |
Yes |
The live statement to retract |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
note |
string |
Yes |
Why the row was entered in error (stored as |
-
200: The retracted statement, retired
retracted(or replayed — same client_request_id + intent) -
401: Unauthorized
-
403: Forbidden — a pure service principal is always refused, before any episode lookup
-
404: Removal episode not found, or
ledger-row-not-found(the row is not a live statement of this episode — nothing written) -
409:
episode-retracted,concurrent-modification(the case assignment changed since authorization), or client_request_id claimed by a different operation / replayed entity gone -
422: Validation failure (including a missing client_request_id, an empty note, or a NUL (U+0000) in
note—validation-failednamingnote, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
List placements
GET /v1/placement/placements
| Name | In | Required | Description |
|---|---|---|---|
page |
query |
No |
1-based page number (default 1); a page past the depth cap is 400. |
per_page |
query |
No |
Rows per page (default 25, at most 500); 0 returns only the total. |
case_id |
query |
No |
Only placements of this case. |
child_id |
query |
No |
Only placements of this child. |
foster_home_id |
query |
No |
Only placements in this foster home or provider. |
status |
query |
No |
Only placements whose stored status equals this token. |
search |
query |
No |
Full-text search across |
sort_by |
query |
No |
Sort column: |
sort_dir |
query |
No |
Sort direction: asc or desc (default: desc). |
-
200: Page of placements
-
400: A page past the depth cap; a malformed query parameter (e.g. a non-UUID
case_id) is the extractor’s value-freebad-requestproblem, before the handler -
401: Unauthorized
-
403: Forbidden
-
422: A filter over its length cap:
status/sort_by/sort_dir32,search500 bytes (validation-failed) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Create placement
POST /v1/placement/placements
| Field | Type | Required | Description |
|---|---|---|---|
arrangement_jurisdiction |
string (optional) |
Yes |
(e)(6): the state, tribal service area or country the child lives in —
free text until the ACF format lands; trimmed, 1–255 characters.
A NUL (U+0000), which the column cannot store, is a 422
|
arrangement_location |
ArrangementLocation (optional) |
Yes |
Arrangement location |
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. Same id + identical intent replays the original placement (the capacity guard and activation event never re-run); a different intent under the same id is a 409 idempotency-conflict. |
episode_id |
UUID |
Yes |
The removal episode this arrangement answers. The
placement’s case and child DERIVE from it (404 on an unknown
episode); a retracted or closed episode takes no new arrangement
(409 |
ffh_types |
array of FosterFamilyHomeType (optional) |
No |
(e)(3): the applying foster-family-home categories — present
(possibly empty) exactly on a |
foster_home_id |
UUID (optional) |
No |
The foster home or congregate provider; required for a congregate setting, refused for a non-caregiving one, and omitted for a home-less family arrangement. |
foster_parents_marital_status |
FosterParentsMaritalStatus (optional) |
Yes |
Foster parents marital status |
icwa_available_a_member_of_the_indian_childs_extended_family |
YesNoNotApplicable (optional) |
Yes |
Icwa available a member of the indian childs extended family |
icwa_available_indian_foster_home_non_indian_licensed |
YesNoNotApplicable (optional) |
Yes |
Icwa available indian foster home non indian licensed |
icwa_available_indian_institution |
YesNoNotApplicable (optional) |
Yes |
Icwa available indian institution |
icwa_available_tribe_licensed_foster_home |
YesNoNotApplicable (optional) |
Yes |
Icwa available tribe licensed foster home |
icwa_available_tribe_order_of_preference |
YesNoNotApplicable (optional) |
Yes |
Icwa available tribe order of preference |
icwa_good_cause |
YesNo (optional) |
Yes |
Icwa good cause |
icwa_good_cause_basis_extraordinary_needs |
YesNo (optional) |
Yes |
Icwa good cause basis extraordinary needs |
icwa_good_cause_basis_no_suitable_placement |
YesNo (optional) |
Yes |
Icwa good cause basis no suitable placement |
icwa_good_cause_basis_parents_request |
YesNo (optional) |
Yes |
Icwa good cause basis parents request |
icwa_good_cause_basis_request_of_the_indian_child |
YesNo (optional) |
Yes |
Icwa good cause basis request of the indian child |
icwa_good_cause_basis_sibling_attachment |
YesNo (optional) |
Yes |
Icwa good cause basis sibling attachment |
icwa_preference_met |
IcwaFosterCarePreference (optional) |
Yes |
Icwa preference met |
kinship_household |
KinshipHouseholdChoice (optional) |
No |
Kinship household |
placement_type |
string |
Yes |
The setting token from the placement-type vocabulary; an unknown one is 400. |
relationship_to_foster_parents |
FosterParentsRelationship (optional) |
Yes |
Relationship to foster parents |
replaces_placement_id |
UUID (optional) |
No |
The retracted arrangement of the same episode this create re-records;
409 |
started_at |
datetime |
Yes |
A birth- |
status |
string |
No |
Initial status, |
-
200: Placement created (or replayed — same client_request_id + intent)
-
400: Validation failure — placements are born
plannedoractive, neverended; or a birth-activestart outside[removal_at, now()]of the episode (activation-start-out-of-range); or, on a birth-activecreate of a caregiving setting (a non-caregiving one reads no facts), craig-cases' relayed refusal of the child’s placement facts — the child is not an active child of the case (child-not-in-case) or the projection’s clock disagrees with the request’s business date (placement-facts-clock-drift); or ffh_types absent on a family setting (required-field-missing) or present on another / repeated (structural-mismatch); a congregate setting without a provider (required-field-missing); a non-caregiving setting naming one (structural-mismatch); a provider of the wrong kind (setting-provider-mismatch); or a kinship_household on any arrangement but a home-less foster_family_home (structural-mismatch), an unknownkinship_household.new.admin_unit(invalid-enum-value), or a minted household’s unit named beside the episode’s unit stamp (structural-mismatch) or named nowhere (required-field-missing); or an arrangement fact its setting or a sibling fact does not admit — a blank or over-long arrangement_jurisdiction, an arrangement_location that disagrees with a runaway / whereabouts setting, an arrangement_jurisdiction off an out-of-state / out-of-country location, foster-parent facts off foster_family_home, icwa_good_cause without the unmet preference, an icwa_good_cause_basis answer without icwa_good_cause yes (structural-mismatch) -
401: Unauthorized
-
403: Forbidden — including a pure service caller, refused before the episode lookup, and a caregiving birth-active create whose relayed eligibility consult craig-rules refused (problem type
rules-consult-denied) or whose relayed child placement-facts read craig-cases refused; orkinship_household.existingnames a household the caller cannot read -
404: The named removal episode does not exist
-
409: client_request_id claimed by a different operation, replayed entity gone, case assignment or foster-home eligibility facts changed since authorization / consult — re-read and retry; or the episode is retracted (
episode-retracted) or closed (episode-closed), or the birth-active arrangement would overlap another activated arrangement of the child (arrangement-overlap) or lie outside its episode (arrangement-outside-episode); orreplaces_placement_idnames no retracted, not-yet-replaced arrangement of the same episode (invalid-replacement); or a birth-active placement against a home whose license is not active (problem typefoster-home-license-not-active) or has lapsed by date (problem typefoster-home-license-expired), or whose most recent required-training certificate has lapsed (foster-home-training-expired) or carries no expiration date (foster-home-training-unverifiable); or (a caregiving setting with OR without a home; a non-caregiving activation consults nothing) a child the jurisdiction’schild-matchabilitytable refuses (child-not-matchable, the reason verbatim), or a home failing one of the child’srequirearms — age band, ICWA, sibling — (child-criteria-violated, the detail naming the arm, the home’s value and the child’s fact) — decided by the jurisdiction’s{j}-placement-eligibilityruleset, refused in the order license → training → child matchability → home fit, then the untyped capacity 400; orkinship_household.existingnames no kinship household (invalid-kinship-household); or on a caregiving birth-active create, craig-cases' relayedcase-closed— the case is closed or transferred -
422: Validation failure (including a missing client_request_id, or a missing arrangement-fact key), or a NUL (U+0000) in
arrangement_jurisdictionor in the free-textkinship_household.new.admin_unitof a jurisdiction without a US unit table (validation-failednaming the field, value-free); or, on a caregiving birth-activecreate, the child’s date of birth is missing in craig-cases (child-dob-missing, relayed) -
503: A caregiving activation only (a non-caregiving one reads no facts): craig-cases did not answer the child’s placement-facts read within its 4 s budget, or answered an outage-class status (
matching-facts-unavailable) — fail-closed, never an activation on unverified facts; retry when it recovers. The relayed rules consult’s own 503 rides unchanged -
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Record a missed past arrangement (born ended; never occupies, never bills)
POST /v1/placement/placements/historical
| Field | Type | Required | Description |
|---|---|---|---|
arrangement_jurisdiction |
string (optional) |
Yes |
(e)(6): the state, tribal service area or country the child lives in —
free text until the ACF format lands; trimmed, 1–255 characters.
A NUL (U+0000), which the column cannot store, is a 422
|
arrangement_location |
ArrangementLocation (optional) |
Yes |
Arrangement location |
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
end_reason |
enum (transfer, disruption, runaway, left_care) |
Yes |
Reason a placement (living arrangement) ended — a CRAIG arrangement fact.
The AFCARS exit reason is the episode exit’s |
ended_at |
datetime |
Yes |
When the arrangement ended. |
episode_id |
UUID |
Yes |
The removal episode the arrangement belonged to. |
ffh_types |
array of FosterFamilyHomeType (optional) |
No |
(e)(3): the applying foster-family-home categories — present
(possibly empty) exactly on a |
foster_home_id |
UUID (optional) |
No |
The foster home, when the arrangement had one. |
foster_parents_marital_status |
FosterParentsMaritalStatus (optional) |
Yes |
Foster parents marital status |
icwa_available_a_member_of_the_indian_childs_extended_family |
YesNoNotApplicable (optional) |
Yes |
Icwa available a member of the indian childs extended family |
icwa_available_indian_foster_home_non_indian_licensed |
YesNoNotApplicable (optional) |
Yes |
Icwa available indian foster home non indian licensed |
icwa_available_indian_institution |
YesNoNotApplicable (optional) |
Yes |
Icwa available indian institution |
icwa_available_tribe_licensed_foster_home |
YesNoNotApplicable (optional) |
Yes |
Icwa available tribe licensed foster home |
icwa_available_tribe_order_of_preference |
YesNoNotApplicable (optional) |
Yes |
Icwa available tribe order of preference |
icwa_good_cause |
YesNo (optional) |
Yes |
Icwa good cause |
icwa_good_cause_basis_extraordinary_needs |
YesNo (optional) |
Yes |
Icwa good cause basis extraordinary needs |
icwa_good_cause_basis_no_suitable_placement |
YesNo (optional) |
Yes |
Icwa good cause basis no suitable placement |
icwa_good_cause_basis_parents_request |
YesNo (optional) |
Yes |
Icwa good cause basis parents request |
icwa_good_cause_basis_request_of_the_indian_child |
YesNo (optional) |
Yes |
Icwa good cause basis request of the indian child |
icwa_good_cause_basis_sibling_attachment |
YesNo (optional) |
Yes |
Icwa good cause basis sibling attachment |
icwa_preference_met |
IcwaFosterCarePreference (optional) |
Yes |
Icwa preference met |
kinship_household |
KinshipHouseholdChoice (optional) |
No |
Kinship household |
placement_type |
enum (foster_family_home, group_home_family_operated, group_home_staff_operated, group_home_shelter_care, residential_treatment_center, qualified_residential_treatment_program, child_care_institution, child_care_institution_shelter_care, supervised_independent_living, juvenile_justice_facility, medical_or_rehabilitative_facility, psychiatric_hospital, runaway, whereabouts_unknown, placed_at_home) |
Yes |
Where a child lives during one living arrangement — 45 CFR §1355.44(e)(2)
and (e)(4): the (e)(2)
"yes" answer |
relationship_to_foster_parents |
FosterParentsRelationship (optional) |
Yes |
Relationship to foster parents |
replaces_placement_id |
UUID (optional) |
No |
The retracted arrangement this record re-records, if any. |
started_at |
datetime |
Yes |
When the arrangement started. |
-
201: Placement recorded, born
ended; a replay of the sameclient_request_idanswers the row as it stands (retractedonce since retracted) -
400:
ended_atis not afterstarted_at; or it is after the transaction’s instant (ledger-instant-after-now); or ffh_types absent on a family setting (required-field-missing) or present on another / repeated (structural-mismatch); a congregate setting without a provider (required-field-missing); a non-caregiving setting naming one (structural-mismatch); a provider of the wrong kind (setting-provider-mismatch); or kinship_household on anything but a home-less foster_family_home (structural-mismatch), or kinship_household.new.admin_unit unknown (invalid-enum-value), beside the episode’s unit stamp (structural-mismatch) or missing without one (required-field-missing); or an arrangement fact its setting or a sibling fact does not admit — a blank or over-long arrangement_jurisdiction, an arrangement_location that disagrees with a runaway / whereabouts setting, an arrangement_jurisdiction off an out-of-state / out-of-country location, foster-parent facts off foster_family_home, icwa_good_cause without the unmet preference, an icwa_good_cause_basis answer without icwa_good_cause yes (structural-mismatch) -
401: Unauthorized
-
403: Forbidden — including a service principal, or a kinship_household.existing the caller has no foster_home read on
-
404: Removal episode or foster home not found
-
409: The episode is retracted (
episode-retracted); the arrangement overlaps another (arrangement-overlap) or falls outside its episode (arrangement-outside-episode); the replaced placement is not a retracted arrangement of this episode free to re-record (invalid-replacement); kinship_household.existing names no kinship household (invalid-kinship-household); the assignment changed since authorization (concurrent-modification); or theclient_request_idwas used with a different body -
422: Validation failure (including a missing
client_request_id, or a missing arrangement-fact key), or a NUL (U+0000) inarrangement_jurisdictionor in the free-textkinship_household.new.admin_unitof a jurisdiction without a US unit table (validation-failednaming the field, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Get placement detail
GET /v1/placement/placements/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Placement ID |
-
200: Placement detail
-
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Update placement
PUT /v1/placement/placements/{id}
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Placement ID |
| Field | Type | Required | Description |
|---|---|---|---|
arrangement_facts |
ArrangementFacts (optional) |
No |
Arrangement facts |
end_reason |
string (optional) |
No |
Terminal fact: accepted only when this request also sets
|
ended_at |
datetime (optional) |
No |
Terminal fact: accepted only when this request also sets
|
started_at |
datetime (optional) |
No |
The arrangement’s start restated at activation:
accepted ONLY on a request that also sets |
status |
string (optional) |
No |
New status; only |
-
200: Placement updated
-
400: Invalid transition — the PUT moves
planned → activeandactive → endedonly; a planned placement that never happens is cancelled (POST …/{id}/cancel) — or terminal-fact write decoupled from the ending transition, or an end at or before the start; or astarted_aton a request that does not activate, or an activation start outside[removal_at, now()]of the episode (activation-start-out-of-range); or, on a caregivingplanned → active, craig-cases' relayed refusal of the child’s placement facts — the child is not an active child of the case (child-not-in-case) or the projection’s clock disagrees with the request’s business date (placement-facts-clock-drift); or an arrangement fact its setting or a sibling fact does not admit — a blank or over-long arrangement_jurisdiction, an arrangement_location that disagrees with a runaway / whereabouts setting, an arrangement_jurisdiction off an out-of-state / out-of-country location, foster-parent facts off foster_family_home, icwa_good_cause without the unmet preference, an icwa_good_cause_basis answer without icwa_good_cause yes (structural-mismatch); or arrangement_facts on a row that is not planned, active or ended (invalid-state-transition); or anended_atafter the transaction’s instant (ledger-instant-after-now) -
401: Unauthorized
-
403: Forbidden — including a caregiving
planned → activetransition whose relayed eligibility consult craig-rules refused (rules-consult-denied) or whose relayed child placement-facts read craig-cases refused -
404: Not found — or, on a caregiving
planned → active, the placement’s case unknown to craig-cases (relayed) -
409: Assignment or foster-home eligibility facts changed since authorization / consult — re-read and retry; or a status change or facts edit on a retracted episode (
episode-retracted), or an activation that would overlap another activated arrangement of the child (arrangement-overlap) or lie outside its episode (arrangement-outside-episode); or planned → active against a home whose license is not active (problem typefoster-home-license-not-active) or has lapsed by date (problem typefoster-home-license-expired), or whose most recent required-training certificate has lapsed (foster-home-training-expired) or carries no expiration date (foster-home-training-unverifiable); or (a caregiving setting with OR without a home; a non-caregiving activation consults nothing) a child the jurisdiction’schild-matchabilitytable refuses (child-not-matchable, the reason verbatim), or a home failing one of the child’srequirearms — age band, ICWA, sibling — (child-criteria-violated, the detail naming the arm, the home’s value and the child’s fact) — license → training → child matchability → home fit, then the untyped capacity 400; or on a caregivingplanned → active, craig-cases' relayedcase-closed— the case is closed or transferred -
422: Validation failure (including a missing arrangement-fact key), or a NUL (U+0000) in
arrangement_jurisdiction(validation-failednaming the field, value-free); or, on a caregivingplanned → active, the child’s date of birth is missing in craig-cases (child-dob-missing, relayed) -
503: A caregiving activation only (a non-caregiving one reads no facts): craig-cases did not answer the child’s placement-facts read within its 4 s budget, or answered an outage-class status (
matching-facts-unavailable) — fail-closed, never an activation on unverified facts; retry when it recovers. The relayed rules consult’s own 503 rides unchanged -
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Cancel a planned placement
POST /v1/placement/placements/{id}/cancel
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Placement ID |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
note |
string |
Yes |
Why the placement was cancelled (stored as |
-
200: Placement cancelled — the same answer on a replay of the same
client_request_id -
400: The placement is not
planned(invalid-state-transition) -
401: Unauthorized
-
403: Forbidden — including a service principal
-
404: Placement not found
-
409: Assignment changed since authorization (
concurrent-modification) — re-read and retry; or theclient_request_idwas used with a different body -
422: Validation failure (including a missing
client_request_id, an empty note, or a NUL (U+0000) innote—validation-failednamingnote, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Placement history timeline for a child
GET /v1/placement/placements/{id}/history
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Child ID |
-
200: Placement history
-
401: Unauthorized
-
403: Forbidden
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Retract an active or ended placement entered in error
POST /v1/placement/placements/{id}/retract
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Placement ID |
| Field | Type | Required | Description |
|---|---|---|---|
client_request_id |
UUID |
Yes |
Client-minted idempotency id — REQUIRED. |
note |
string |
Yes |
Why the placement was retracted (stored as |
-
200: Placement retracted — the same answer on a replay of the same
client_request_id -
400: The placement is not
activeorended(invalid-state-transition) -
401: Unauthorized
-
403: Forbidden — including a service principal
-
404: Placement not found
-
409: The assignment changed since authorization (
concurrent-modification); or theclient_request_idwas used with a different body -
422: Validation failure (including a missing
client_request_id, an empty note, or a NUL (U+0000) innote—validation-failednamingnote, value-free) -
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.
Subsidy-eligibility projection of a placement (service-to-service)
GET /v1/placement/placements/{id}/subsidy-eligibility
The minimal projection financial’s subsidy enrollment reads. caregivers lists the unit’s caregiver intervals COVERING ?as_of= — a binding closed on as_of still covers it (the transfer-day case: staff close the outgoing caregiver’s binding on the transfer day itself), a cancelled entry (ended_on = effective_from) never covers, a binding not yet effective is absent. as_of absent = the placement’s own evidence date: the jurisdiction’s business date while the placement is planned/active, its ended_on once it has ended, or episode_exit.exit_on whenever episode_exit is served — never ahead of the business date; SG/NRSG activation derives the transfer date from the served episode_exit.exit_on, so the default answers the transfer-day caregivers in ONE read; any past date; more than one day ahead of the business date → 400 invalid-date. A homed placement’s caregivers are the home’s, a household-naming placement’s are its kinship household’s. episode_exit is the episode’s live exit on the jurisdiction calendar, served when this placement is its episode’s latest effective arrangement (by started_at; activated, not retracted) OR its residence run’s last member is, and the episode has a live exit; null otherwise. residence { started_on, ended_on, arrangement_ids } is this placement’s residence run — the maximal date-adjacent sequence of its episode’s effective arrangements, caregiving at both ends, every caregiving member naming this placement’s setting identity, non-caregiving members only between — served only for an effective caregiving placement, null otherwise.
| Name | In | Required | Description |
|---|---|---|---|
id |
path |
Yes |
Placement ID |
as_of |
query |
No |
The day the intervals must cover ( |
-
200: Eligibility projection
-
400:
as_ofmore than one day after the business date; a malformed query parameter (e.g. a non-dateas_of) is the extractor’s value-freebad-requestproblem, before the handler -
401: Unauthorized
-
403: Forbidden
-
404: Not found
-
503: Service Unavailable (RFC 9457 problem document): database pool exhaustion (carries Retry-After: 5), db-connection-lost, db-outcome-unknown, or a synchronous upstream dependency refusal.
-
504: Gateway Timeout (RFC 9457 problem document): the route-class request ceiling elapsed (request-timeout) or the database canceled the statement (db-timeout) — the server yields first.