post
https://api.suresend.ai/api/partner/contracts//milestones//complete
Mark a milestone as completed. This action automatically completes all associated tasks and records the completion timestamp and user.
Use Cases:
- Track milestone completion in workflow
- Trigger downstream automations
- Auto-complete related tasks
- Record completion audit trail
What Happens:
- Milestone is marked complete with current timestamp
- Completion user is recorded
- All associated tasks are automatically completed
- Webhooks are triggered for automation
- Progress metrics are updated
Idempotent: Safe to call multiple times - if already complete, returns success without changes.
Example Response:
{
"id": "milestone-uuid",
"name": "Inspection Completed",
"completed": true,
"completedAt": "2025-11-08T10:30:00Z",
"completedByUserId": "user-uuid",
"tasksProgressPercentage": 100
}