Returns a list of Tasks which match the supplied filter (JSON encoded).
Currently supported filters: * location_id (string) * reference_number (string) * created_at (time, time range) May be a time (in ISO 8601 format), in which case only Transactions at or after that time will be returned. It may also be a range of times, expressed as an array.
$ curl -i \
-H "Accept: application/json; version=1" \
-H "Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjQyLCJpYXQiOjE0NjM2OTQ4MjN9.k48v-R-un93KdIXqp9Zi12JOGJCu8uibtrWjscFCTqc" \
"https://api.record360.com/api/tasks?after_id=88&limit=2"
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Cache-Control: max-age=0, private, must-revalidate
{
"tasks": [
{
"id":"42",
"due_by":"2020-12-21T21:25:04.000Z",
"name":"Inspect Bulldozer",
"status":"idle",
"created_at":"2020-12-16T21:25:11.795Z",
"updated_at":"2020-12-16T21:25:11.795Z",
"high_priority":false,
"asset":{
"id":"1",
"external_id":"5764868635464"
},
"location":{
"id":"1",
"name":"Demo Location"
},
"assignee":{
"id":"8",
"email":"[email protected]",
"name":"Ahmad Mosciski"
},
"requester":{
"id":"8",
"email":"[email protected]",
"name":"Ahmad Mosciski"
},
"activities":[
{
"event":"Created Task",
"user":{
"id":"8",
"email":"[email protected]",
"name":"Ahmad Mosciski"
},
"created_at":"2020-12-16T21:25:11.807Z"
}
]
},
{
"id":"43",
"due_by":"2020-12-21T21:25:04.000Z",
"name":"Inspect Bulldozer",
"status":"idle",
"created_at":"2020-12-16T21:25:11.795Z",
"updated_at":"2020-12-16T21:25:11.795Z",
"high_priority":false,
"asset":{
"id":"1",
"external_id":"5764868635464"
},
"location":{
"id":"1",
"name":"Demo Location"
},
"assignee":{
"id":"8",
"email":"[email protected]",
"name":"Ahmad Mosciski"
},
"requester":{
"id":"8",
"email":"[email protected]",
"name":"Ahmad Mosciski"
},
"activities":[
{
"event":"Created Task",
"user":{
"id":"8",
"email":"[email protected]",
"name":"Ahmad Mosciski"
},
"created_at":"2020-12-16T21:25:11.807Z"
}
]
},
...
],
"links": {
"prev": "https://api.record360.com/api/tasks?before_id=89&limit=2",
"next": "https://api.record360.com/api/tasks?after_id=90&limit=2"
}
}
| Param name | Description |
|---|---|
|
before_id
optional |
Return Tasks before the specified ID Validations:
|
|
after_id
optional |
Return Tasks after the specified ID Validations:
|
|
limit
optional |
Limit the number of Tasks to return (max: 50) Validations:
|