Tasks (otherwise known as jobs) are where you enqueue tasks to get executed, check status, etc. List TasksGET /projects/:project_id/tasks ParametersIn URL:
Required: Optional: { TODO } Response{ "tasks": [ { "id": "4eb1b471cddb136065000010", "Timestamper": { "created_at": 1320268913440000000, "updated_at": 1320268924000000000 }, "api_version": 2, "project_id": "4eb1b46fcddb13606500000d", "code_id": "4eb1b46fcddb13606500000e", "code_history_id": "4eb1b46fcddb13606500000f", "status": "complete", "code_name": "helloFromPythonOLFSEQETEM", "code_rev": "1", "instance_id": "i-fc6a5b9c", "start_time": 1320268924000000000, "end_time": 1320268924000000000, "actual_start_time": 1320268924000000000, "duration": 43, "actual_duration": 43, "actual_priority": 2, "actual_start_time_ms": 1713964546, "start_time_ms": 1713964546, "end_time_ms": 1713964589, "run_times": 1, "timeout": 3600, "payload": "[{\"class_name\": \"helloFromPythonOLFSEQETEM\", \"access_key\": \"helloFromPythonOLFSEQETEM\", \"code_name\": \"helloFromPythonOLFSEQETEM\"}]" } ] } Create/Enqueue a TaskPOST /projects/:project_id/tasks ParametersIn URL:
In JSON:
{ "tasks": [ { "name": "helloFromPythonOLFSEQETEM", "code_name": "helloFromPythonOLFSEQETEM", "payload": "[{\"class_name\": \"helloFromPythonOLFSEQETEM\", \"access_key\": \"helloFromPythonOLFSEQETEM\", \"code_name\": \"helloFromPythonOLFSEQETEM\"}]" } ] } ResponseAn array of tasks is returned in the same order as the incoming array of tasks in the Request. { "msg": "Queued up", "status_code": 200, "tasks": [ { "id": "4eb1b471cddb136065000010" } ] } Get a TaskGET /projects/:project_id/tasks/:task_id ParametersIn URL:
Required: Optional: HTTP GET /2/projects/4eb1b46fcddb13606500000d/tasks/4eb1b471cddb136065000010?oauth=jTxYQDmMx5ZtVeZBT8jVx6oJDLw Response{ "id": "4eb1b471cddb136065000010", "Timestamper": { "created_at": 1320268913440000000, "updated_at": 1320268924000000000 }, "api_version": 2, "project_id": "4eb1b46fcddb13606500000d", "code_id": "4eb1b46fcddb13606500000e", "code_history_id": "4eb1b46fcddb13606500000f", "status": "complete", "code_name": "helloFromPythonOLFSEQETEM", "code_rev": "1", "instance_id": "i-fc6a5b9c", "start_time": 1320268924000000000, "end_time": 1320268924000000000, "actual_start_time": 1320268924000000000, "duration": 43, "actual_duration": 43, "actual_priority": 2, "actual_start_time_ms": 1713964546, "start_time_ms": 1713964546, "end_time_ms": 1713964589, "run_times": 1, "timeout": 3600, "payload": "[{\"class_name\": \"helloFromPythonOLFSEQETEM\", \"access_key\": \"helloFromPythonOLFSEQETEM\", \"code_name\": \"helloFromPythonOLFSEQETEM\"}]" }
|
API - Version 2 >