Update a form packet. Can be used to change the due date, add additional forms, archive or unarchive the packet, or pre-fill form fields.
Pre-fill form fields with known data. Keys are form element attribute names (case-insensitive, trimmed) and values are the answer strings. Applied across all forms in the packet — each field whose attribute name matches a key will be pre-filled. Use GET /form/template/{id}/attribute to discover available attribute names.
{ "email": "john@example.com", "first_name": "John" }
- Mock serverhttps://api-docs.lobbie.com/_mock/openapi/partner/v2/account/{accountId}/location/{locationId}/form-packet/{formPacketId}
- Productionhttps://api-prod.lobbie.com/lobbie/api/partner/v2/account/{accountId}/location/{locationId}/form-packet/{formPacketId}
curl -i -X PUT \
'https://api-docs.lobbie.com/_mock/openapi/partner/v2/account/{accountId}/location/{locationId}/form-packet/{formPacketId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"addFormTemplateIds": [
104
],
"dueDate": "2025-01-25T17:00:00-05:00",
"isArchived": true,
"prefill": {
"email": "john@example.com",
"first_name": "John"
}
}'Form packet updated successfully
Completion timestamp. Not monotonic: can transition back to null and re-set if forms are added to a completed packet, an EHR sync retracts completion, or staff manually clear it. Treat each form-packet.updated event as a state snapshot, not a terminal completion signal.
Whether the form packet is active. Inactive packets have been deactivated by the system (e.g. via appointment cancellation).
{ "completedAt": "2025-01-18T14:30:00-05:00", "createdAt": "2025-01-15T14:00:00Z", "dueDate": "2025-01-20T17:00:00-05:00", "formTemplateIds": [ 101, 102 ], "id": 12345, "isActive": true, "isArchived": false, "locationId": 111, "locationName": "Main Street Clinic", "patientId": 67890, "patientName": "John Doe", "updatedAt": "2025-01-15T14:00:00Z" }