# Update time spent **PUT /data/time-spents/{instance_id}** Update a time spent record with data provided in the request body. JSON format is expected. Updates task duration automatically. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Jwt authorization ## Parameters ### Path parameters - **instance_id** (string(uuid)) ### Body: application/json (object) - **date** (string(date)) - **duration** (number) ## Responses ### 200 Time spent record updated successfully #### Body: application/json (object) - **id** (string(uuid)) - **task_id** (string(uuid)) - **person_id** (string(uuid)) - **date** (string(date)) - **duration** (number) - **created_at** (string(date-time)) - **updated_at** (string(date-time)) ### 400 Invalid data format or validation error [Powered by Bump.sh](https://bump.sh)