Push single rule
/sources/{sourceID}/rulesStart a sandbox source-sync simulation for one rule; this does not claim a generally available production adapter write.
BearerPath parameters
sourceIDRequest body
categoryOne of the 123 OCSS rule categories defined by the current schema. Sandbox simulation is available now; production adapter support is not generally available and is evaluated only in separately scoped design-partner pilots.
valueRule value/config
Response
idUnique identifier for this resource.
job_idUnique identifier (UUID) for the related resource.
source_idUnique identifier (UUID) for the related resource.
rule_categoryOne of the 123 OCSS rule categories defined by the current schema. Sandbox simulation is available now; production adapter support is not generally available and is evaluated only in separately scoped design-partner pilots.
statusCurrent lifecycle state of the resource.
source_valueThe value represented in the sandbox result or handed to a provisioned design-partner adapter for this rule category.
source_responseRaw response the source returned when the rule was applied.
error_messageHuman-readable error detail when the operation failed; null on success.
created_atRFC 3339 timestamp of when the resource was created.
curl -sS -X POST "https://phosra-api-sandbox-production.up.railway.app/api/v1/sources/5a5a5a5a-1111-4222-8333-444455556666/rules" \
-H "Authorization: Bearer $PHOSRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"category": "time_daily_limit",
"value": {
"minutes": 120
}
}'{
"id": "550e8400-e29b-41d4-a716-446655440000",
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"source_id": "550e8400-e29b-41d4-a716-446655440000",
"rule_category": "rating_age_gate",
"status": "pushed",
"source_value": {},
"source_response": {},
"error_message": null,
"created_at": "2025-01-15T09:30:00Z"
}