Update a project time entry
Scope: projects:projects.write https://api.alladdin.com/api/v2/projects/{projectId}/times/{timeId}
Updates an existing project time tracking entry.
Parameters
Path parameters
timeId string required
Project time entry ID
projectId string required
Project ID
Request body
object duration integer
Duration in seconds
user_id string
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.
description string | null
Description
date string<date> | null
Date in ISO 8601
task_id string | null
Task ID
cost_per_hour string | null
Cost per hour
category string | null
Category
Request
import requests
url = "https://api.alladdin.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",
"cost_per_hour": "string",
"category": "string"
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())Responses
Response
{
"id": "string"
}Success responses
200 Time entry updated application/json object id string
Error responses
400 Bad request application/json 401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Time entry not found application/json 422 Validation error application/json 429 Rate limit exceeded application/json
