losant_rest 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/docs/_schemas.md +616 -12
  5. data/docs/applications.md +1 -1
  6. data/docs/auditLog.md +43 -0
  7. data/docs/auditLogs.md +47 -0
  8. data/docs/dashboards.md +1 -1
  9. data/docs/device.md +1 -1
  10. data/docs/devices.md +1 -1
  11. data/docs/org.md +1 -1
  12. data/docs/orgInvites.md +77 -0
  13. data/lib/losant_rest/access_token.rb +22 -0
  14. data/lib/losant_rest/access_tokens.rb +22 -0
  15. data/lib/losant_rest/application.rb +22 -0
  16. data/lib/losant_rest/application_key.rb +22 -0
  17. data/lib/losant_rest/application_keys.rb +22 -0
  18. data/lib/losant_rest/applications.rb +23 -1
  19. data/lib/losant_rest/audit_log.rb +73 -0
  20. data/lib/losant_rest/audit_logs.rb +85 -0
  21. data/lib/losant_rest/auth.rb +22 -0
  22. data/lib/losant_rest/client.rb +36 -2
  23. data/lib/losant_rest/dashboard.rb +22 -0
  24. data/lib/losant_rest/dashboards.rb +23 -1
  25. data/lib/losant_rest/data.rb +22 -0
  26. data/lib/losant_rest/device.rb +23 -1
  27. data/lib/losant_rest/device_recipe.rb +22 -0
  28. data/lib/losant_rest/device_recipes.rb +22 -0
  29. data/lib/losant_rest/devices.rb +23 -1
  30. data/lib/losant_rest/error.rb +22 -0
  31. data/lib/losant_rest/event.rb +22 -0
  32. data/lib/losant_rest/events.rb +22 -0
  33. data/lib/losant_rest/flow.rb +22 -0
  34. data/lib/losant_rest/flows.rb +22 -0
  35. data/lib/losant_rest/me.rb +22 -0
  36. data/lib/losant_rest/org.rb +24 -2
  37. data/lib/losant_rest/org_invites.rb +116 -0
  38. data/lib/losant_rest/orgs.rb +22 -0
  39. data/lib/losant_rest/solution.rb +22 -0
  40. data/lib/losant_rest/solution_user.rb +22 -0
  41. data/lib/losant_rest/solution_users.rb +22 -0
  42. data/lib/losant_rest/solutions.rb +22 -0
  43. data/lib/losant_rest/utils.rb +22 -0
  44. data/lib/losant_rest/version.rb +23 -1
  45. data/lib/losant_rest/webhook.rb +22 -0
  46. data/lib/losant_rest/webhooks.rb +22 -0
  47. data/lib/losant_rest.rb +25 -0
  48. data/schemas/auditLog.json +102 -0
  49. data/schemas/auditLogFilter.json +114 -0
  50. data/schemas/auditLogs.json +138 -0
  51. data/schemas/dashboard.json +2 -2
  52. data/schemas/dashboardPatch.json +2 -2
  53. data/schemas/dashboardPost.json +2 -2
  54. data/schemas/dashboards.json +2 -2
  55. data/schemas/flow.json +0 -1
  56. data/schemas/flowPatch.json +0 -1
  57. data/schemas/flowPost.json +0 -1
  58. data/schemas/flows.json +0 -1
  59. data/schemas/orgInviteAction.json +24 -0
  60. data/schemas/orgInviteInfo.json +31 -0
  61. data/schemas/orgInviteResult.json +13 -0
  62. metadata +14 -2
data/docs/_schemas.md CHANGED
@@ -12,6 +12,9 @@
12
12
  * [Application Patch](#application-patch)
13
13
  * [Application Post](#application-post)
14
14
  * [Applications](#applications)
15
+ * [Audit Log](#audit-log)
16
+ * [Audit Log Filter](#audit-log-filter)
17
+ * [Audit Logs](#audit-logs)
15
18
  * [Authenticated Device](#authenticated-device)
16
19
  * [Authenticated Solution User](#authenticated-solution-user)
17
20
  * [Authenticated User](#authenticated-user)
@@ -58,7 +61,10 @@
58
61
  * [Me Patch](#me-patch)
59
62
  * [Multi Device Command](#multi-device-command)
60
63
  * [Organization](#organization)
64
+ * [Organization Invitation Action](#organization-invitation-action)
65
+ * [Organization Invitation Information](#organization-invitation-information)
61
66
  * [Organization Invitation Post](#organization-invitation-post)
67
+ * [Organization Invitation Result](#organization-invitation-result)
62
68
  * [Organization Invitations](#organization-invitations)
63
69
  * [Organization Member Patch](#organization-member-patch)
64
70
  * [Organization Patch](#organization-patch)
@@ -1014,6 +1020,479 @@ Schema for a collection of Applications
1014
1020
 
1015
1021
  <br/>
1016
1022
 
1023
+ ## Audit Log
1024
+
1025
+ Schema for a single Audit Log entry
1026
+
1027
+ ### <a name="audit-log-schema"></a> Schema
1028
+
1029
+ ```json
1030
+ {
1031
+ "$schema": "http://json-schema.org/draft-04/schema#",
1032
+ "type": "object",
1033
+ "properties": {
1034
+ "id": {
1035
+ "type": "string",
1036
+ "pattern": "^[A-Fa-f\\d]{24}$"
1037
+ },
1038
+ "auditLogId": {
1039
+ "type": "string",
1040
+ "pattern": "^[A-Fa-f\\d]{24}$"
1041
+ },
1042
+ "creationDate": {
1043
+ "type": "string",
1044
+ "format": "date-time"
1045
+ },
1046
+ "orgId": {
1047
+ "type": "string",
1048
+ "pattern": "^[A-Fa-f\\d]{24}$"
1049
+ },
1050
+ "primaryTargetId": {
1051
+ "type": "string",
1052
+ "pattern": "^[A-Fa-f\\d]{24}$"
1053
+ },
1054
+ "primaryTargetType": {
1055
+ "type": "string",
1056
+ "enum": [
1057
+ "Application",
1058
+ "Dashboard",
1059
+ "Solution",
1060
+ "OrgInvite"
1061
+ ]
1062
+ },
1063
+ "primaryTargetName": {
1064
+ "type": "string",
1065
+ "maxLength": 1024
1066
+ },
1067
+ "secondaryTargetId": {
1068
+ "type": "string",
1069
+ "pattern": "^[A-Fa-f\\d]{24}$"
1070
+ },
1071
+ "secondaryTargetType": {
1072
+ "type": "string",
1073
+ "enum": [
1074
+ "ApplicationKey",
1075
+ "Device",
1076
+ "DeviceRecipe",
1077
+ "Event",
1078
+ "Flow",
1079
+ "SolutionUser",
1080
+ "Webhook"
1081
+ ]
1082
+ },
1083
+ "secondaryTargetName": {
1084
+ "type": "string",
1085
+ "maxLength": 1024
1086
+ },
1087
+ "actorId": {
1088
+ "type": "string",
1089
+ "pattern": "^[A-Fa-f\\d]{24}$"
1090
+ },
1091
+ "actorType": {
1092
+ "type": "string",
1093
+ "enum": [
1094
+ "Application",
1095
+ "Device",
1096
+ "Flow",
1097
+ "SolutionUser",
1098
+ "User"
1099
+ ]
1100
+ },
1101
+ "actorName": {
1102
+ "type": "string",
1103
+ "maxLength": 1024
1104
+ },
1105
+ "requestResource": {
1106
+ "type": "string",
1107
+ "maxLength": 1024
1108
+ },
1109
+ "requestAction": {
1110
+ "type": "string",
1111
+ "maxLength": 1024
1112
+ },
1113
+ "requestQueryParams": {
1114
+ "type": "object"
1115
+ },
1116
+ "requestBody": {
1117
+ "type": "object"
1118
+ },
1119
+ "requestPathParams": {
1120
+ "type": "object"
1121
+ },
1122
+ "responseBody": {
1123
+ "type": "object"
1124
+ },
1125
+ "responseStatus": {
1126
+ "type": "integer",
1127
+ "minimum": 100,
1128
+ "maximum": 599
1129
+ }
1130
+ }
1131
+ }
1132
+ ```
1133
+ ### <a name="audit-log-example"></a> Example
1134
+
1135
+ ```json
1136
+ {
1137
+ "id": "586e9d5151265cb9d72f6ec6",
1138
+ "auditLogId": "586e9d5151265cb9d72f6ec6",
1139
+ "creationDate": "2016-06-13T04:00:00.000Z",
1140
+ "orgId": "575ed6e87ae143cd83dc4aa8",
1141
+ "primaryTargetId": "575ec8687ae143cd83dc4a97",
1142
+ "primaryTargetType": "Application",
1143
+ "primaryTargetName": "My Application",
1144
+ "actorId": "575ed70c7ae143cd83dc4aa9",
1145
+ "actorType": "User",
1146
+ "actorName": "example@losant.com",
1147
+ "requestResource": "application",
1148
+ "requestAction": "delete",
1149
+ "requestQueryParams": {},
1150
+ "requestBody": {},
1151
+ "requestPathParams": {
1152
+ "applicationId": "575ec8687ae143cd83dc4a97"
1153
+ },
1154
+ "responseBody": {
1155
+ "success": true
1156
+ },
1157
+ "responseStatus": 200
1158
+ }
1159
+ ```
1160
+
1161
+ <br/>
1162
+
1163
+ ## Audit Log Filter
1164
+
1165
+ Schema for the filter of an audit log query
1166
+
1167
+ ### <a name="audit-log-filter-schema"></a> Schema
1168
+
1169
+ ```json
1170
+ {
1171
+ "$schema": "http://json-schema.org/draft-04/schema#",
1172
+ "type": "object",
1173
+ "properties": {
1174
+ "primaryTarget": {
1175
+ "type": "array",
1176
+ "items": {
1177
+ "type": "object",
1178
+ "properties": {
1179
+ "id": {
1180
+ "type": "string",
1181
+ "pattern": "^[A-Fa-f\\d]{24}$"
1182
+ },
1183
+ "type": {
1184
+ "type": "string",
1185
+ "enum": [
1186
+ "Application",
1187
+ "Dashboard",
1188
+ "Solution",
1189
+ "OrgInvite"
1190
+ ]
1191
+ },
1192
+ "name": {
1193
+ "type": "string",
1194
+ "maxLength": 1024
1195
+ }
1196
+ },
1197
+ "additionalProperties": false
1198
+ }
1199
+ },
1200
+ "secondaryTarget": {
1201
+ "type": "array",
1202
+ "items": {
1203
+ "type": "object",
1204
+ "properties": {
1205
+ "id": {
1206
+ "type": "string",
1207
+ "pattern": "^[A-Fa-f\\d]{24}$"
1208
+ },
1209
+ "type": {
1210
+ "type": "string",
1211
+ "enum": [
1212
+ "ApplicationKey",
1213
+ "Device",
1214
+ "DeviceRecipe",
1215
+ "Event",
1216
+ "Flow",
1217
+ "SolutionUser",
1218
+ "Webhook"
1219
+ ]
1220
+ },
1221
+ "name": {
1222
+ "type": "string",
1223
+ "maxLength": 1024
1224
+ }
1225
+ },
1226
+ "additionalProperties": false
1227
+ }
1228
+ },
1229
+ "actor": {
1230
+ "type": "array",
1231
+ "items": {
1232
+ "type": "object",
1233
+ "properties": {
1234
+ "id": {
1235
+ "type": "string",
1236
+ "pattern": "^[A-Fa-f\\d]{24}$"
1237
+ },
1238
+ "type": {
1239
+ "type": "string",
1240
+ "enum": [
1241
+ "Application",
1242
+ "Device",
1243
+ "Flow",
1244
+ "SolutionUser",
1245
+ "User"
1246
+ ]
1247
+ },
1248
+ "name": {
1249
+ "type": "string",
1250
+ "maxLength": 1024
1251
+ }
1252
+ },
1253
+ "additionalProperties": false
1254
+ }
1255
+ },
1256
+ "request": {
1257
+ "type": "array",
1258
+ "items": {
1259
+ "type": "object",
1260
+ "properties": {
1261
+ "resource": {
1262
+ "type": "string",
1263
+ "maxLength": 1024
1264
+ },
1265
+ "action": {
1266
+ "type": "string",
1267
+ "maxLength": 1024
1268
+ }
1269
+ },
1270
+ "additionalProperties": false
1271
+ }
1272
+ },
1273
+ "responseCode": {
1274
+ "type": "array",
1275
+ "items": {
1276
+ "type": "integer",
1277
+ "minimum": 100,
1278
+ "maximum": 599
1279
+ }
1280
+ }
1281
+ },
1282
+ "additionalProperties": false
1283
+ }
1284
+ ```
1285
+ ### <a name="audit-log-filter-example"></a> Example
1286
+
1287
+ ```json
1288
+ {
1289
+ "primaryTarget": [
1290
+ {
1291
+ "type": "Dashboard"
1292
+ },
1293
+ {
1294
+ "type": "Application",
1295
+ "id": "575ec8687ae143cd83dc4a97"
1296
+ }
1297
+ ],
1298
+ "actor": [
1299
+ {
1300
+ "type": "User",
1301
+ "id": "575ed70c7ae143cd83dc4aa9"
1302
+ }
1303
+ ]
1304
+ }
1305
+ ```
1306
+
1307
+ <br/>
1308
+
1309
+ ## Audit Logs
1310
+
1311
+ Schema for a collection of Audit Logs
1312
+
1313
+ ### <a name="audit-logs-schema"></a> Schema
1314
+
1315
+ ```json
1316
+ {
1317
+ "$schema": "http://json-schema.org/draft-04/schema#",
1318
+ "type": "object",
1319
+ "properties": {
1320
+ "items": {
1321
+ "type": "array",
1322
+ "items": {
1323
+ "title": "Audit Log",
1324
+ "description": "Schema for a single Audit Log entry",
1325
+ "type": "object",
1326
+ "properties": {
1327
+ "id": {
1328
+ "type": "string",
1329
+ "pattern": "^[A-Fa-f\\d]{24}$"
1330
+ },
1331
+ "auditLogId": {
1332
+ "type": "string",
1333
+ "pattern": "^[A-Fa-f\\d]{24}$"
1334
+ },
1335
+ "creationDate": {
1336
+ "type": "string",
1337
+ "format": "date-time"
1338
+ },
1339
+ "orgId": {
1340
+ "type": "string",
1341
+ "pattern": "^[A-Fa-f\\d]{24}$"
1342
+ },
1343
+ "primaryTargetId": {
1344
+ "type": "string",
1345
+ "pattern": "^[A-Fa-f\\d]{24}$"
1346
+ },
1347
+ "primaryTargetType": {
1348
+ "type": "string",
1349
+ "enum": [
1350
+ "Application",
1351
+ "Dashboard",
1352
+ "Solution",
1353
+ "OrgInvite"
1354
+ ]
1355
+ },
1356
+ "primaryTargetName": {
1357
+ "type": "string",
1358
+ "maxLength": 1024
1359
+ },
1360
+ "secondaryTargetId": {
1361
+ "type": "string",
1362
+ "pattern": "^[A-Fa-f\\d]{24}$"
1363
+ },
1364
+ "secondaryTargetType": {
1365
+ "type": "string",
1366
+ "enum": [
1367
+ "ApplicationKey",
1368
+ "Device",
1369
+ "DeviceRecipe",
1370
+ "Event",
1371
+ "Flow",
1372
+ "SolutionUser",
1373
+ "Webhook"
1374
+ ]
1375
+ },
1376
+ "secondaryTargetName": {
1377
+ "type": "string",
1378
+ "maxLength": 1024
1379
+ },
1380
+ "actorId": {
1381
+ "type": "string",
1382
+ "pattern": "^[A-Fa-f\\d]{24}$"
1383
+ },
1384
+ "actorType": {
1385
+ "type": "string",
1386
+ "enum": [
1387
+ "Application",
1388
+ "Device",
1389
+ "Flow",
1390
+ "SolutionUser",
1391
+ "User"
1392
+ ]
1393
+ },
1394
+ "actorName": {
1395
+ "type": "string",
1396
+ "maxLength": 1024
1397
+ },
1398
+ "requestResource": {
1399
+ "type": "string",
1400
+ "maxLength": 1024
1401
+ },
1402
+ "requestAction": {
1403
+ "type": "string",
1404
+ "maxLength": 1024
1405
+ },
1406
+ "requestQueryParams": {
1407
+ "type": "object"
1408
+ },
1409
+ "requestBody": {
1410
+ "type": "object"
1411
+ },
1412
+ "requestPathParams": {
1413
+ "type": "object"
1414
+ },
1415
+ "responseBody": {
1416
+ "type": "object"
1417
+ },
1418
+ "responseStatus": {
1419
+ "type": "integer",
1420
+ "minimum": 100,
1421
+ "maximum": 599
1422
+ }
1423
+ }
1424
+ }
1425
+ },
1426
+ "count": {
1427
+ "type": "integer"
1428
+ },
1429
+ "totalCount": {
1430
+ "type": "integer"
1431
+ },
1432
+ "perPage": {
1433
+ "type": "integer"
1434
+ },
1435
+ "page": {
1436
+ "type": "integer"
1437
+ },
1438
+ "sortField": {
1439
+ "type": "string"
1440
+ },
1441
+ "sortDirection": {
1442
+ "type": "string",
1443
+ "enum": [
1444
+ "asc",
1445
+ "desc"
1446
+ ]
1447
+ },
1448
+ "orgId": {
1449
+ "type": "string",
1450
+ "pattern": "^[A-Fa-f\\d]{24}$"
1451
+ }
1452
+ }
1453
+ }
1454
+ ```
1455
+ ### <a name="audit-logs-example"></a> Example
1456
+
1457
+ ```json
1458
+ {
1459
+ "items": [
1460
+ {
1461
+ "id": "586e9d5151265cb9d72f6ec6",
1462
+ "auditLogId": "586e9d5151265cb9d72f6ec6",
1463
+ "creationDate": "2016-06-13T04:00:00.000Z",
1464
+ "orgId": "575ed6e87ae143cd83dc4aa8",
1465
+ "primaryTargetId": "575ec8687ae143cd83dc4a97",
1466
+ "primaryTargetType": "Application",
1467
+ "primaryTargetName": "My Application",
1468
+ "actorId": "575ed70c7ae143cd83dc4aa9",
1469
+ "actorType": "User",
1470
+ "actorName": "example@losant.com",
1471
+ "requestResource": "application",
1472
+ "requestAction": "delete",
1473
+ "requestQueryParams": {},
1474
+ "requestBody": {},
1475
+ "requestPathParams": {
1476
+ "applicationId": "575ec8687ae143cd83dc4a97"
1477
+ },
1478
+ "responseBody": {
1479
+ "success": true
1480
+ },
1481
+ "responseStatus": 200
1482
+ }
1483
+ ],
1484
+ "count": 1,
1485
+ "totalCount": 4,
1486
+ "perPage": 1,
1487
+ "page": 0,
1488
+ "sortField": "creationDate",
1489
+ "sortDirection": "desc",
1490
+ "orgId": "575ed6e87ae143cd83dc4aa8"
1491
+ }
1492
+ ```
1493
+
1494
+ <br/>
1495
+
1017
1496
  ## Authenticated Device
1018
1497
 
1019
1498
  Schema for the successful response when authenticating a Device
@@ -1306,13 +1785,13 @@ Schema for a single Dashboard
1306
1785
  }
1307
1786
  },
1308
1787
  "required": [
1309
- "id",
1310
1788
  "blockType",
1311
1789
  "startX",
1312
1790
  "startY",
1313
1791
  "width",
1314
1792
  "height"
1315
- ]
1793
+ ],
1794
+ "additionalProperties": false
1316
1795
  }
1317
1796
  }
1318
1797
  }
@@ -1390,13 +1869,13 @@ Schema for the body of a Dashboard modification request
1390
1869
  }
1391
1870
  },
1392
1871
  "required": [
1393
- "id",
1394
1872
  "blockType",
1395
1873
  "startX",
1396
1874
  "startY",
1397
1875
  "width",
1398
1876
  "height"
1399
- ]
1877
+ ],
1878
+ "additionalProperties": false
1400
1879
  }
1401
1880
  },
1402
1881
  "description": {
@@ -1490,13 +1969,13 @@ Schema for the body of a Dashboard creation request
1490
1969
  }
1491
1970
  },
1492
1971
  "required": [
1493
- "id",
1494
1972
  "blockType",
1495
1973
  "startX",
1496
1974
  "startY",
1497
1975
  "width",
1498
1976
  "height"
1499
- ]
1977
+ ],
1978
+ "additionalProperties": false
1500
1979
  }
1501
1980
  },
1502
1981
  "description": {
@@ -1636,13 +2115,13 @@ Schema for a collection of Dashboards
1636
2115
  }
1637
2116
  },
1638
2117
  "required": [
1639
- "id",
1640
2118
  "blockType",
1641
2119
  "startX",
1642
2120
  "startY",
1643
2121
  "width",
1644
2122
  "height"
1645
- ]
2123
+ ],
2124
+ "additionalProperties": false
1646
2125
  }
1647
2126
  }
1648
2127
  }
@@ -4143,7 +4622,6 @@ Schema for a single Workflow
4143
4622
  },
4144
4623
  "additionalProperties": false,
4145
4624
  "required": [
4146
- "id",
4147
4625
  "type"
4148
4626
  ]
4149
4627
  }
@@ -4385,7 +4863,6 @@ Schema for the body of a Workflow modification request
4385
4863
  },
4386
4864
  "additionalProperties": false,
4387
4865
  "required": [
4388
- "id",
4389
4866
  "type"
4390
4867
  ]
4391
4868
  }
@@ -4512,7 +4989,6 @@ Schema for the body of a Workflow creation request
4512
4989
  },
4513
4990
  "additionalProperties": false,
4514
4991
  "required": [
4515
- "id",
4516
4992
  "type"
4517
4993
  ]
4518
4994
  }
@@ -4733,7 +5209,6 @@ Schema for a collection of Workflows
4733
5209
  },
4734
5210
  "additionalProperties": false,
4735
5211
  "required": [
4736
- "id",
4737
5212
  "type"
4738
5213
  ]
4739
5214
  }
@@ -5852,6 +6327,103 @@ Schema for a single Organization
5852
6327
 
5853
6328
  <br/>
5854
6329
 
6330
+ ## Organization Invitation Action
6331
+
6332
+ Schema for the body of a request to accept or reject an invitation
6333
+
6334
+ ### <a name="organization-invitation-action-schema"></a> Schema
6335
+
6336
+ ```json
6337
+ {
6338
+ "$schema": "http://json-schema.org/draft-04/schema#",
6339
+ "type": "object",
6340
+ "properties": {
6341
+ "email": {
6342
+ "type": "string",
6343
+ "format": "email",
6344
+ "maxLength": 1024
6345
+ },
6346
+ "token": {
6347
+ "type": "string",
6348
+ "minLength": 1
6349
+ },
6350
+ "accept": {
6351
+ "type": "boolean"
6352
+ }
6353
+ },
6354
+ "additionalProperties": false,
6355
+ "required": [
6356
+ "email",
6357
+ "token",
6358
+ "accept"
6359
+ ]
6360
+ }
6361
+ ```
6362
+ ### <a name="organization-invitation-action-example"></a> Example
6363
+
6364
+ ```json
6365
+ {
6366
+ "email": "invitedUser@losant.com",
6367
+ "token": "the_invitation_token",
6368
+ "accept": true
6369
+ }
6370
+ ```
6371
+
6372
+ <br/>
6373
+
6374
+ ## Organization Invitation Information
6375
+
6376
+ Schema for information about an invitation
6377
+
6378
+ ### <a name="organization-invitation-information-schema"></a> Schema
6379
+
6380
+ ```json
6381
+ {
6382
+ "$schema": "http://json-schema.org/draft-04/schema#",
6383
+ "type": "object",
6384
+ "properties": {
6385
+ "orgName": {
6386
+ "type": "string",
6387
+ "minLength": 1,
6388
+ "maxLength": 255
6389
+ },
6390
+ "email": {
6391
+ "type": "string",
6392
+ "format": "email",
6393
+ "maxLength": 1024
6394
+ },
6395
+ "role": {
6396
+ "type": "string",
6397
+ "enum": [
6398
+ "admin",
6399
+ "edit",
6400
+ "view"
6401
+ ]
6402
+ },
6403
+ "inviteDate": {
6404
+ "type": "string",
6405
+ "format": "date-time"
6406
+ },
6407
+ "ttl": {
6408
+ "type": "number"
6409
+ }
6410
+ }
6411
+ }
6412
+ ```
6413
+ ### <a name="organization-invitation-information-example"></a> Example
6414
+
6415
+ ```json
6416
+ {
6417
+ "orgName": "My Organization",
6418
+ "email": "invitedUser@losant.com",
6419
+ "role": "edit",
6420
+ "inviteDate": "2016-05-13T04:00:00.000Z",
6421
+ "ttl": 4233600000
6422
+ }
6423
+ ```
6424
+
6425
+ <br/>
6426
+
5855
6427
  ## Organization Invitation Post
5856
6428
 
5857
6429
  Schema for the body of a request to send an invitation
@@ -5895,6 +6467,38 @@ Schema for the body of a request to send an invitation
5895
6467
 
5896
6468
  <br/>
5897
6469
 
6470
+ ## Organization Invitation Result
6471
+
6472
+ Schema for the result of accepting/rejecting an invitation
6473
+
6474
+ ### <a name="organization-invitation-result-schema"></a> Schema
6475
+
6476
+ ```json
6477
+ {
6478
+ "$schema": "http://json-schema.org/draft-04/schema#",
6479
+ "type": "object",
6480
+ "properties": {
6481
+ "accepted": {
6482
+ "type": "boolean"
6483
+ },
6484
+ "orgId": {
6485
+ "type": "string",
6486
+ "pattern": "^[A-Fa-f\\d]{24}$"
6487
+ }
6488
+ }
6489
+ }
6490
+ ```
6491
+ ### <a name="organization-invitation-result-example"></a> Example
6492
+
6493
+ ```json
6494
+ {
6495
+ "accepted": true,
6496
+ "orgId": "575ed6e87ae143cd83dc4aa8"
6497
+ }
6498
+ ```
6499
+
6500
+ <br/>
6501
+
5898
6502
  ## Organization Invitations
5899
6503
 
5900
6504
  Schema for an array of pending invitations to an Organization