GET
Obtenir una tasca per ID
Scope:
projects:projects.readhttps://api.holded.com/api/v2/tasks/{taskId}Recupera tots els detalls d'una tasca específica pel seu identificador únic.
Paràmetres
Paràmetres de ruta
taskId
stringobligatoriID de la tasca (ObjectId hexadecimal de 24 caràcters)
Petició
python
import requests
url = "https://api.holded.com/api/v2/tasks/{taskId}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Respostes
Resposta
json
{
"id": "507f1f77bcf86cd799439011",
"project_id": "string",
"list_id": "string",
"name": "string",
"description": "string",
"index": "1",
"status": "string",
"status_name": "string",
"priority": 0,
"story_points": 0,
"type": "string",
"start_date": "string",
"due_date": "string",
"archived": false,
"updated_at": "string",
"created_at": "string",
"assigned_to": [
"string"
],
"comments": [
{}
],
"featured": false,
"reference": "string"
}Respostes exitoses
200Tasca trobadaapplication/jsonobject
idstringrequired
Unique identifier
project_idstringrequired
Project ID
list_idstring | nullrequired
List ID
namestringrequired
Task name
descriptionstringrequired
Task description
indexstringrequired
Task index as a decimal string
statusstringrequired
Task status
status_namestring | nullrequired
The status's display name in the account, as the user sees it
priorityintegerrequired
Task priority
story_pointsnumberrequired
Story points
typestringrequired
Task type
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
archivedbooleanrequired
Whether the task is archived
updated_atstring | nullrequired
Last update date in ISO 8601
created_atstring | nullrequired
Creation date in ISO 8601
assigned_to[]string[]required
Assigned user IDs
comments[]object[]required
Task comments
featuredbooleanrequired
Whether the task is featured
referencestringrequired
Task reference
Respostes d'error
401API key no vàlida o no proporcionadaapplication/json403Permisos insuficientsapplication/json404Tasca no trobadaapplication/json429Límit de sol·licituds exceditapplication/json