Get all the commands related with a delivery job.

GET {{baseUrl}}/deliveryJobs/:id/commands?filter=<string>&size=20&page=0

Get all the commands for the given delivery job Id.

Request Params

KeyDatatypeRequiredDescription
filterstringJSON string describing filter operations performed on commands associated with a delivery job to be returned. The following fields and operations are supported

Filter

clientId: eq, in, endsWith,startsWith, contains
status: eq, in, endsWith,startsWith, contains
updatedAt: before, after, between

Examples

Unencoded example filter value to fetch all commands associated with delivery job for clientId "punint05_testDevice":


{ &quot;clientId&quot;: &quot;punint05_testDevice&quot; }

{ &quot;clientId&quot;: { &quot;startsWith&quot; : &quot;punint05&quot; }}

Unencoded example filter value to fetch all commands associated with delivery job for status "EXECUTED":


{ &quot;status&quot;: &quot;EXECUTED&quot; }

{ &quot;status&quot;: { &quot;startsWith&quot; : &quot;EXE&quot; }}

Unencoded example filter value to fetch all commands associated with delivery job based on updatedAt:


{&quot;updatedAt&quot;: {&quot;between&quot;: &quot;[2021-08-06T13:46:00Z, 2021-11-11T13:46:00Z]&quot;}}

{&quot;updatedAt&quot;: {&quot;after&quot;: &quot;2021-11-06T13:46:00Z&quot;}}

{&quot;updatedAt&quot;: {&quot;before&quot;: &quot;2021-11-06T13:46:00Z&quot;}}

| | size | number | | The maximum number of elements returned in one page. Default value is 20. Maxium allowed value is 100. | | page | number | | The (0-based) index of the page |

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;_embedded&quot;:{&quot;commands&quot;:[{&quot;id&quot;:&quot;21349765fe45652c8e126814c283a114&quot;,&quot;clientId&quot;:&quot;mytenant_201541ad38a4495a96e2021c762b647f&quot;,&quot;tenantId&quot;:&quot;mytenant&quot;,&quot;status&quot;:&quot;CANCELED&quot;,&quot;updatedAt&quot;:&quot;2011-08-12T20:17:46.384Z&quot;},{&quot;id&quot;:&quot;21349765fe45652c8e126814c283a114&quot;,&quot;clientId&quot;:&quot;mytenant_201541ad38a4495a96e2021c762b647f&quot;,&quot;tenantId&quot;:&quot;mytenant&quot;,&quot;status&quot;:&quot;FAILED&quot;,&quot;updatedAt&quot;:&quot;2011-08-12T20:17:46.384Z&quot;}]},&quot;page&quot;:{&quot;size&quot;:44042410,&quot;totalElements&quot;:-2953,&quot;totalPages&quot;:-23376268,&quot;number&quot;:3421920},&quot;_links&quot;:{&quot;self&quot;:{&quot;href&quot;:&quot;dolor&quot;},&quot;first&quot;:{&quot;href&quot;:&quot;id en&quot;},&quot;prev&quot;:{&quot;href&quot;:&quot;incididunt ullamco&quot;},&quot;next&quot;:{&quot;href&quot;:&quot;esse magna cul&quot;},&quot;last&quot;:{&quot;href&quot;:&quot;quis qui&quot;}}}