GET
Obtenir un projecte per ID
Scope:
projects:projects.readhttps://api.holded.com/api/v2/projects/{projectId}Recupera tots els detalls d'un projecte específic pel seu identificador únic.
Paràmetres
Paràmetres de ruta
projectId
stringobligatoriID del projecte (ObjectId hexadecimal de 24 caràcters)
Petició
python
import requests
url = "https://api.holded.com/api/v2/projects/{projectId}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Respostes
Resposta
json
{
"id": "507f1f77bcf86cd799439011",
"name": "string",
"description": "string",
"type": "string",
"icon": "string",
"color": "string",
"key": "string",
"scope": "string",
"users": {},
"contact_id": "string",
"contact_name": "string",
"start_date": "string",
"due_date": "string",
"tags": [
"string"
],
"archived": false,
"status": 0,
"number_of_tasks": 0,
"completed_tasks": 0,
"billable": false
}Respostes exitoses
200Projecte trobatapplication/jsonobject
idstringrequired
Unique identifier
namestringrequired
Project name
descriptionstringrequired
Project description
typestringrequired
Project type
iconstringrequired
Project icon
colorstringrequired
Project color
keystringrequired
Project key
scopestringrequired
Project scope
usersobjectrequired
Project members keyed by user ID
contact_idstring | nullrequired
Contact ID
contact_namestringrequired
Contact name
start_datestring | nullrequired
Start date, formatted according to the account's date settings
due_datestring | nullrequired
Due date, formatted according to the account's date settings
tags[]string[]required
Tags
archivedbooleanrequired
Whether the project is archived
statusintegerrequired
Project status
number_of_tasksintegerrequired
Total number of tasks
completed_tasksintegerrequired
Number of completed tasks
billablebooleanrequired
Whether the project is billable
Respostes d'error
401API key no vàlida o no proporcionadaapplication/json403Permisos insuficientsapplication/json404Projecte no trobatapplication/json429Límit de sol·licituds exceditapplication/json