API referenceRead APIIssues and work orders
List work orders
planned
Planned
This endpoint isn't available yet. Until it is, it answers
501 Not Implemented.GET
Lists the work orders in a project. Each work order has the same shape as in the workorder.* webhooks. Before you create a work order, look up existing ones by issue_id and device_id.
Bearerheader
AuthorizationBearer <token>project_id*stringThe ID of the project to list work orders for.
status?stringReturns only work orders with this status.
issue_id?stringReturns only work orders under this issue.
device_id?stringReturns only work orders that cover this device.
updated_since?stringReturns only rows that changed at or after this time.
Format
date-timelimit?integerThe maximum number of rows to return. The default is 1,000 and the maximum is 10,000.
Range
1 <= value <= 10000Default
1000offset?|The number of rows to skip.
Range
0 <= valueDefault
0The work orders in the project.
application/json- response
[index: integer]?A work order, as it was when the change happened.
curl -X GET 'https://api.enurgen.com/platform/v1/work-orders?project_id=string'Example Response
[ { "id": "string", "number": 0, "organization_id": "string", "project_id": "string", "project": { "key": "string" }, "issue_id": "string", "title": "string", "description": "string", "status": "string", "priority": "urgent", "due_date": "2019-08-24T14:15:22Z", "work_type": "string", "external_system": "string", "external_id": "string", "external_ref": "string", "external_url": "string", "payload": { "property1": null, "property2": null }, "assigned_to": { "id": "string", "first_name": "string", "last_name": "string", "email": "string" }, "created_by": { "id": "string", "first_name": "string", "last_name": "string", "email": "string" }, "devices": [ { "device_id": "string", "component": "string", "status": "string", "completed_at": "2019-08-24T14:15:22Z" } ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "issue": { "id": "string", "number": 0, "name": "string", "status": "string", "project_id": "string", "project": { "key": "string" } } }]
