PUT
Update a project time entry
Scope:
projects:projects.writehttps://api.holded.com/api/v2/projects/{projectId}/times/{timeId}Updates an existing project time tracking entry. The cost cannot be set here: it is taken from the project's cost configuration for the member (or category).
Parameters
Path parameters
timeId
stringrequiredProject time entry ID
projectId
stringrequiredProject ID
Request body
object
durationinteger
Duration in seconds
user_idstring
User id of the person whose time this is. Required on direct API calls; when omitted, the assistant resolves the acting user automatically. Set it explicitly to log time for another account team member.
descriptionstring | null
Description
datestring<date> | null
Date in ISO 8601
task_idstring | null
Task ID
categorystring | null
Category
Request
python
import requests
url = "https://api.holded.com/api/v2/projects/{projectId}/times/{timeId}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"duration": 0,
"user_id": "string",
"description": "string",
"date": "2024-01-15",
"task_id": "string",
"category": "string"
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())Responses
Response
json
{
"id": "string"
}Success responses
200Time entry updatedapplication/jsonobject
idstring
Error responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Time entry not foundapplication/json422Validation errorapplication/json429Rate limit exceededapplication/json