Trigger enforcement for a child

POST/children/{childID}/enforce

Push the child's active policy rules to connected platforms. If platform_ids is provided, only those platforms are targeted; otherwise enforcement fans out to ALL connected platforms.

Auth:Bearer

Path parameters

childID

uuidrequired

Request body

platform_ids

Optional list of platform IDs to target. If omitted, pushes to ALL connected platforms.

string[]

Response

id

uuid
child_id

uuid
policy_id

uuid
trigger_type

manual | auto | webhook
status

pending | running | completed | failed | partial
started_at

datetime
completed_at

datetime
created_at

datetime
Request
bash
curl -X POST "https://api.phosra.com/api/v1/children/{childID}/enforce" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "platform_ids": [
    "string"
  ]
}'
Response
json
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "child_id": "550e8400-e29b-41d4-a716-446655440000",
  "policy_id": "550e8400-e29b-41d4-a716-446655440000",
  "trigger_type": "manual",
  "status": "pending",
  "started_at": "2025-01-15T09:30:00Z",
  "completed_at": "2025-01-15T09:30:00Z",
  "created_at": "2025-01-15T09:30:00Z"
}