Tâches
Les tâches du projet sont l’objet central d’Aphex Plan - ce point de terminaison renverra des données de tâches en temps réel pour une requête fournie.
Obtenir les tâches
Utilisez ce point de terminaison pour interroger les tâches d’un projet.
Get tasks
gb | au
projectId
YYYY-MM-DD formatted date
YYYY-MM-DD formatted date
day | afternoon | night | 24hr
comma-delimited user IDs
comma-delimited folder IDs
comma-delimited package IDs
comma-delimited location IDs
comma-delimited calendar IDs
comma-delimited subcontractor IDs
comma-delimited user IDs
comma-delimited additional fields (assignedTo,folder,package,parent,subcontractor,labour,plant,materials,location,workArea,progress,relatedTasks,externalId,notes,tags,blockers,production,productionPlanned,atRisk)
access token
OK
Unauthorized
Unprocessable Entity
Internal Server Error
GET /{region}/v1/projects/{projectId}/tasks HTTP/1.1
Host: app.aphex.co/
X-API-Key: text
Accept: */*
{
"paging": {
"next": {
"after": "text",
"link": "text"
}
},
"results": [
{
"assignedTo": [
{
"displayName": "text",
"email": "text",
"id": "text"
}
],
"atRisk": true,
"blockers": [
{
"category": "text",
"displayName": "text",
"dueDate": "text",
"id": "text",
"status": "open"
}
],
"calendar": {
"id": "text",
"name": "text",
"type": "five-day"
},
"duration": 1,
"externalId": "text",
"finish": "text",
"folder": {
"code": "text",
"id": "text",
"name": "text",
"parentId": "text",
"path": "text"
},
"id": "text",
"keyTask": true,
"labour": [
{
"id": "text",
"name": "text",
"quantity": 1
}
],
"location": {
"id": "text",
"name": "text",
"type": "map"
},
"materials": [
{
"dailyActual": [
{
"date": "text",
"quantity": 1
}
],
"dailyPlanned": [
{
"date": "text",
"quantity": 1
}
],
"id": "text",
"name": "text",
"quantity": 1,
"unit": "text"
}
],
"name": "text",
"notes": "text",
"owner": {
"displayName": "text",
"email": "text",
"id": "text"
},
"package": {
"code": "text",
"id": "text",
"name": "text"
},
"parent": {
"id": "text",
"name": "text"
},
"plant": [
{
"category": "text",
"id": "text",
"name": "text",
"quantity": 1
}
],
"production": {
"averageDailyOutput": 1,
"behindPace": true,
"completedQuantity": 1,
"measureId": "text",
"name": "text",
"percentComplete": 1,
"remainingQuantity": 1,
"targetRate": 1,
"totalQuantity": 1,
"unit": "text",
"unitName": "text"
},
"productionPlanned": {
"ANY_ADDITIONAL_PROPERTY": 1
},
"progress": [
{
"amount": 1,
"date": "text",
"name": "text",
"production": {
"behindPace": true,
"cumulativePercent": 1,
"cumulativeQuantity": 1,
"measureId": "text",
"outputToday": 1,
"unit": "text",
"unitName": "text"
},
"type": "delay"
}
],
"relatedTasks": [
{
"id": "text",
"lag": 1,
"name": "text",
"relation": "predecessor",
"type": "start-start"
}
],
"shift": "day",
"start": "text",
"status": "planned",
"subcontractor": {
"id": "text",
"name": "text"
},
"tags": [
{
"displayName": "text",
"id": "text"
}
],
"workArea": {
"bbox": [
1
],
"geometry": null,
"id": null,
"properties": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"type": "text"
}
}
]
}Mis à jour
Ce contenu vous a-t-il été utile ?