losant_rest 1.9.2 → 1.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +38445 -24043
  3. data/docs/application.md +124 -2
  4. data/docs/applicationTemplates.md +50 -0
  5. data/docs/auth.md +72 -0
  6. data/docs/device.md +1 -0
  7. data/docs/devices.md +92 -3
  8. data/docs/experienceEndpoints.md +1 -0
  9. data/docs/file.md +4 -4
  10. data/docs/flow.md +94 -1
  11. data/docs/flowVersion.md +96 -1
  12. data/lib/losant_rest.rb +1 -0
  13. data/lib/losant_rest/application.rb +93 -2
  14. data/lib/losant_rest/application_templates.rb +88 -0
  15. data/lib/losant_rest/auth.rb +84 -0
  16. data/lib/losant_rest/client.rb +6 -2
  17. data/lib/losant_rest/device.rb +2 -0
  18. data/lib/losant_rest/devices.rb +105 -2
  19. data/lib/losant_rest/experience_endpoints.rb +2 -0
  20. data/lib/losant_rest/file.rb +3 -3
  21. data/lib/losant_rest/flow.rb +115 -1
  22. data/lib/losant_rest/flow_version.rb +115 -1
  23. data/lib/losant_rest/version.rb +2 -2
  24. data/schemas/advancedDeviceQuery.json +1018 -0
  25. data/schemas/advancedEventQuery.json +382 -13
  26. data/schemas/advancedQuery.json +37 -3
  27. data/schemas/application.json +7 -2
  28. data/schemas/applicationApiTokenPost.json +8 -1
  29. data/schemas/applicationCreationByTemplateResult.json +7 -2
  30. data/schemas/applicationPatch.json +7 -2
  31. data/schemas/applicationPost.json +11 -2
  32. data/schemas/applicationReadme.json +29 -0
  33. data/schemas/applicationReadmePatch.json +11 -0
  34. data/schemas/applicationTemplate.json +99 -0
  35. data/schemas/applicationTemplates.json +140 -0
  36. data/schemas/applications.json +7 -2
  37. data/schemas/dashboard.json +1168 -144
  38. data/schemas/dashboardPatch.json +1168 -144
  39. data/schemas/dashboardPost.json +1168 -144
  40. data/schemas/dashboards.json +1168 -144
  41. data/schemas/dataExport.json +11 -0
  42. data/schemas/dataTableRows.json +3 -0
  43. data/schemas/dataTableRowsExport.json +37 -3
  44. data/schemas/device.json +16 -3
  45. data/schemas/devicePatch.json +16 -3
  46. data/schemas/devicePost.json +16 -3
  47. data/schemas/deviceRecipe.json +16 -3
  48. data/schemas/deviceRecipePatch.json +16 -3
  49. data/schemas/deviceRecipePost.json +16 -3
  50. data/schemas/deviceRecipes.json +16 -3
  51. data/schemas/devices.json +19 -3
  52. data/schemas/devicesDataRemoved.json +12 -0
  53. data/schemas/devicesDeletePost.json +1034 -0
  54. data/schemas/devicesDeleted.json +12 -0
  55. data/schemas/devicesExportPost.json +1035 -0
  56. data/schemas/devicesPatch.json +1773 -7
  57. data/schemas/devicesRemoveDataPost.json +1056 -0
  58. data/schemas/devicesUpdated.json +18 -0
  59. data/schemas/eventPost.json +22 -0
  60. data/schemas/events.json +1 -816
  61. data/schemas/eventsExport.json +382 -13
  62. data/schemas/experienceDomain.json +1 -1
  63. data/schemas/experienceDomainPatch.json +1 -1
  64. data/schemas/experienceDomainPost.json +1 -1
  65. data/schemas/experienceDomains.json +1 -1
  66. data/schemas/experienceGroup.json +7 -0
  67. data/schemas/experienceGroupPatch.json +7 -0
  68. data/schemas/experienceGroupPost.json +7 -0
  69. data/schemas/experienceGroups.json +7 -0
  70. data/schemas/experienceLinkedResources.json +309 -3
  71. data/schemas/experienceVersion.json +1 -1
  72. data/schemas/experienceVersions.json +1 -1
  73. data/schemas/flow.json +103 -1
  74. data/schemas/flowErrors.json +87 -0
  75. data/schemas/flowPatch.json +103 -1
  76. data/schemas/flowPost.json +103 -1
  77. data/schemas/flowStats.json +54 -0
  78. data/schemas/flowVersion.json +206 -2
  79. data/schemas/flowVersionPost.json +103 -1
  80. data/schemas/flowVersions.json +206 -2
  81. data/schemas/flows.json +103 -1
  82. data/schemas/flowsImportPost.json +206 -2
  83. data/schemas/flowsImportResult.json +309 -3
  84. data/schemas/githubLogin.json +10 -1
  85. data/schemas/me.json +3 -0
  86. data/schemas/multiDeviceCommand.json +1019 -0
  87. data/schemas/notebook.json +99 -2
  88. data/schemas/notebookPatch.json +99 -2
  89. data/schemas/notebookPost.json +99 -2
  90. data/schemas/notebooks.json +99 -2
  91. data/schemas/org.json +8 -0
  92. data/schemas/orgPatch.json +9 -0
  93. data/schemas/orgs.json +8 -0
  94. data/schemas/samlResponse.json +21 -0
  95. data/schemas/ssoRequest.json +20 -0
  96. data/schemas/timeSeriesData.json +91 -12
  97. data/schemas/timeSeriesQuery.json +21 -12
  98. data/schemas/userCredentials.json +10 -1
  99. data/schemas/userPost.json +10 -1
  100. metadata +20 -4
@@ -14,9 +14,12 @@ parameters and the potential responses.
14
14
  * [Full Data Tables Archive](#full-data-tables-archive)
15
15
  * [Full Events Archive](#full-events-archive)
16
16
  * [Get](#get)
17
+ * [Import](#import)
17
18
  * [Mqtt Publish Message](#mqtt-publish-message)
18
19
  * [Patch](#patch)
19
20
  * [Payload Counts](#payload-counts)
21
+ * [Readme](#readme)
22
+ * [Readme Patch](#readme-patch)
20
23
  * [Search](#search)
21
24
 
22
25
  <br/>
@@ -63,7 +66,7 @@ all.Application, all.Organization, all.User, application.*, or application.archi
63
66
 
64
67
  ## Backfill Archive Data
65
68
 
66
- Returns success when a job has been enqueued to backfill all current data to it&#x27;s archive
69
+ Returns success when a job has been enqueued to backfill all current data to its archive
67
70
 
68
71
  ```ruby
69
72
  result = client.application.backfill_archive_data(applicationId: my_application_id)
@@ -178,7 +181,7 @@ all.Application, all.Organization, all.User, application.*, or application.delet
178
181
 
179
182
  ## Export
180
183
 
181
- Export an application and all of it&#x27;s resources
184
+ Export an application and all of its resources
182
185
 
183
186
  ```ruby
184
187
  result = client.application.export(
@@ -330,6 +333,48 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
330
333
 
331
334
  <br/>
332
335
 
336
+ ## Import
337
+
338
+ Add multiple resources to an application via a zip file
339
+
340
+ ```ruby
341
+ result = client.application.import(
342
+ applicationId: my_application_id,
343
+ importBundle: my_import_bundle)
344
+
345
+ puts result
346
+ ```
347
+
348
+ #### Authentication
349
+ The client must be configured with a valid api access token to call this
350
+ action. The token must include at least one of the following scopes:
351
+ all.Application, all.Organization, all.User, application.*, or application.import.
352
+
353
+ #### Available Parameters
354
+
355
+ | Name | Type | Required | Description | Default | Example |
356
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
357
+ | applicationId | string | Y | ID of the associated application | | 575ec8687ae143cd83dc4a97 |
358
+ | importBundle | file | Y | The zip file containing all of the resources to import into the application | | undefined |
359
+ | email | string | N | Email address to notify the user when the job to import the application resources has completed or errored, defaults to the email address of the user making the request | | email@example.com |
360
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
361
+
362
+ #### Successful Responses
363
+
364
+ | Code | Type | Description |
365
+ | ---- | ---- | ----------- |
366
+ | 200 | [Application](_schemas.md#application) | Updated application information |
367
+ | 202 | [Job Enqueued API Result](_schemas.md#job-enqueued-api-result) | If a job was enqueued for the resources to be imported into the application |
368
+
369
+ #### Error Responses
370
+
371
+ | Code | Type | Description |
372
+ | ---- | ---- | ----------- |
373
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
374
+ | 404 | [Error](_schemas.md#error) | Error if application is not found |
375
+
376
+ <br/>
377
+
333
378
  ## Mqtt Publish Message
334
379
 
335
380
  Publishes the given message to the given MQTT topic
@@ -451,6 +496,83 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
451
496
 
452
497
  <br/>
453
498
 
499
+ ## Readme
500
+
501
+ Get the current application readme information
502
+
503
+ ```ruby
504
+ result = client.application.readme(applicationId: my_application_id)
505
+
506
+ puts result
507
+ ```
508
+
509
+ #### Authentication
510
+ The client must be configured with a valid api access token to call this
511
+ action. The token must include at least one of the following scopes:
512
+ all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, application.*, or application.get.
513
+
514
+ #### Available Parameters
515
+
516
+ | Name | Type | Required | Description | Default | Example |
517
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
518
+ | applicationId | string | Y | ID of the associated application | | 575ec8687ae143cd83dc4a97 |
519
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
520
+
521
+ #### Successful Responses
522
+
523
+ | Code | Type | Description |
524
+ | ---- | ---- | ----------- |
525
+ | 200 | [Application Readme](_schemas.md#application-readme) | The application readme information |
526
+
527
+ #### Error Responses
528
+
529
+ | Code | Type | Description |
530
+ | ---- | ---- | ----------- |
531
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
532
+ | 404 | [Error](_schemas.md#error) | Error if application was not found |
533
+
534
+ <br/>
535
+
536
+ ## Readme Patch
537
+
538
+ Update the current application readme information
539
+
540
+ ```ruby
541
+ result = client.application.readme_patch(
542
+ applicationId: my_application_id,
543
+ readme: my_readme)
544
+
545
+ puts result
546
+ ```
547
+
548
+ #### Authentication
549
+ The client must be configured with a valid api access token to call this
550
+ action. The token must include at least one of the following scopes:
551
+ all.Application, all.Organization, all.User, application.*, or application.patch.
552
+
553
+ #### Available Parameters
554
+
555
+ | Name | Type | Required | Description | Default | Example |
556
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
557
+ | applicationId | string | Y | ID of the associated application | | 575ec8687ae143cd83dc4a97 |
558
+ | readme | [Application Readme Patch](_schemas.md#application-readme-patch) | Y | Object containing new readme information | | [Application Readme Patch Example](_schemas.md#application-readme-patch-example) |
559
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
560
+
561
+ #### Successful Responses
562
+
563
+ | Code | Type | Description |
564
+ | ---- | ---- | ----------- |
565
+ | 200 | [Application Readme](_schemas.md#application-readme) | Updated readme information |
566
+
567
+ #### Error Responses
568
+
569
+ | Code | Type | Description |
570
+ | ---- | ---- | ----------- |
571
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
572
+ | 404 | [Error](_schemas.md#error) | Error if application was not found |
573
+
574
+ <br/>
575
+
454
576
  ## Search
455
577
 
456
578
  Search across an application&#x27;s resources by target identifier
@@ -0,0 +1,50 @@
1
+ # Application Templates Actions
2
+
3
+ Details on the various actions that can be performed on the
4
+ Application Templates resource, including the expected
5
+ parameters and the potential responses.
6
+
7
+ ##### Contents
8
+
9
+ * [Get](#get)
10
+
11
+ <br/>
12
+
13
+ ## Get
14
+
15
+ Returns the application templates the current user has permission to see
16
+
17
+ ```ruby
18
+ result = client.application_templates.get(optional_params)
19
+
20
+ puts result
21
+ ```
22
+
23
+ #### Authentication
24
+ The client must be configured with a valid api access token to call this
25
+ action. The token must include at least one of the following scopes:
26
+ all.User, all.User.read, applicationTemplates.*, or applicationTemplates.get.
27
+
28
+ #### Available Parameters
29
+
30
+ | Name | Type | Required | Description | Default | Example |
31
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
32
+ | sortField | string | N | Field to sort the results by. Accepted values are: name, id, creationDate, lastUpdated | name | name |
33
+ | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
34
+ | page | string | N | Which page of results to return | 0 | 0 |
35
+ | perPage | string | N | How many items to return per page | 1000 | 10 |
36
+ | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name | | name |
37
+ | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my * app |
38
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
39
+
40
+ #### Successful Responses
41
+
42
+ | Code | Type | Description |
43
+ | ---- | ---- | ----------- |
44
+ | 200 | [Application Templates](_schemas.md#application-templates) | Collection of application templates |
45
+
46
+ #### Error Responses
47
+
48
+ | Code | Type | Description |
49
+ | ---- | ---- | ----------- |
50
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
@@ -9,6 +9,8 @@ parameters and the potential responses.
9
9
  * [Authenticate Device](#authenticate-device)
10
10
  * [Authenticate User](#authenticate-user)
11
11
  * [Authenticate User Github](#authenticate-user-github)
12
+ * [Authenticate User Saml](#authenticate-user-saml)
13
+ * [Sso Domain](#sso-domain)
12
14
 
13
15
  <br/>
14
16
 
@@ -114,3 +116,73 @@ No api access token is required to call this action.
114
116
  | ---- | ---- | ----------- |
115
117
  | 400 | [Error](_schemas.md#error) | Error if malformed request |
116
118
  | 401 | [Error](_schemas.md#error) | Unauthorized error if authentication fails |
119
+
120
+ <br/>
121
+
122
+ ## Authenticate User Saml
123
+
124
+ Authenticates a user via a SAML response.
125
+
126
+ ```ruby
127
+ result = client.auth.authenticate_user_saml(saml: my_saml)
128
+
129
+ puts result
130
+ ```
131
+
132
+ #### Authentication
133
+ No api access token is required to call this action.
134
+
135
+ #### Available Parameters
136
+
137
+ | Name | Type | Required | Description | Default | Example |
138
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
139
+ | saml | [SAML Response](_schemas.md#saml-response) | Y | Encoded SAML response from an IDP for a user. | | [SAML Response Example](_schemas.md#saml-response-example) |
140
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
141
+
142
+ #### Successful Responses
143
+
144
+ | Code | Type | Description |
145
+ | ---- | ---- | ----------- |
146
+ | 200 | [Authenticated User](_schemas.md#authenticated-user) | Successful authentication. The included api access token has the scope &#x27;all.User&#x27;. |
147
+
148
+ #### Error Responses
149
+
150
+ | Code | Type | Description |
151
+ | ---- | ---- | ----------- |
152
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
153
+ | 401 | [Error](_schemas.md#error) | Unauthorized error if authentication fails |
154
+
155
+ <br/>
156
+
157
+ ## Sso Domain
158
+
159
+ Checks email domain for SSO configuration.
160
+
161
+ ```ruby
162
+ result = client.auth.sso_domain(email: my_email)
163
+
164
+ puts result
165
+ ```
166
+
167
+ #### Authentication
168
+ No api access token is required to call this action.
169
+
170
+ #### Available Parameters
171
+
172
+ | Name | Type | Required | Description | Default | Example |
173
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
174
+ | email | string | Y | The email address associated with the user login | | example@example.com |
175
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
176
+
177
+ #### Successful Responses
178
+
179
+ | Code | Type | Description |
180
+ | ---- | ---- | ----------- |
181
+ | 200 | [SSO Request](_schemas.md#sso-request) | Successful finding SSO for domain. Returns SSO request URL and type. |
182
+ | 204 | undefined | No domain associated with an SSO configuration |
183
+
184
+ #### Error Responses
185
+
186
+ | Code | Type | Description |
187
+ | ---- | ---- | ----------- |
188
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
@@ -88,6 +88,7 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
88
88
  | end | string | N | End time of export (ms since epoch - 0 means now, negative is relative to now) | 0 | 1465790400000 |
89
89
  | email | string | N | Email address to send export to. Defaults to current user&#x27;s email. | | email@example.com |
90
90
  | callbackUrl | string | N | Callback URL to call with export result | | https://example.com/cburl |
91
+ | includeBlobData | string | N | If set will export any blob attributes in base64 form, otherwise they will be downloadable links which will expire. | | true |
91
92
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
92
93
 
93
94
  #### Successful Responses
@@ -6,14 +6,57 @@ parameters and the potential responses.
6
6
 
7
7
  ##### Contents
8
8
 
9
+ * [Delete](#delete)
9
10
  * [Export](#export)
10
11
  * [Get](#get)
11
12
  * [Patch](#patch)
12
13
  * [Post](#post)
14
+ * [Remove Data](#remove-data)
13
15
  * [Send Command](#send-command)
14
16
 
15
17
  <br/>
16
18
 
19
+ ## Delete
20
+
21
+ Delete devices
22
+
23
+ ```ruby
24
+ result = client.devices.delete(
25
+ applicationId: my_application_id,
26
+ options: my_options)
27
+
28
+ puts result
29
+ ```
30
+
31
+ #### Authentication
32
+ The client must be configured with a valid api access token to call this
33
+ action. The token must include at least one of the following scopes:
34
+ all.Application, all.Organization, all.User, devices.*, or devices.delete.
35
+
36
+ #### Available Parameters
37
+
38
+ | Name | Type | Required | Description | Default | Example |
39
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
40
+ | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
41
+ | options | [Devices Delete Post](_schemas.md#devices-delete-post) | Y | Object containing device query and email | | [Devices Delete Post Example](_schemas.md#devices-delete-post-example) |
42
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
43
+
44
+ #### Successful Responses
45
+
46
+ | Code | Type | Description |
47
+ | ---- | ---- | ----------- |
48
+ | 200 | [Devices Deleted](_schemas.md#devices-deleted) | Object indicating number of devices deleted or failed |
49
+ | 202 | [Job Enqueued API Result](_schemas.md#job-enqueued-api-result) | If a job was enqueued for the devices to be deleted |
50
+
51
+ #### Error Responses
52
+
53
+ | Code | Type | Description |
54
+ | ---- | ---- | ----------- |
55
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
56
+ | 404 | [Error](_schemas.md#error) | Error if application was not found |
57
+
58
+ <br/>
59
+
17
60
  ## Export
18
61
 
19
62
  Creates an export of all device metadata
@@ -36,6 +79,7 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
36
79
  | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
37
80
  | email | string | N | Email address to send export to. Defaults to current user&#x27;s email. | | email@example.com |
38
81
  | callbackUrl | string | N | Callback URL to call with export result | | https://example.com/cburl |
82
+ | options | [Devices Metadata Export Post](_schemas.md#devices-metadata-export-post) | N | Object containing device query and optionally email or callback | | [Devices Metadata Export Post Example](_schemas.md#devices-metadata-export-post-example) |
39
83
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
40
84
 
41
85
  #### Successful Responses
@@ -83,6 +127,7 @@ all.Application, all.Application.read, all.Device, all.Device.read, all.Organiza
83
127
  | tagFilter | [Device Tag Filter](_schemas.md#device-tag-filter) | N | Array of tag pairs to filter by | | [Device Tag Filter Example](_schemas.md#device-tag-filter-example) |
84
128
  | excludeConnectionInfo | string | N | If set, do not return connection info | | true |
85
129
  | parentId | string | N | Filter devices as children of a given system id | | 575ecf887ae143cd83dc4aa2 |
130
+ | query | [Advanced Device Query](_schemas.md#advanced-device-query) | N | Device filter JSON object which overrides the filterField, filter, deviceClass, tagFilter, and parentId parameters. | | [Advanced Device Query Example](_schemas.md#advanced-device-query-example) |
86
131
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
87
132
 
88
133
  #### Successful Responses
@@ -105,7 +150,9 @@ all.Application, all.Application.read, all.Device, all.Device.read, all.Organiza
105
150
  Update the fields of one or more devices
106
151
 
107
152
  ```ruby
108
- result = client.devices.patch(applicationId: my_application_id)
153
+ result = client.devices.patch(
154
+ applicationId: my_application_id,
155
+ patchInfo: my_patch_info)
109
156
 
110
157
  puts result
111
158
  ```
@@ -120,14 +167,15 @@ all.Application, all.Organization, all.User, devices.*, or devices.patch.
120
167
  | Name | Type | Required | Description | Default | Example |
121
168
  | ---- | ---- | -------- | ----------- | ------- | ------- |
122
169
  | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
123
- | patchInfo | [Devices Patch](_schemas.md#devices-patch) | N | Object containing device filter fields and updated properties | | [Devices Patch Example](_schemas.md#devices-patch-example) |
170
+ | patchInfo | [Devices Patch](_schemas.md#devices-patch) | Y | Object containing device query or IDs and update operations | | [Devices Patch Example](_schemas.md#devices-patch-example) |
124
171
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
125
172
 
126
173
  #### Successful Responses
127
174
 
128
175
  | Code | Type | Description |
129
176
  | ---- | ---- | ----------- |
130
- | 201 | [Success](_schemas.md#success) | Successfully queued bulk update job |
177
+ | 200 | [Devices Updated](_schemas.md#devices-updated) | Object including an update log link and the number of devices updated, failed, and skipped |
178
+ | 202 | [Job Enqueued API Result](_schemas.md#job-enqueued-api-result) | Successfully queued bulk update job |
131
179
 
132
180
  #### Error Responses
133
181
 
@@ -178,6 +226,47 @@ all.Application, all.Organization, all.User, devices.*, or devices.post.
178
226
 
179
227
  <br/>
180
228
 
229
+ ## Remove Data
230
+
231
+ Removes all device data for the specified time range. Defaults to all data.
232
+
233
+ ```ruby
234
+ result = client.devices.remove_data(
235
+ applicationId: my_application_id,
236
+ options: my_options)
237
+
238
+ puts result
239
+ ```
240
+
241
+ #### Authentication
242
+ The client must be configured with a valid api access token to call this
243
+ action. The token must include at least one of the following scopes:
244
+ all.Application, all.Organization, all.User, devices.*, or devices.removeData.
245
+
246
+ #### Available Parameters
247
+
248
+ | Name | Type | Required | Description | Default | Example |
249
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
250
+ | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
251
+ | options | [Devices Remove Data Post](_schemas.md#devices-remove-data-post) | Y | Object defining the device data to delete and devices to delete from | | [Devices Remove Data Post Example](_schemas.md#devices-remove-data-post-example) |
252
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
253
+
254
+ #### Successful Responses
255
+
256
+ | Code | Type | Description |
257
+ | ---- | ---- | ----------- |
258
+ | 200 | [Devices Data Removed](_schemas.md#devices-data-removed) | Object indicating number of devices completed or skipped |
259
+ | 202 | [Job Enqueued API Result](_schemas.md#job-enqueued-api-result) | If a job was enqueued for device data to be removed |
260
+
261
+ #### Error Responses
262
+
263
+ | Code | Type | Description |
264
+ | ---- | ---- | ----------- |
265
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
266
+ | 404 | [Error](_schemas.md#error) | Error if application was not found |
267
+
268
+ <br/>
269
+
181
270
  ## Send Command
182
271
 
183
272
  Send a command to multiple devices