{"_id":"55651cb603b6710d0091694c","version":{"_id":"5548466bd2c8410d006c2146","project":"5548466bd2c8410d006c2143","__v":8,"createdAt":"2015-05-05T04:26:19.796Z","releaseDate":"2015-05-05T04:26:19.796Z","categories":["5548466cd2c8410d006c2147","554a69ba0b54d30d007fe128","554a7f3338e3620d0082192e","5565162e03b6710d00916942","55651a0c65a1130d00400c2b","55651d4565a1130d00400c2f","55651e0165a1130d00400c32","5565217903b6710d0091695f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"55651a0c65a1130d00400c2b","pages":["55651a9c03b6710d00916948","55651b27b893840d00444737","55651cb603b6710d0091694c","55651d35b893840d00444740","55652662eb1615230053fd54","556526c1b60f251900703445","556527157a60a419000627f7"],"project":"5548466bd2c8410d006c2143","version":"5548466bd2c8410d006c2146","__v":7,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-05-27T01:12:44.934Z","from_sync":false,"order":4,"slug":"timesheets","title":"Timesheets"},"editedParams2":true,"parentDoc":null,"__v":0,"editedParams":true,"project":"5548466bd2c8410d006c2143","user":"555a5da8bcb32e19006f816f","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-05-27T01:24:06.063Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","examples":{"codes":[{"code":"{\n    \"hours\": 3,\n    \"name\": \"Timesheet description\"\n}\n","language":"json","name":""}]},"method":"put","results":{"codes":[]},"auth":"required","params":[{"_id":"55651cb603b6710d0091694f","ref":"","in":"path","required":true,"desc":"The unique identifier of the Timesheet record that you wish to update.","default":"","type":"int","name":"timesheetId"},{"_id":"55651cb603b6710d0091694e","ref":"","in":"body","required":false,"desc":"Hours of the timesheet entry. Will not update if the value is null","default":"","type":"int","name":"Hours"},{"_id":"55651cb603b6710d0091694d","ref":"","in":"body","required":false,"desc":"Description of the timesheet entry. Will not update if the name is null.","default":"","type":"string","name":"name"}],"url":"/timesheets/{timesheetId}.json"},"isReference":false,"order":6,"body":"Use this API to update a Timesheet record by its unique identifier.","excerpt":"A Timesheet instance records the number of hours spent on Tasks and Administrative activities for a particular Resource.\n\nA Timesheet entry is for a particular day, and there can only be one Timesheet record per Resource for a particular task or admin type for a specific date.\n\nUse this API to update a Timesheet record by its unique identifier.","slug":"edit-a-timesheet","type":"endpoint","title":"Update a Timesheet"}

putUpdate a Timesheet

A Timesheet instance records the number of hours spent on Tasks and Administrative activities for a particular Resource. A Timesheet entry is for a particular day, and there can only be one Timesheet record per Resource for a particular task or admin type for a specific date. Use this API to update a Timesheet record by its unique identifier.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

timesheetId:
required
integer
The unique identifier of the Timesheet record that you wish to update.

Body Params

Hours:
integer
Hours of the timesheet entry. Will not update if the value is null
name:
string
Description of the timesheet entry. Will not update if the name is null.

Examples


Documentation

Use this API to update a Timesheet record by its unique identifier.