Project

General

Profile

Bug #108

Updated by Sam Pearson 21 days ago

Sending a post request to update 

 ``` javascript 
 { 
   "completed": true 
 } 
 ``` 


 

 only updates that field 


 ``` 
 



 { 
   "completed": true, 
   "completed_at": null, 
   "created_at": "2026-01-01T17:31:38.129044", 
   "description": null, 
   "id": 40, 
   "principles": [], 
   "project_id": null, 
   "tags": [], 
   "title": "Test task", 
   "updated_at": "2026-01-01T17:31:38.267634", 
   "user_id": 2 
 } 
 ``` 

 note the "completed at" field is null.  

 Instead of sending a post request to update, make a new endpoint, something like tasks/{{id}}/complete so the logic to complete can all go in there. Otherwise we'll have to jam additional "update this field if this" logic into the update endpoint.

Back