Documentation lists title as required. Is that the only required field, or are there others I'm missing?
Testing with just title works. Testing with empty body returns 422. Want to confirm before we ship.
Documentation lists title as required. Is that the only required field, or are there others I'm missing?
Testing with just title works. Testing with empty body returns 422. Want to confirm before we ship.
Devon's right — title is the only required field in the base schema. The 422 you're seeing on empty body is validation catching that.
However, there are conditional requirements worth knowing about:
scheduled_date, scheduled_time becomes required to prevent ambiguous schedulingassignee_id, the user must have Technician role permissionsMinimal valid POST:
POST /v1/work_orders
Content-Type: application/json
Authorization: Bearer {token}
{
"title": "Service call"
}See Using the FieldPulse API for the full schema reference.
Devon's right — title is the only required field in the base schema. The 422 you're seeing on empty body is validation catching that.
However, there are conditional requirements worth knowing about:
scheduled_date, scheduled_time becomes required to prevent ambiguous schedulingassignee_id, the user must have Technician role permissionsMinimal valid POST:
POST /v1/work_orders
Content-Type: application/json
Authorization: Bearer {token}
{
"title": "Service call"
}See Using the FieldPulse API for the full schema reference.