Cette fonctionnalité est en phase de bêta fermée et n'est disponible que sur demande pour les partenaires Enterprise. Contactez-nous pour en savoir plus.
La base du modèle de données d’Aphex Planner repose sur les projets et les tâches. Les tâches reflètent le travail planifié et des propriétés essentielles telles que les sous-traitants ou les plages horaires.
Pour les clients et partenaires souhaitant créer des applications et des flux de travail externes ou internes sur la base des tâches planifiées, nous fournissons un large ensemble de points de terminaison qui donnent accès aux données en temps réel d’un espace de travail Plan.
Les cas d’utilisation typiques de ces points de terminaison incluent ;
Des plateformes et produits tiers qui créent des intégrations avec Aphex
Des équipes internes chez les clients qui utilisent les tâches planifiées comme déclencheur pour des applications ou des flux de travail internes
Nos API suivent l’essence de REST et toutes les requêtes doivent être effectuées via HTTPS afin de respecter les règles de sécurité des points de terminaison.
Les règles d’interrogation des points de terminaison et la structure de réponse sont accessibles depuis la page suivante ;
Les ressources du projet sont les listes définies d’objets qui peuvent être attachés à des tâches au sein d’un projet. Vous pouvez interroger ces ressources pour vous aider à construire des requêtes de tâches plus précises.
Utilisez ce point de terminaison pour interroger la liste des utilisateurs d’un projet.
Utilisez ce point de terminaison pour interroger la liste des sous-traitants d’un projet.
Utilisez ce point de terminaison pour interroger l’arborescence des dossiers d’un projet.
Utilisez ce point de terminaison pour interroger la liste des paquets d’un projet.
Utilisez ce point de terminaison pour interroger la liste des calendriers d’un projet.
Utilisez ce point de terminaison pour interroger la liste des emplacements d’un projet.
Utilisez ce point de terminaison pour interroger la liste des raisons de retard d’un projet.
Utilisez ce point de terminaison pour interroger la liste des mesures de production d’un projet.
Pour générer un jeton de session, vous devez fournir un ID client et un secret client valides.
Pendant la bêta fermée, vous pouvez obtenir vos clés API en contactant notre équipe Customer Success.
Utilisez ce point de terminaison pour générer un jeton d’accès temporaire
Utilisez ce point de terminaison pour révoquer un jeton d’accès généré précédemment
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
True when the task's total output up to this date falls short of the total planned by this date. Compares running totals, so a slow day on a task that is ahead overall reads false.
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"
}
}
]
}Get users
gb | au
projectId
access token
OK
Unauthorized
Unprocessable Entity
Internal Server Error
GET /{region}/v1/projects/{projectId}/users HTTP/1.1
Host: app.aphex.co/
X-API-Key: text
Accept: */*
{
"paging": {
"next": {
"after": "text",
"link": "text"
}
},
"results": [
{
"displayName": "text",
"email": "text",
"id": "text"
}
]
}Get subcontractors
gb | au
projectId
access token
OK
Unauthorized
Unprocessable Entity
Internal Server Error
GET /{region}/v1/projects/{projectId}/subcontractors HTTP/1.1
Host: app.aphex.co/
X-API-Key: text
Accept: */*
{
"paging": {
"next": {
"after": "text",
"link": "text"
}
},
"results": [
{
"id": "text",
"name": "text"
}
]
}Get folders
gb | au
projectId
access token
OK
Unauthorized
Unprocessable Entity
Internal Server Error
GET /{region}/v1/projects/{projectId}/folders HTTP/1.1
Host: app.aphex.co/
X-API-Key: text
Accept: */*
{
"paging": {
"next": {
"after": "text",
"link": "text"
}
},
"results": [
{
"code": "text",
"id": "text",
"name": "text",
"parentId": "text",
"path": "text"
}
]
}Get packages
gb | au
projectId
access token
OK
Unauthorized
Unprocessable Entity
Internal Server Error
GET /{region}/v1/projects/{projectId}/packages HTTP/1.1
Host: app.aphex.co/
X-API-Key: text
Accept: */*
{
"paging": {
"next": {
"after": "text",
"link": "text"
}
},
"results": [
{
"code": "text",
"id": "text",
"name": "text"
}
]
}Get calendars
gb | au
projectId
access token
OK
Unauthorized
Unprocessable Entity
Internal Server Error
GET /{region}/v1/projects/{projectId}/calendars HTTP/1.1
Host: app.aphex.co/
X-API-Key: text
Accept: */*
{
"paging": {
"next": {
"after": "text",
"link": "text"
}
},
"results": [
{
"id": "text",
"name": "text",
"type": "five-day"
}
]
}Get locations
gb | au
projectId
access token
OK
Unauthorized
Unprocessable Entity
Internal Server Error
GET /{region}/v1/projects/{projectId}/locations HTTP/1.1
Host: app.aphex.co/
X-API-Key: text
Accept: */*
{
"paging": {
"next": {
"after": "text",
"link": "text"
}
},
"results": [
{
"id": "text",
"name": "text",
"type": "map"
}
]
}Get delay reasons
gb | au
projectId
access token
OK
Unauthorized
Unprocessable Entity
Internal Server Error
GET /{region}/v1/projects/{projectId}/delayReasons HTTP/1.1
Host: app.aphex.co/
X-API-Key: text
Accept: */*
{
"paging": {
"next": {
"after": "text",
"link": "text"
}
},
"results": [
{
"category": "text",
"id": "text",
"name": "text"
}
]
}Get production measures
gb | au
projectId
access token
OK
Stored value, not a display label. Meters/Metres and Tonnes/Tons are distinct.
Unauthorized
Unprocessable Entity
Internal Server Error
GET /{region}/v1/projects/{projectId}/productionMeasures HTTP/1.1
Host: app.aphex.co/
X-API-Key: text
Accept: */*
{
"paging": {
"next": {
"after": "text",
"link": "text"
}
},
"results": [
{
"id": "text",
"name": "text",
"targetRateEnabled": true,
"targetRateValue": 1,
"taskCount": 1,
"unit": "text",
"unitName": "text"
}
]
}Generate token
gb | au
OK
Not Found
Unprocessable Entity
Internal Server Error
POST /{region}/v1/auth/token HTTP/1.1
Host: app.aphex.co/
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"clientId": "text",
"clientSecret": "text"
}{
"accessToken": "text",
"expiresIn": "text",
"tokenType": "text"
}Revoke token
gb | au
OK
Not Found
Unprocessable Entity
Internal Server Error
POST /{region}/v1/auth/token/revoke HTTP/1.1
Host: app.aphex.co/
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"clientId": "text",
"clientSecret": "text",
"token": "text"
}text