Repair a sponsorship missing its commitment record
Recovery tool for sponsorships (DonorEntity rows) that ended up without a matching Commitment. Creates a minimal placeholder commitment (type=monthly, frequency=1, method=manual, designation = entity_id, funding flag derived from the program type) so admins can edit it back into a usable state via editCommitment. Persists immediately. Currently reads client_id from the legacy session — caller must have an active admin session even though the route is also bearer-protected. Validation: donor_entity_id required. Requires permission: donations_manage.
Authorizations
Passport bearer token authentication for legacy admin sessions.
Query Parameters
Sponsorship row whose missing commitment should be recreated.
Response
Placeholder commitment created (response message contains an embedded HTML 'edit' link to the new commitment).
"Your broken commitment has been fixed. However, it's empty..."