Device Jobs
/api/v2/deviceJobs
Create a device job / install an APK
Parameters
| Name | Description |
|---|---|
| file * | The APK file to install. Type: file (form-data) |
| mobileId * | Numeric ID of the target mobile device. Type: integer (form-data) |
Responses
| Code | Description |
|---|---|
| 200 |
The created device job. Media type: application/json Example Value: {
"id": 0,
"status": "string",
"filename": "string"
}
|
| 404 | Resource was not found. |
/api/v2/deviceJobs
List device jobs
Parameters
| Name | Description |
|---|---|
| mobileId | Filter by mobile device id. Type: integer (query) |
| status | Filter by job status. Type: string (query) |
| page | The page to list entries. Type: string (query) Default value: 0 |
| size | The page size for listing entries. Type: string (query) Default value: 20 |
Responses
| Code | Description |
|---|---|
| 200 |
OK Media type: application/json Example Value: {
"totalElements": 0,
"totalPages": 0,
"number": 0,
"sort": {
"sorted": true,
"unsorted": true,
"empty": true
},
"size": 0,
"content": [
{
"id": 0,
"mobileId": 0,
"status": "string",
"filename": "string",
"created": "string"
}
],
"first": true,
"last": true,
"pageable": {
"sort": {
"sorted": true,
"unsorted": true,
"empty": true
},
"offset": 0,
"paged": true,
"unpaged": true,
"pageNumber": 0,
"pageSize": 0
},
"numberOfElements": 0,
"empty": true
}
|
/api/v2/deviceJobs/{id}
Get one device job's status
Parameters
| Name | Description |
|---|---|
| id * | Numeric ID of the device job. Type: integer (path) |
Responses
| Code | Description |
|---|---|
| 200 |
Device job data. Media type: application/json Example Value: {
"id": 0,
"mobileId": 0,
"status": "string",
"filename": "string",
"created": "string"
}
|
| 404 | Resource was not found. |