Trigger enforcement for a child
POST
/children/{childID}/enforcePush 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:
BearerPath parameters
childIDuuidrequired
Request body
platform_idsOptional list of platform IDs to target. If omitted, pushes to ALL connected platforms.
string[]
Response
iduuid
child_iduuid
policy_iduuid
trigger_typemanual | auto | webhook
statuspending | running | completed | failed | partial
started_atdatetime
completed_atdatetime
created_atdatetime
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"
}