losant_rest 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a8febd9df2e048e29e135b1db4c17e2132a6485
4
- data.tar.gz: 78e7a33f4159244aedd42ea3b6c0defd5d4c078b
3
+ metadata.gz: 5d4984ce6e897781e101ef6a2b3ced5ef16aacbd
4
+ data.tar.gz: 864fe05a7e6190cbc4dd30d20ef780657407ae90
5
5
  SHA512:
6
- metadata.gz: 63b50ed6cd120c8abfa915b45b074574f778d214a7c7461a5e48a14b61a40e0686ad6c0c1b640b7e034f90ec40e33ccc5138a35955aad5ca15273db17a89e2ac
7
- data.tar.gz: 4ddf7b70d5ae181504c00cd5bc0febaa458951d3fb98d2a9a65ab2fd37833c6e50a955f0675ae8fef76ba9aab20c7491c9b08cdf905743d011f1864e02df6fe3
6
+ metadata.gz: 7df3f9e14c6fa970baa3133f9a5c5bdc9918bb7d051da7a0f5ed26b58bd5bd20e1b3c6b199f0364404029e49315f7c979fc825363e1a3ce7fb17838b588dad41
7
+ data.tar.gz: da6d8dbda68b947a5d5e5b706439819ced07073a2a11f556ef87f14348a0ccd480244c967e3477d3552e2476049b1ebe9bf69513a6dd8dfd109c3e4b48e9bc76
data/docs/_schemas.md CHANGED
@@ -13,6 +13,7 @@
13
13
  * [Application Post](#application-post)
14
14
  * [Applications](#applications)
15
15
  * [Authenticated Device](#authenticated-device)
16
+ * [Authenticated Solution User](#authenticated-solution-user)
16
17
  * [Authenticated User](#authenticated-user)
17
18
  * [Dashboard](#dashboard)
18
19
  * [Dashboard Patch](#dashboard-patch)
@@ -64,6 +65,15 @@
64
65
  * [Organizations](#organizations)
65
66
  * [Recent Item](#recent-item)
66
67
  * [Recent Item List](#recent-item-list)
68
+ * [Solution](#solution)
69
+ * [Solution Patch](#solution-patch)
70
+ * [Solution Post](#solution-post)
71
+ * [Solution User](#solution-user)
72
+ * [User Credentials](#user-credentials)
73
+ * [Solution User Patch](#solution-user-patch)
74
+ * [Solution User Post](#solution-user-post)
75
+ * [Solution Users](#solution-users)
76
+ * [Solutions](#solutions)
67
77
  * [Success](#success)
68
78
  * [Time Series Data](#time-series-data)
69
79
  * [Time Series Query](#time-series-query)
@@ -1056,6 +1066,43 @@ Schema for the sucessful response when authenticating a Device
1056
1066
 
1057
1067
  <br/>
1058
1068
 
1069
+ ## Authenticated Solution User
1070
+
1071
+ Schema for the sucessful response when authenticating a Solution User
1072
+
1073
+ ### <a name="authenticated-solution-user-schema"></a> Schema
1074
+
1075
+ ```json
1076
+ {
1077
+ "$schema": "http://json-schema.org/draft-04/schema#",
1078
+ "type": "object",
1079
+ "properties": {
1080
+ "solutionUserId": {
1081
+ "type": "string",
1082
+ "pattern": "^[A-Fa-f\\d]{24}$"
1083
+ },
1084
+ "token": {
1085
+ "type": "string",
1086
+ "minLength": 1
1087
+ }
1088
+ },
1089
+ "required": [
1090
+ "solutionUserId",
1091
+ "token"
1092
+ ]
1093
+ }
1094
+ ```
1095
+ ### <a name="authenticated-solution-user-example"></a> Example
1096
+
1097
+ ```json
1098
+ {
1099
+ "solutionUserId": "566116085df4b701000258e3",
1100
+ "token": "token_to_use_for_authenticating_subsequent_requests"
1101
+ }
1102
+ ```
1103
+
1104
+ <br/>
1105
+
1059
1106
  ## Authenticated User
1060
1107
 
1061
1108
  Schema for the sucessful response when authenticating a User
@@ -5125,6 +5172,9 @@ Schema for a single Organization
5125
5172
  "type": "string",
5126
5173
  "maxLength": 32767
5127
5174
  },
5175
+ "solutionsEnabled": {
5176
+ "type": "boolean"
5177
+ },
5128
5178
  "members": {
5129
5179
  "type": "array",
5130
5180
  "items": {
@@ -5475,6 +5525,9 @@ Schema for a collection of Organizations
5475
5525
  "type": "string",
5476
5526
  "maxLength": 32767
5477
5527
  },
5528
+ "solutionsEnabled": {
5529
+ "type": "boolean"
5530
+ },
5478
5531
  "members": {
5479
5532
  "type": "array",
5480
5533
  "items": {
@@ -5715,6 +5768,955 @@ Schema for an array of recent items
5715
5768
 
5716
5769
  <br/>
5717
5770
 
5771
+ ## Solution
5772
+
5773
+ Schema for a single Solution
5774
+
5775
+ ### <a name="solution-schema"></a> Schema
5776
+
5777
+ ```json
5778
+ {
5779
+ "$schema": "http://json-schema.org/draft-04/schema#",
5780
+ "type": "object",
5781
+ "properties": {
5782
+ "id": {
5783
+ "type": "string",
5784
+ "pattern": "^[A-Fa-f\\d]{24}$"
5785
+ },
5786
+ "solutionId": {
5787
+ "type": "string",
5788
+ "pattern": "^[A-Fa-f\\d]{24}$"
5789
+ },
5790
+ "orgId": {
5791
+ "type": "string",
5792
+ "pattern": "^[A-Fa-f\\d]{24}$"
5793
+ },
5794
+ "creationDate": {
5795
+ "type": "string",
5796
+ "format": "date-time"
5797
+ },
5798
+ "lastUpdated": {
5799
+ "type": "string",
5800
+ "format": "date-time"
5801
+ },
5802
+ "name": {
5803
+ "type": "string",
5804
+ "minLength": 1,
5805
+ "maxLength": 255
5806
+ },
5807
+ "description": {
5808
+ "type": "string",
5809
+ "maxLength": 32767
5810
+ },
5811
+ "slug": {
5812
+ "type": "string",
5813
+ "pattern": "^[0-9a-z_-]{1,255}$"
5814
+ },
5815
+ "allowSelfDeletion": {
5816
+ "type": "boolean"
5817
+ },
5818
+ "allowSelfEmailChange": {
5819
+ "type": "boolean"
5820
+ },
5821
+ "passwordReset": {
5822
+ "type": "object",
5823
+ "properties": {
5824
+ "allowPasswordReset": {
5825
+ "type": "boolean"
5826
+ },
5827
+ "emailSubject": {
5828
+ "type": "string",
5829
+ "maxLength": 255
5830
+ },
5831
+ "emailBody": {
5832
+ "type": "string",
5833
+ "maxLength": 32767
5834
+ },
5835
+ "emailFrom": {
5836
+ "type": "string",
5837
+ "format": "email",
5838
+ "maxLength": 1024
5839
+ }
5840
+ }
5841
+ },
5842
+ "summary": {
5843
+ "type": "object",
5844
+ "properties": {
5845
+ "solutionUserCount": {
5846
+ "type": "number"
5847
+ }
5848
+ }
5849
+ }
5850
+ }
5851
+ }
5852
+ ```
5853
+ ### <a name="solution-example"></a> Example
5854
+
5855
+ ```json
5856
+ {
5857
+ "id": "57955788124b37010084c053",
5858
+ "solutionId": "57955788124b37010084c053",
5859
+ "orgId": "575ed6e87ae143cd83dc4aa8",
5860
+ "creationDate": "2016-06-13T04:00:00.000Z",
5861
+ "lastUpdated": "2016-06-13T04:00:00.000Z",
5862
+ "name": "My Solution",
5863
+ "slug": "my_solution",
5864
+ "allowSelfDeletion": false,
5865
+ "allowSelfEmailChange": false,
5866
+ "summary": {
5867
+ "solutionUserCount": 0
5868
+ }
5869
+ }
5870
+ ```
5871
+
5872
+ <br/>
5873
+
5874
+ ## Solution Patch
5875
+
5876
+ Schema for the body of a Solution modification request
5877
+
5878
+ ### <a name="solution-patch-schema"></a> Schema
5879
+
5880
+ ```json
5881
+ {
5882
+ "$schema": "http://json-schema.org/draft-04/schema#",
5883
+ "type": "object",
5884
+ "properties": {
5885
+ "name": {
5886
+ "type": "string",
5887
+ "minLength": 1,
5888
+ "maxLength": 255
5889
+ },
5890
+ "description": {
5891
+ "type": "string",
5892
+ "maxLength": 32767
5893
+ },
5894
+ "slug": {
5895
+ "type": "string",
5896
+ "pattern": "^[0-9a-z_-]{1,255}$"
5897
+ },
5898
+ "allowSelfDeletion": {
5899
+ "type": "boolean"
5900
+ },
5901
+ "allowSelfEmailChange": {
5902
+ "type": "boolean"
5903
+ },
5904
+ "passwordReset": {
5905
+ "type": "object",
5906
+ "properties": {
5907
+ "allowPasswordReset": {
5908
+ "type": "boolean"
5909
+ },
5910
+ "emailSubject": {
5911
+ "type": "string",
5912
+ "maxLength": 255
5913
+ },
5914
+ "emailBody": {
5915
+ "type": "string",
5916
+ "maxLength": 32767
5917
+ },
5918
+ "emailFrom": {
5919
+ "type": "string",
5920
+ "format": "email",
5921
+ "maxLength": 1024
5922
+ }
5923
+ },
5924
+ "additionalProperties": false
5925
+ },
5926
+ "additionalProperties": false
5927
+ }
5928
+ }
5929
+ ```
5930
+ ### <a name="solution-patch-example"></a> Example
5931
+
5932
+ ```json
5933
+ {
5934
+ "name": "My Updated Solution",
5935
+ "allowSelfDeletion": true
5936
+ }
5937
+ ```
5938
+
5939
+ <br/>
5940
+
5941
+ ## Solution Post
5942
+
5943
+ Schema for the body of a Solution creation request
5944
+
5945
+ ### <a name="solution-post-schema"></a> Schema
5946
+
5947
+ ```json
5948
+ {
5949
+ "$schema": "http://json-schema.org/draft-04/schema#",
5950
+ "type": "object",
5951
+ "properties": {
5952
+ "name": {
5953
+ "type": "string",
5954
+ "minLength": 1,
5955
+ "maxLength": 255
5956
+ },
5957
+ "description": {
5958
+ "type": "string",
5959
+ "maxLength": 32767
5960
+ },
5961
+ "slug": {
5962
+ "type": "string",
5963
+ "pattern": "^[0-9a-z_-]{1,255}$"
5964
+ },
5965
+ "allowSelfDeletion": {
5966
+ "type": "boolean"
5967
+ },
5968
+ "allowSelfEmailChange": {
5969
+ "type": "boolean"
5970
+ },
5971
+ "passwordReset": {
5972
+ "type": "object",
5973
+ "properties": {
5974
+ "allowPasswordReset": {
5975
+ "type": "boolean"
5976
+ },
5977
+ "emailSubject": {
5978
+ "type": "string",
5979
+ "maxLength": 255
5980
+ },
5981
+ "emailBody": {
5982
+ "type": "string",
5983
+ "maxLength": 32767
5984
+ },
5985
+ "emailFrom": {
5986
+ "type": "string",
5987
+ "format": "email",
5988
+ "maxLength": 1024
5989
+ }
5990
+ },
5991
+ "additionalProperties": false
5992
+ },
5993
+ "required": [
5994
+ "name",
5995
+ "slug"
5996
+ ],
5997
+ "additionalProperties": false
5998
+ }
5999
+ }
6000
+ ```
6001
+ ### <a name="solution-post-example"></a> Example
6002
+
6003
+ ```json
6004
+ {
6005
+ "name": "My New Solution",
6006
+ "slug": "my_new_solution"
6007
+ }
6008
+ ```
6009
+
6010
+ <br/>
6011
+
6012
+ ## Solution User
6013
+
6014
+ Schema for a single Solution User
6015
+
6016
+ ### <a name="solution-user-schema"></a> Schema
6017
+
6018
+ ```json
6019
+ {
6020
+ "$schema": "http://json-schema.org/draft-04/schema#",
6021
+ "type": "object",
6022
+ "properties": {
6023
+ "id": {
6024
+ "type": "string",
6025
+ "pattern": "^[A-Fa-f\\d]{24}$"
6026
+ },
6027
+ "solutionUserId": {
6028
+ "type": "string",
6029
+ "pattern": "^[A-Fa-f\\d]{24}$"
6030
+ },
6031
+ "solutionId": {
6032
+ "type": "string",
6033
+ "pattern": "^[A-Fa-f\\d]{24}$"
6034
+ },
6035
+ "orgId": {
6036
+ "type": "string",
6037
+ "pattern": "^[A-Fa-f\\d]{24}$"
6038
+ },
6039
+ "creationDate": {
6040
+ "type": "string",
6041
+ "format": "date-time"
6042
+ },
6043
+ "lastUpdated": {
6044
+ "type": "string",
6045
+ "format": "date-time"
6046
+ },
6047
+ "passwordLastUpdated": {
6048
+ "type": "string",
6049
+ "format": "date-time"
6050
+ },
6051
+ "lastLogin": {
6052
+ "type": "string",
6053
+ "format": "date-time"
6054
+ },
6055
+ "email": {
6056
+ "type": "string",
6057
+ "format": "email",
6058
+ "maxLength": 1024
6059
+ },
6060
+ "firstName": {
6061
+ "type": "string",
6062
+ "minLength": 1,
6063
+ "maxLength": 1024
6064
+ },
6065
+ "lastName": {
6066
+ "type": "string",
6067
+ "minLength": 1,
6068
+ "maxLength": 1024
6069
+ },
6070
+ "companyName": {
6071
+ "type": "string",
6072
+ "maxLength": 1024
6073
+ },
6074
+ "phoneNumber": {
6075
+ "type": "string",
6076
+ "maxLength": 1024
6077
+ },
6078
+ "location": {
6079
+ "type": "string",
6080
+ "maxLength": 1024
6081
+ },
6082
+ "url": {
6083
+ "type": "string",
6084
+ "maxLength": 1024
6085
+ },
6086
+ "forcePasswordResetOnNextLogin": {
6087
+ "type": "boolean"
6088
+ },
6089
+ "fullName": {
6090
+ "type": "string"
6091
+ },
6092
+ "twoFactorAuthEnabled": {
6093
+ "type": "boolean"
6094
+ },
6095
+ "avatarUrl": {
6096
+ "type": "string",
6097
+ "format": "url"
6098
+ },
6099
+ "accessRestrictions": {
6100
+ "type": "object",
6101
+ "properties": {
6102
+ "dashboardIds": {
6103
+ "type": "array",
6104
+ "items": {
6105
+ "type": "string",
6106
+ "pattern": "^[A-Fa-f\\d]{24}$"
6107
+ }
6108
+ }
6109
+ }
6110
+ }
6111
+ }
6112
+ }
6113
+ ```
6114
+ ### <a name="solution-user-example"></a> Example
6115
+
6116
+ ```json
6117
+ {
6118
+ "id": "566116085df4b701000258e3",
6119
+ "solutionUserId": "566116085df4b701000258e3",
6120
+ "solutionId": "57955788124b37010084c053",
6121
+ "orgId": "575ed6e87ae143cd83dc4aa8",
6122
+ "creationDate": "2016-06-13T04:00:00.000Z",
6123
+ "lastUpdated": "2016-06-13T04:00:00.000Z",
6124
+ "passwordLastUpdated": "2016-06-13T04:00:00.000Z",
6125
+ "lastLogin": "2016-06-13T04:00:00.000Z",
6126
+ "email": "example@solutionuser.com",
6127
+ "firstName": "Example",
6128
+ "lastName": "Name",
6129
+ "forcePasswordResetOnNextLogin": false,
6130
+ "fullName": "Example Name",
6131
+ "twoFactorAuthEnabled": false,
6132
+ "avatarUrl": "https://example.avatar.url/is_here.png",
6133
+ "accessRestrictions": {
6134
+ "dashboardIds": [
6135
+ "575ece2b7ae143cd83dc4a9b",
6136
+ "575ece2b7ae143cd83dc4a9c"
6137
+ ]
6138
+ }
6139
+ }
6140
+ ```
6141
+
6142
+ <br/>
6143
+
6144
+ ## User Credentials
6145
+
6146
+ Schema for the body of a Solution User authentication request
6147
+
6148
+ ### <a name="user-credentials-schema"></a> Schema
6149
+
6150
+ ```json
6151
+ {
6152
+ "$schema": "http://json-schema.org/draft-04/schema#",
6153
+ "type": "object",
6154
+ "properties": {
6155
+ "solutionId": {
6156
+ "type": "string",
6157
+ "pattern": "^[A-Fa-f\\d]{24}$"
6158
+ },
6159
+ "email": {
6160
+ "type": "string",
6161
+ "format": "email",
6162
+ "maxLength": 1024
6163
+ },
6164
+ "password": {
6165
+ "type": "string",
6166
+ "minLength": 8,
6167
+ "maxLength": 2048
6168
+ },
6169
+ "twoFactorCode": {
6170
+ "type": "string",
6171
+ "maxLength": 2048
6172
+ }
6173
+ },
6174
+ "required": [
6175
+ "solutionId",
6176
+ "email",
6177
+ "password"
6178
+ ],
6179
+ "additionalProperties": false
6180
+ }
6181
+ ```
6182
+ ### <a name="user-credentials-example"></a> Example
6183
+
6184
+ ```json
6185
+ {
6186
+ "solutionId": "57955788124b37010084c053",
6187
+ "email": "example@solutionuser.com",
6188
+ "password": "this is the password"
6189
+ }
6190
+ ```
6191
+
6192
+ <br/>
6193
+
6194
+ ## Solution User Patch
6195
+
6196
+ Schema for the body of a Solution User modification request
6197
+
6198
+ ### <a name="solution-user-patch-schema"></a> Schema
6199
+
6200
+ ```json
6201
+ {
6202
+ "$schema": "http://json-schema.org/draft-04/schema#",
6203
+ "type": "object",
6204
+ "properties": {
6205
+ "email": {
6206
+ "type": "string",
6207
+ "format": "email",
6208
+ "maxLength": 1024
6209
+ },
6210
+ "firstName": {
6211
+ "type": "string",
6212
+ "minLength": 1,
6213
+ "maxLength": 1024
6214
+ },
6215
+ "lastName": {
6216
+ "type": "string",
6217
+ "minLength": 1,
6218
+ "maxLength": 1024
6219
+ },
6220
+ "companyName": {
6221
+ "type": "string",
6222
+ "maxLength": 1024
6223
+ },
6224
+ "phoneNumber": {
6225
+ "type": "string",
6226
+ "maxLength": 1024
6227
+ },
6228
+ "location": {
6229
+ "type": "string",
6230
+ "maxLength": 1024
6231
+ },
6232
+ "url": {
6233
+ "type": "string",
6234
+ "maxLength": 1024
6235
+ },
6236
+ "forcePasswordResetOnNextLogin": {
6237
+ "type": "boolean"
6238
+ },
6239
+ "password": {
6240
+ "type": "string",
6241
+ "minLength": 8,
6242
+ "maxLength": 2048
6243
+ },
6244
+ "twoFactorAuthKey": {
6245
+ "type": "string",
6246
+ "minLength": 52,
6247
+ "maxLength": 52
6248
+ },
6249
+ "accessRestrictions": {
6250
+ "type": "object",
6251
+ "properties": {
6252
+ "dashboardIds": {
6253
+ "type": "array",
6254
+ "items": {
6255
+ "type": "string",
6256
+ "pattern": "^[A-Fa-f\\d]{24}$"
6257
+ }
6258
+ },
6259
+ "additionalProperties": false
6260
+ }
6261
+ }
6262
+ },
6263
+ "additionalProperties": false
6264
+ }
6265
+ ```
6266
+ ### <a name="solution-user-patch-example"></a> Example
6267
+
6268
+ ```json
6269
+ {
6270
+ "password": "aNewUserPassword",
6271
+ "forcePasswordResetOnNextLogin": true
6272
+ }
6273
+ ```
6274
+
6275
+ <br/>
6276
+
6277
+ ## Solution User Post
6278
+
6279
+ Schema for the body of a Solution User creation request
6280
+
6281
+ ### <a name="solution-user-post-schema"></a> Schema
6282
+
6283
+ ```json
6284
+ {
6285
+ "$schema": "http://json-schema.org/draft-04/schema#",
6286
+ "type": "object",
6287
+ "properties": {
6288
+ "email": {
6289
+ "type": "string",
6290
+ "format": "email",
6291
+ "maxLength": 1024
6292
+ },
6293
+ "firstName": {
6294
+ "type": "string",
6295
+ "minLength": 1,
6296
+ "maxLength": 1024
6297
+ },
6298
+ "lastName": {
6299
+ "type": "string",
6300
+ "minLength": 1,
6301
+ "maxLength": 1024
6302
+ },
6303
+ "companyName": {
6304
+ "type": "string",
6305
+ "maxLength": 1024
6306
+ },
6307
+ "phoneNumber": {
6308
+ "type": "string",
6309
+ "maxLength": 1024
6310
+ },
6311
+ "location": {
6312
+ "type": "string",
6313
+ "maxLength": 1024
6314
+ },
6315
+ "url": {
6316
+ "type": "string",
6317
+ "maxLength": 1024
6318
+ },
6319
+ "forcePasswordResetOnNextLogin": {
6320
+ "type": "boolean"
6321
+ },
6322
+ "password": {
6323
+ "type": "string",
6324
+ "minLength": 8,
6325
+ "maxLength": 2048
6326
+ },
6327
+ "twoFactorAuthKey": {
6328
+ "type": "string",
6329
+ "minLength": 52,
6330
+ "maxLength": 52
6331
+ },
6332
+ "accessRestrictions": {
6333
+ "type": "object",
6334
+ "properties": {
6335
+ "dashboardIds": {
6336
+ "type": "array",
6337
+ "items": {
6338
+ "type": "string",
6339
+ "pattern": "^[A-Fa-f\\d]{24}$"
6340
+ }
6341
+ },
6342
+ "additionalProperties": false
6343
+ }
6344
+ }
6345
+ },
6346
+ "required": [
6347
+ "email",
6348
+ "firstName",
6349
+ "lastName",
6350
+ "password"
6351
+ ],
6352
+ "additionalProperties": false
6353
+ }
6354
+ ```
6355
+ ### <a name="solution-user-post-example"></a> Example
6356
+
6357
+ ```json
6358
+ {
6359
+ "email": "example@solutionuser.com",
6360
+ "firstName": "Example",
6361
+ "lastName": "Name",
6362
+ "password": "aUserPassword",
6363
+ "accessRestrictions": {
6364
+ "dashboardIds": [
6365
+ "575ece2b7ae143cd83dc4a9b",
6366
+ "575ece2b7ae143cd83dc4a9c"
6367
+ ]
6368
+ }
6369
+ }
6370
+ ```
6371
+
6372
+ <br/>
6373
+
6374
+ ## Solution Users
6375
+
6376
+ Schema for a collection of Solution Users
6377
+
6378
+ ### <a name="solution-users-schema"></a> Schema
6379
+
6380
+ ```json
6381
+ {
6382
+ "$schema": "http://json-schema.org/draft-04/schema#",
6383
+ "type": "object",
6384
+ "properties": {
6385
+ "items": {
6386
+ "type": "array",
6387
+ "items": {
6388
+ "title": "Solution User",
6389
+ "description": "Schema for a single Solution User",
6390
+ "type": "object",
6391
+ "properties": {
6392
+ "id": {
6393
+ "type": "string",
6394
+ "pattern": "^[A-Fa-f\\d]{24}$"
6395
+ },
6396
+ "solutionUserId": {
6397
+ "type": "string",
6398
+ "pattern": "^[A-Fa-f\\d]{24}$"
6399
+ },
6400
+ "solutionId": {
6401
+ "type": "string",
6402
+ "pattern": "^[A-Fa-f\\d]{24}$"
6403
+ },
6404
+ "orgId": {
6405
+ "type": "string",
6406
+ "pattern": "^[A-Fa-f\\d]{24}$"
6407
+ },
6408
+ "creationDate": {
6409
+ "type": "string",
6410
+ "format": "date-time"
6411
+ },
6412
+ "lastUpdated": {
6413
+ "type": "string",
6414
+ "format": "date-time"
6415
+ },
6416
+ "passwordLastUpdated": {
6417
+ "type": "string",
6418
+ "format": "date-time"
6419
+ },
6420
+ "lastLogin": {
6421
+ "type": "string",
6422
+ "format": "date-time"
6423
+ },
6424
+ "email": {
6425
+ "type": "string",
6426
+ "format": "email",
6427
+ "maxLength": 1024
6428
+ },
6429
+ "firstName": {
6430
+ "type": "string",
6431
+ "minLength": 1,
6432
+ "maxLength": 1024
6433
+ },
6434
+ "lastName": {
6435
+ "type": "string",
6436
+ "minLength": 1,
6437
+ "maxLength": 1024
6438
+ },
6439
+ "companyName": {
6440
+ "type": "string",
6441
+ "maxLength": 1024
6442
+ },
6443
+ "phoneNumber": {
6444
+ "type": "string",
6445
+ "maxLength": 1024
6446
+ },
6447
+ "location": {
6448
+ "type": "string",
6449
+ "maxLength": 1024
6450
+ },
6451
+ "url": {
6452
+ "type": "string",
6453
+ "maxLength": 1024
6454
+ },
6455
+ "forcePasswordResetOnNextLogin": {
6456
+ "type": "boolean"
6457
+ },
6458
+ "fullName": {
6459
+ "type": "string"
6460
+ },
6461
+ "twoFactorAuthEnabled": {
6462
+ "type": "boolean"
6463
+ },
6464
+ "avatarUrl": {
6465
+ "type": "string",
6466
+ "format": "url"
6467
+ },
6468
+ "accessRestrictions": {
6469
+ "type": "object",
6470
+ "properties": {
6471
+ "dashboardIds": {
6472
+ "type": "array",
6473
+ "items": {
6474
+ "type": "string",
6475
+ "pattern": "^[A-Fa-f\\d]{24}$"
6476
+ }
6477
+ }
6478
+ }
6479
+ }
6480
+ }
6481
+ }
6482
+ },
6483
+ "count": {
6484
+ "type": "integer"
6485
+ },
6486
+ "totalCount": {
6487
+ "type": "integer"
6488
+ },
6489
+ "perPage": {
6490
+ "type": "integer"
6491
+ },
6492
+ "page": {
6493
+ "type": "integer"
6494
+ },
6495
+ "filter": {
6496
+ "type": "string"
6497
+ },
6498
+ "filterField": {
6499
+ "type": "string"
6500
+ },
6501
+ "sortField": {
6502
+ "type": "string"
6503
+ },
6504
+ "sortDirection": {
6505
+ "type": "string",
6506
+ "enum": [
6507
+ "asc",
6508
+ "desc"
6509
+ ]
6510
+ },
6511
+ "orgId": {
6512
+ "type": "string",
6513
+ "pattern": "^[A-Fa-f\\d]{24}$"
6514
+ },
6515
+ "solutionId": {
6516
+ "type": "string",
6517
+ "pattern": "^[A-Fa-f\\d]{24}$"
6518
+ }
6519
+ }
6520
+ }
6521
+ ```
6522
+ ### <a name="solution-users-example"></a> Example
6523
+
6524
+ ```json
6525
+ {
6526
+ "items": [
6527
+ {
6528
+ "id": "566116085df4b701000258e3",
6529
+ "solutionUserId": "566116085df4b701000258e3",
6530
+ "solutionId": "57955788124b37010084c053",
6531
+ "orgId": "575ed6e87ae143cd83dc4aa8",
6532
+ "creationDate": "2016-06-13T04:00:00.000Z",
6533
+ "lastUpdated": "2016-06-13T04:00:00.000Z",
6534
+ "passwordLastUpdated": "2016-06-13T04:00:00.000Z",
6535
+ "lastLogin": "2016-06-13T04:00:00.000Z",
6536
+ "email": "example@solutionuser.com",
6537
+ "firstName": "Example",
6538
+ "lastName": "Name",
6539
+ "forcePasswordResetOnNextLogin": false,
6540
+ "fullName": "Example Name",
6541
+ "twoFactorAuthEnabled": false,
6542
+ "avatarUrl": "https://example.avatar.url/is_here.png",
6543
+ "accessRestrictions": {
6544
+ "dashboardIds": [
6545
+ "575ece2b7ae143cd83dc4a9b",
6546
+ "575ece2b7ae143cd83dc4a9c"
6547
+ ]
6548
+ }
6549
+ }
6550
+ ],
6551
+ "count": 1,
6552
+ "totalCount": 4,
6553
+ "perPage": 1,
6554
+ "page": 0,
6555
+ "sortField": "name",
6556
+ "sortDirection": "asc",
6557
+ "solutionId": "57955788124b37010084c053",
6558
+ "orgId": "575ed6e87ae143cd83dc4aa8"
6559
+ }
6560
+ ```
6561
+
6562
+ <br/>
6563
+
6564
+ ## Solutions
6565
+
6566
+ Schema for a collection of Solutions
6567
+
6568
+ ### <a name="solutions-schema"></a> Schema
6569
+
6570
+ ```json
6571
+ {
6572
+ "$schema": "http://json-schema.org/draft-04/schema#",
6573
+ "type": "object",
6574
+ "properties": {
6575
+ "items": {
6576
+ "type": "array",
6577
+ "items": {
6578
+ "title": "Solution",
6579
+ "description": "Schema for a single Solution",
6580
+ "type": "object",
6581
+ "properties": {
6582
+ "id": {
6583
+ "type": "string",
6584
+ "pattern": "^[A-Fa-f\\d]{24}$"
6585
+ },
6586
+ "solutionId": {
6587
+ "type": "string",
6588
+ "pattern": "^[A-Fa-f\\d]{24}$"
6589
+ },
6590
+ "orgId": {
6591
+ "type": "string",
6592
+ "pattern": "^[A-Fa-f\\d]{24}$"
6593
+ },
6594
+ "creationDate": {
6595
+ "type": "string",
6596
+ "format": "date-time"
6597
+ },
6598
+ "lastUpdated": {
6599
+ "type": "string",
6600
+ "format": "date-time"
6601
+ },
6602
+ "name": {
6603
+ "type": "string",
6604
+ "minLength": 1,
6605
+ "maxLength": 255
6606
+ },
6607
+ "description": {
6608
+ "type": "string",
6609
+ "maxLength": 32767
6610
+ },
6611
+ "slug": {
6612
+ "type": "string",
6613
+ "pattern": "^[0-9a-z_-]{1,255}$"
6614
+ },
6615
+ "allowSelfDeletion": {
6616
+ "type": "boolean"
6617
+ },
6618
+ "allowSelfEmailChange": {
6619
+ "type": "boolean"
6620
+ },
6621
+ "passwordReset": {
6622
+ "type": "object",
6623
+ "properties": {
6624
+ "allowPasswordReset": {
6625
+ "type": "boolean"
6626
+ },
6627
+ "emailSubject": {
6628
+ "type": "string",
6629
+ "maxLength": 255
6630
+ },
6631
+ "emailBody": {
6632
+ "type": "string",
6633
+ "maxLength": 32767
6634
+ },
6635
+ "emailFrom": {
6636
+ "type": "string",
6637
+ "format": "email",
6638
+ "maxLength": 1024
6639
+ }
6640
+ }
6641
+ },
6642
+ "summary": {
6643
+ "type": "object",
6644
+ "properties": {
6645
+ "solutionUserCount": {
6646
+ "type": "number"
6647
+ }
6648
+ }
6649
+ }
6650
+ }
6651
+ }
6652
+ },
6653
+ "count": {
6654
+ "type": "integer"
6655
+ },
6656
+ "totalCount": {
6657
+ "type": "integer"
6658
+ },
6659
+ "perPage": {
6660
+ "type": "integer"
6661
+ },
6662
+ "page": {
6663
+ "type": "integer"
6664
+ },
6665
+ "filter": {
6666
+ "type": "string"
6667
+ },
6668
+ "filterField": {
6669
+ "type": "string"
6670
+ },
6671
+ "sortField": {
6672
+ "type": "string"
6673
+ },
6674
+ "sortDirection": {
6675
+ "type": "string",
6676
+ "enum": [
6677
+ "asc",
6678
+ "desc"
6679
+ ]
6680
+ },
6681
+ "orgId": {
6682
+ "type": "string",
6683
+ "pattern": "^[A-Fa-f\\d]{24}$"
6684
+ }
6685
+ }
6686
+ }
6687
+ ```
6688
+ ### <a name="solutions-example"></a> Example
6689
+
6690
+ ```json
6691
+ {
6692
+ "items": [
6693
+ {
6694
+ "id": "57955788124b37010084c053",
6695
+ "solutionId": "57955788124b37010084c053",
6696
+ "orgId": "575ed6e87ae143cd83dc4aa8",
6697
+ "creationDate": "2016-06-13T04:00:00.000Z",
6698
+ "lastUpdated": "2016-06-13T04:00:00.000Z",
6699
+ "name": "My Solution",
6700
+ "slug": "my_solution",
6701
+ "allowSelfDeletion": false,
6702
+ "allowSelfEmailChange": false,
6703
+ "summary": {
6704
+ "solutionUserCount": 0
6705
+ }
6706
+ }
6707
+ ],
6708
+ "count": 1,
6709
+ "totalCount": 4,
6710
+ "perPage": 1,
6711
+ "page": 0,
6712
+ "sortField": "name",
6713
+ "sortDirection": "asc",
6714
+ "orgId": "575ed6e87ae143cd83dc4aa8"
6715
+ }
6716
+ ```
6717
+
6718
+ <br/>
6719
+
5718
6720
  ## Success
5719
6721
 
5720
6722
  Schema for reporting a successful operation