Skip to main content
PUT

Update a project time entry

Scope:projects:projects.write
https://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

timeIdstringrequired

Project time entry ID

projectIdstringrequired

Project 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/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Time entry not foundapplication/json
422Validation errorapplication/json
429Rate limit exceededapplication/json