Aller au contenu
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

get

Get tasks

Paramètres de chemin
regionstring · enumRequis

gb | au

Valeurs possibles:
projectIdstringRequis

projectId

Paramètres de requête
startstringOptionnel

YYYY-MM-DD formatted date

finishstringOptionnel

YYYY-MM-DD formatted date

shiftstring · enumOptionnel

day | afternoon | night | 24hr

Valeurs possibles:
ownerIdsstringOptionnel

comma-delimited user IDs

folderIdsstringOptionnel

comma-delimited folder IDs

packageIdsstringOptionnel

comma-delimited package IDs

locationIdsstringOptionnel

comma-delimited location IDs

calendarIdsstringOptionnel

comma-delimited calendar IDs

subcontractorIdsstringOptionnel

comma-delimited subcontractor IDs

assignedToIdsstringOptionnel

comma-delimited user IDs

fieldsstringOptionnel

comma-delimited additional fields (assignedTo,folder,package,parent,subcontractor,labour,plant,materials,location,workArea,progress,relatedTasks,externalId,notes,tags,blockers,production,productionPlanned,atRisk)

Paramètres d'en-tête
X-API-KeystringRequis

access token

Réponses
200

OK

application/json
get/{region}/v1/projects/{projectId}/tasks
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 ?