losant_rest 1.14.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/_schemas.md +2988 -1118
- data/docs/instance.md +4 -2
- data/lib/losant_rest/client.rb +2 -2
- data/lib/losant_rest/instance.rb +1 -0
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/dataTableRowsDelete.json +1 -1
- data/schemas/eventsDeleted.json +1 -1
- data/schemas/experienceLinkedResources.json +336 -6
- data/schemas/flow.json +112 -2
- data/schemas/flowPatch.json +112 -2
- data/schemas/flowPost.json +112 -2
- data/schemas/flowVersion.json +224 -4
- data/schemas/flowVersionPost.json +112 -2
- data/schemas/flowVersions.json +224 -4
- data/schemas/flows.json +112 -2
- data/schemas/flowsImportPost.json +224 -4
- data/schemas/flowsImportResult.json +336 -6
- metadata +3 -3
data/docs/instance.md
CHANGED
@@ -135,7 +135,9 @@ all.Instance, all.Instance.read, all.User, all.User.read, instance.*, or instanc
|
|
135
135
|
Updates information about an instance
|
136
136
|
|
137
137
|
```ruby
|
138
|
-
result = client.instance.patch(
|
138
|
+
result = client.instance.patch(
|
139
|
+
instanceId: my_instance_id,
|
140
|
+
instance: my_instance)
|
139
141
|
|
140
142
|
puts result
|
141
143
|
```
|
@@ -150,7 +152,7 @@ all.Instance, all.User, instance.*, or instance.patch.
|
|
150
152
|
| Name | Type | Required | Description | Default | Example |
|
151
153
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
152
154
|
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
|
153
|
-
| instance | [Instance Patch](_schemas.md#instance-patch) |
|
155
|
+
| instance | [Instance Patch](_schemas.md#instance-patch) | Y | Updated instance information | | [Instance Patch Example](_schemas.md#instance-patch-example) |
|
154
156
|
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
155
157
|
|
156
158
|
#### Successful Responses
|
data/lib/losant_rest/client.rb
CHANGED
@@ -27,7 +27,7 @@ module LosantRest
|
|
27
27
|
#
|
28
28
|
# User API for accessing Losant data
|
29
29
|
#
|
30
|
-
# Built For Version 1.21.
|
30
|
+
# Built For Version 1.21.1
|
31
31
|
class Client
|
32
32
|
attr_accessor :auth_token, :url
|
33
33
|
|
@@ -350,7 +350,7 @@ module LosantRest
|
|
350
350
|
|
351
351
|
headers["Accept"] = "application/json"
|
352
352
|
headers["Content-Type"] = "application/json"
|
353
|
-
headers["Accept-Version"] = "^1.21.
|
353
|
+
headers["Accept-Version"] = "^1.21.1"
|
354
354
|
headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
|
355
355
|
path = self.url + options.fetch(:path, "")
|
356
356
|
|
data/lib/losant_rest/instance.rb
CHANGED
@@ -205,6 +205,7 @@ module LosantRest
|
|
205
205
|
body = nil
|
206
206
|
|
207
207
|
raise ArgumentError.new("instanceId is required") unless params.has_key?(:instanceId)
|
208
|
+
raise ArgumentError.new("instance is required") unless params.has_key?(:instance)
|
208
209
|
|
209
210
|
body = params[:instance] if params.has_key?(:instance)
|
210
211
|
headers[:losantdomain] = params[:losantdomain] if params.has_key?(:losantdomain)
|
data/lib/losant_rest/version.rb
CHANGED
data/schemas/eventsDeleted.json
CHANGED
@@ -464,7 +464,6 @@
|
|
464
464
|
"onBoot",
|
465
465
|
"onConnect",
|
466
466
|
"onDisconnect",
|
467
|
-
"request",
|
468
467
|
"udp",
|
469
468
|
"webhook"
|
470
469
|
]
|
@@ -498,7 +497,6 @@
|
|
498
497
|
"onConnect",
|
499
498
|
"onDisconnect",
|
500
499
|
"particle",
|
501
|
-
"request",
|
502
500
|
"udp",
|
503
501
|
"webhook"
|
504
502
|
]
|
@@ -1797,6 +1795,118 @@
|
|
1797
1795
|
],
|
1798
1796
|
"additionalProperties": false
|
1799
1797
|
},
|
1798
|
+
{
|
1799
|
+
"type": "object",
|
1800
|
+
"properties": {
|
1801
|
+
"key": {
|
1802
|
+
"type": "string",
|
1803
|
+
"maxLength": 1024
|
1804
|
+
},
|
1805
|
+
"type": {
|
1806
|
+
"type": "string",
|
1807
|
+
"enum": [
|
1808
|
+
"request"
|
1809
|
+
]
|
1810
|
+
},
|
1811
|
+
"config": {
|
1812
|
+
"type": "object",
|
1813
|
+
"properties": {
|
1814
|
+
"method": {
|
1815
|
+
"type": "string",
|
1816
|
+
"enum": [
|
1817
|
+
"*",
|
1818
|
+
"delete",
|
1819
|
+
"get",
|
1820
|
+
"options",
|
1821
|
+
"patch",
|
1822
|
+
"post",
|
1823
|
+
"put"
|
1824
|
+
]
|
1825
|
+
},
|
1826
|
+
"route": {
|
1827
|
+
"type": "string",
|
1828
|
+
"maxLength": 1024
|
1829
|
+
}
|
1830
|
+
},
|
1831
|
+
"additionalProperties": false
|
1832
|
+
},
|
1833
|
+
"meta": {
|
1834
|
+
"type": "object",
|
1835
|
+
"properties": {
|
1836
|
+
"category": {
|
1837
|
+
"type": "string",
|
1838
|
+
"enum": [
|
1839
|
+
"trigger"
|
1840
|
+
]
|
1841
|
+
},
|
1842
|
+
"name": {
|
1843
|
+
"type": "string",
|
1844
|
+
"enum": [
|
1845
|
+
"request"
|
1846
|
+
]
|
1847
|
+
},
|
1848
|
+
"label": {
|
1849
|
+
"type": "string",
|
1850
|
+
"minLength": 1,
|
1851
|
+
"maxLength": 255
|
1852
|
+
},
|
1853
|
+
"x": {
|
1854
|
+
"type": "number"
|
1855
|
+
},
|
1856
|
+
"y": {
|
1857
|
+
"type": "number"
|
1858
|
+
},
|
1859
|
+
"uiId": {
|
1860
|
+
"type": "string",
|
1861
|
+
"maxLength": 48
|
1862
|
+
},
|
1863
|
+
"description": {
|
1864
|
+
"type": "string",
|
1865
|
+
"maxLength": 32767
|
1866
|
+
},
|
1867
|
+
"icon": {
|
1868
|
+
"type": "string",
|
1869
|
+
"maxLength": 1024
|
1870
|
+
},
|
1871
|
+
"color": {
|
1872
|
+
"type": "string",
|
1873
|
+
"maxLength": 1024
|
1874
|
+
},
|
1875
|
+
"inputCount": {
|
1876
|
+
"type": "number"
|
1877
|
+
},
|
1878
|
+
"outputCount": {
|
1879
|
+
"type": "number"
|
1880
|
+
},
|
1881
|
+
"triggerId": {
|
1882
|
+
"type": "string",
|
1883
|
+
"maxLength": 48
|
1884
|
+
},
|
1885
|
+
"id": {
|
1886
|
+
"type": "string",
|
1887
|
+
"maxLength": 48
|
1888
|
+
}
|
1889
|
+
},
|
1890
|
+
"additionalProperties": false
|
1891
|
+
},
|
1892
|
+
"outputIds": {
|
1893
|
+
"type": "array",
|
1894
|
+
"items": {
|
1895
|
+
"type": "array",
|
1896
|
+
"items": {
|
1897
|
+
"type": "string",
|
1898
|
+
"maxLength": 255
|
1899
|
+
},
|
1900
|
+
"maxItems": 100
|
1901
|
+
},
|
1902
|
+
"maxItems": 100
|
1903
|
+
}
|
1904
|
+
},
|
1905
|
+
"required": [
|
1906
|
+
"type"
|
1907
|
+
],
|
1908
|
+
"additionalProperties": false
|
1909
|
+
},
|
1800
1910
|
{
|
1801
1911
|
"type": "object",
|
1802
1912
|
"properties": {
|
@@ -2727,7 +2837,6 @@
|
|
2727
2837
|
"onBoot",
|
2728
2838
|
"onConnect",
|
2729
2839
|
"onDisconnect",
|
2730
|
-
"request",
|
2731
2840
|
"udp",
|
2732
2841
|
"webhook"
|
2733
2842
|
]
|
@@ -2761,7 +2870,6 @@
|
|
2761
2870
|
"onConnect",
|
2762
2871
|
"onDisconnect",
|
2763
2872
|
"particle",
|
2764
|
-
"request",
|
2765
2873
|
"udp",
|
2766
2874
|
"webhook"
|
2767
2875
|
]
|
@@ -4060,6 +4168,118 @@
|
|
4060
4168
|
],
|
4061
4169
|
"additionalProperties": false
|
4062
4170
|
},
|
4171
|
+
{
|
4172
|
+
"type": "object",
|
4173
|
+
"properties": {
|
4174
|
+
"key": {
|
4175
|
+
"type": "string",
|
4176
|
+
"maxLength": 1024
|
4177
|
+
},
|
4178
|
+
"type": {
|
4179
|
+
"type": "string",
|
4180
|
+
"enum": [
|
4181
|
+
"request"
|
4182
|
+
]
|
4183
|
+
},
|
4184
|
+
"config": {
|
4185
|
+
"type": "object",
|
4186
|
+
"properties": {
|
4187
|
+
"method": {
|
4188
|
+
"type": "string",
|
4189
|
+
"enum": [
|
4190
|
+
"*",
|
4191
|
+
"delete",
|
4192
|
+
"get",
|
4193
|
+
"options",
|
4194
|
+
"patch",
|
4195
|
+
"post",
|
4196
|
+
"put"
|
4197
|
+
]
|
4198
|
+
},
|
4199
|
+
"route": {
|
4200
|
+
"type": "string",
|
4201
|
+
"maxLength": 1024
|
4202
|
+
}
|
4203
|
+
},
|
4204
|
+
"additionalProperties": false
|
4205
|
+
},
|
4206
|
+
"meta": {
|
4207
|
+
"type": "object",
|
4208
|
+
"properties": {
|
4209
|
+
"category": {
|
4210
|
+
"type": "string",
|
4211
|
+
"enum": [
|
4212
|
+
"trigger"
|
4213
|
+
]
|
4214
|
+
},
|
4215
|
+
"name": {
|
4216
|
+
"type": "string",
|
4217
|
+
"enum": [
|
4218
|
+
"request"
|
4219
|
+
]
|
4220
|
+
},
|
4221
|
+
"label": {
|
4222
|
+
"type": "string",
|
4223
|
+
"minLength": 1,
|
4224
|
+
"maxLength": 255
|
4225
|
+
},
|
4226
|
+
"x": {
|
4227
|
+
"type": "number"
|
4228
|
+
},
|
4229
|
+
"y": {
|
4230
|
+
"type": "number"
|
4231
|
+
},
|
4232
|
+
"uiId": {
|
4233
|
+
"type": "string",
|
4234
|
+
"maxLength": 48
|
4235
|
+
},
|
4236
|
+
"description": {
|
4237
|
+
"type": "string",
|
4238
|
+
"maxLength": 32767
|
4239
|
+
},
|
4240
|
+
"icon": {
|
4241
|
+
"type": "string",
|
4242
|
+
"maxLength": 1024
|
4243
|
+
},
|
4244
|
+
"color": {
|
4245
|
+
"type": "string",
|
4246
|
+
"maxLength": 1024
|
4247
|
+
},
|
4248
|
+
"inputCount": {
|
4249
|
+
"type": "number"
|
4250
|
+
},
|
4251
|
+
"outputCount": {
|
4252
|
+
"type": "number"
|
4253
|
+
},
|
4254
|
+
"triggerId": {
|
4255
|
+
"type": "string",
|
4256
|
+
"maxLength": 48
|
4257
|
+
},
|
4258
|
+
"id": {
|
4259
|
+
"type": "string",
|
4260
|
+
"maxLength": 48
|
4261
|
+
}
|
4262
|
+
},
|
4263
|
+
"additionalProperties": false
|
4264
|
+
},
|
4265
|
+
"outputIds": {
|
4266
|
+
"type": "array",
|
4267
|
+
"items": {
|
4268
|
+
"type": "array",
|
4269
|
+
"items": {
|
4270
|
+
"type": "string",
|
4271
|
+
"maxLength": 255
|
4272
|
+
},
|
4273
|
+
"maxItems": 100
|
4274
|
+
},
|
4275
|
+
"maxItems": 100
|
4276
|
+
}
|
4277
|
+
},
|
4278
|
+
"required": [
|
4279
|
+
"type"
|
4280
|
+
],
|
4281
|
+
"additionalProperties": false
|
4282
|
+
},
|
4063
4283
|
{
|
4064
4284
|
"type": "object",
|
4065
4285
|
"properties": {
|
@@ -4940,7 +5160,6 @@
|
|
4940
5160
|
"onBoot",
|
4941
5161
|
"onConnect",
|
4942
5162
|
"onDisconnect",
|
4943
|
-
"request",
|
4944
5163
|
"udp",
|
4945
5164
|
"webhook"
|
4946
5165
|
]
|
@@ -4974,7 +5193,6 @@
|
|
4974
5193
|
"onConnect",
|
4975
5194
|
"onDisconnect",
|
4976
5195
|
"particle",
|
4977
|
-
"request",
|
4978
5196
|
"udp",
|
4979
5197
|
"webhook"
|
4980
5198
|
]
|
@@ -6273,6 +6491,118 @@
|
|
6273
6491
|
],
|
6274
6492
|
"additionalProperties": false
|
6275
6493
|
},
|
6494
|
+
{
|
6495
|
+
"type": "object",
|
6496
|
+
"properties": {
|
6497
|
+
"key": {
|
6498
|
+
"type": "string",
|
6499
|
+
"maxLength": 1024
|
6500
|
+
},
|
6501
|
+
"type": {
|
6502
|
+
"type": "string",
|
6503
|
+
"enum": [
|
6504
|
+
"request"
|
6505
|
+
]
|
6506
|
+
},
|
6507
|
+
"config": {
|
6508
|
+
"type": "object",
|
6509
|
+
"properties": {
|
6510
|
+
"method": {
|
6511
|
+
"type": "string",
|
6512
|
+
"enum": [
|
6513
|
+
"*",
|
6514
|
+
"delete",
|
6515
|
+
"get",
|
6516
|
+
"options",
|
6517
|
+
"patch",
|
6518
|
+
"post",
|
6519
|
+
"put"
|
6520
|
+
]
|
6521
|
+
},
|
6522
|
+
"route": {
|
6523
|
+
"type": "string",
|
6524
|
+
"maxLength": 1024
|
6525
|
+
}
|
6526
|
+
},
|
6527
|
+
"additionalProperties": false
|
6528
|
+
},
|
6529
|
+
"meta": {
|
6530
|
+
"type": "object",
|
6531
|
+
"properties": {
|
6532
|
+
"category": {
|
6533
|
+
"type": "string",
|
6534
|
+
"enum": [
|
6535
|
+
"trigger"
|
6536
|
+
]
|
6537
|
+
},
|
6538
|
+
"name": {
|
6539
|
+
"type": "string",
|
6540
|
+
"enum": [
|
6541
|
+
"request"
|
6542
|
+
]
|
6543
|
+
},
|
6544
|
+
"label": {
|
6545
|
+
"type": "string",
|
6546
|
+
"minLength": 1,
|
6547
|
+
"maxLength": 255
|
6548
|
+
},
|
6549
|
+
"x": {
|
6550
|
+
"type": "number"
|
6551
|
+
},
|
6552
|
+
"y": {
|
6553
|
+
"type": "number"
|
6554
|
+
},
|
6555
|
+
"uiId": {
|
6556
|
+
"type": "string",
|
6557
|
+
"maxLength": 48
|
6558
|
+
},
|
6559
|
+
"description": {
|
6560
|
+
"type": "string",
|
6561
|
+
"maxLength": 32767
|
6562
|
+
},
|
6563
|
+
"icon": {
|
6564
|
+
"type": "string",
|
6565
|
+
"maxLength": 1024
|
6566
|
+
},
|
6567
|
+
"color": {
|
6568
|
+
"type": "string",
|
6569
|
+
"maxLength": 1024
|
6570
|
+
},
|
6571
|
+
"inputCount": {
|
6572
|
+
"type": "number"
|
6573
|
+
},
|
6574
|
+
"outputCount": {
|
6575
|
+
"type": "number"
|
6576
|
+
},
|
6577
|
+
"triggerId": {
|
6578
|
+
"type": "string",
|
6579
|
+
"maxLength": 48
|
6580
|
+
},
|
6581
|
+
"id": {
|
6582
|
+
"type": "string",
|
6583
|
+
"maxLength": 48
|
6584
|
+
}
|
6585
|
+
},
|
6586
|
+
"additionalProperties": false
|
6587
|
+
},
|
6588
|
+
"outputIds": {
|
6589
|
+
"type": "array",
|
6590
|
+
"items": {
|
6591
|
+
"type": "array",
|
6592
|
+
"items": {
|
6593
|
+
"type": "string",
|
6594
|
+
"maxLength": 255
|
6595
|
+
},
|
6596
|
+
"maxItems": 100
|
6597
|
+
},
|
6598
|
+
"maxItems": 100
|
6599
|
+
}
|
6600
|
+
},
|
6601
|
+
"required": [
|
6602
|
+
"type"
|
6603
|
+
],
|
6604
|
+
"additionalProperties": false
|
6605
|
+
},
|
6276
6606
|
{
|
6277
6607
|
"type": "object",
|
6278
6608
|
"properties": {
|