Listado global de registros de tiempo en proyectos: todos los partes de horas, todas las imputaciones de horas
projects:projects.readhttps://api.holded.com/api/v2/project-timesDevuelve una lista paginada de los registros de tiempo de la cuenta, de todos los proyectos que puede ver quien llama. Sin `startDate`, solo devuelve los registros de los 18 meses anteriores a `endDate` (o a hoy); sin `endDate`, deja fuera los registros con fecha posterior a ahora.
Parámetros
Parámetros de consulta
stringopcionalCursor opaco para paginación. Usa el valor devuelto en la respuesta anterior
integeropcional= 50Número máximo de registros a devolver por página
string<date>opcionalFiltra los registros a partir de esta fecha (ISO 8601, AAAA-MM-DD)
string<date>opcionalFiltra los registros hasta esta fecha, inclusive (ISO 8601, AAAA-MM-DD)
stringopcionalFiltra por empleado: solo devuelve los registros del usuario vinculado al empleado, y un empleado sin usuario vinculado no tiene ninguno. Recibe un id de empleado, no de usuario (ni el `user_id` de un registro ni el `holded_user_id` de un empleado). Un id que no es de un empleado de la cuenta devuelve 404.
Petición
import requests
url = "https://api.holded.com/api/v2/project-times?cursor=value&limit=50&startDate=2025-01-01"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Respuestas
Respuesta
{
"items": [
{
"id": "string",
"project_id": "string",
"project_name": "string",
"duration": 0,
"user_name": "string",
"description": "string",
"cost_per_hour": "string",
"user_id": "string",
"task_id": "string",
"date": "string",
"approved": false,
"total_cost": "string",
"category": "string"
}
],
"has_more": false,
"cursor": "string"
}Respuestas exitosas
200Listado de registros de tiempo en proyectosapplication/jsonUnique identifier
ID of the project the entry belongs to
Name of the project the entry belongs to
Duration in seconds
Display name of the user who logged the entry, also once they left the team; empty when that user no longer exists or has no name
Description
Cost per hour as a decimal string, resolved from the project cost configuration
Id of the user who logged the entry; not an employee id. To filter by employee, pass `employee_id`.
Task ID
Date, formatted according to the account's date settings
Whether the entry is approved
Total cost as a decimal string, resolved from the project cost configuration
Category
Whether there are more items on the next page
Opaque cursor to pass as ?cursor= to fetch the next page. Null on the last page.
Respuestas de error
400Id de empleado o fecha mal formados, o startDate posterior a endDateapplication/json401API key inválida o no proporcionadaapplication/json403Permisos insuficientesapplication/json404Empleado no encontradoapplication/json429Límite de solicitudes excedidoapplication/json