losant_rest 1.12.0 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/docs/_schemas.md +4164 -701
  5. data/docs/events.md +3 -3
  6. data/docs/flow.md +41 -0
  7. data/docs/instance.md +128 -0
  8. data/docs/instanceMember.md +133 -0
  9. data/docs/instanceMembers.md +91 -0
  10. data/docs/instanceOrg.md +133 -0
  11. data/docs/instanceOrgMember.md +139 -0
  12. data/docs/instanceOrgMembers.md +96 -0
  13. data/docs/instanceOrgs.md +91 -0
  14. data/docs/instances.md +50 -0
  15. data/lib/losant_rest.rb +9 -1
  16. data/lib/losant_rest/application.rb +2 -2
  17. data/lib/losant_rest/application_api_token.rb +1 -1
  18. data/lib/losant_rest/application_api_tokens.rb +1 -1
  19. data/lib/losant_rest/application_certificate.rb +1 -1
  20. data/lib/losant_rest/application_certificate_authorities.rb +1 -1
  21. data/lib/losant_rest/application_certificate_authority.rb +1 -1
  22. data/lib/losant_rest/application_certificates.rb +1 -1
  23. data/lib/losant_rest/application_dashboard.rb +1 -1
  24. data/lib/losant_rest/application_dashboards.rb +1 -1
  25. data/lib/losant_rest/application_key.rb +1 -1
  26. data/lib/losant_rest/application_keys.rb +1 -1
  27. data/lib/losant_rest/application_template.rb +1 -1
  28. data/lib/losant_rest/application_templates.rb +1 -1
  29. data/lib/losant_rest/applications.rb +1 -1
  30. data/lib/losant_rest/audit_log.rb +1 -1
  31. data/lib/losant_rest/audit_logs.rb +1 -1
  32. data/lib/losant_rest/auth.rb +1 -1
  33. data/lib/losant_rest/client.rb +35 -3
  34. data/lib/losant_rest/dashboard.rb +1 -1
  35. data/lib/losant_rest/dashboards.rb +1 -1
  36. data/lib/losant_rest/data.rb +1 -1
  37. data/lib/losant_rest/data_table.rb +1 -1
  38. data/lib/losant_rest/data_table_row.rb +1 -1
  39. data/lib/losant_rest/data_table_rows.rb +1 -1
  40. data/lib/losant_rest/data_tables.rb +1 -1
  41. data/lib/losant_rest/device.rb +1 -1
  42. data/lib/losant_rest/device_recipe.rb +1 -1
  43. data/lib/losant_rest/device_recipes.rb +1 -1
  44. data/lib/losant_rest/devices.rb +1 -1
  45. data/lib/losant_rest/edge_deployments.rb +1 -1
  46. data/lib/losant_rest/error.rb +1 -1
  47. data/lib/losant_rest/event.rb +1 -1
  48. data/lib/losant_rest/events.rb +4 -4
  49. data/lib/losant_rest/experience.rb +1 -1
  50. data/lib/losant_rest/experience_domain.rb +1 -1
  51. data/lib/losant_rest/experience_domains.rb +1 -1
  52. data/lib/losant_rest/experience_endpoint.rb +1 -1
  53. data/lib/losant_rest/experience_endpoints.rb +1 -1
  54. data/lib/losant_rest/experience_group.rb +1 -1
  55. data/lib/losant_rest/experience_groups.rb +1 -1
  56. data/lib/losant_rest/experience_slug.rb +1 -1
  57. data/lib/losant_rest/experience_slugs.rb +1 -1
  58. data/lib/losant_rest/experience_user.rb +1 -1
  59. data/lib/losant_rest/experience_users.rb +1 -1
  60. data/lib/losant_rest/experience_version.rb +1 -1
  61. data/lib/losant_rest/experience_versions.rb +1 -1
  62. data/lib/losant_rest/experience_view.rb +1 -1
  63. data/lib/losant_rest/experience_views.rb +1 -1
  64. data/lib/losant_rest/file.rb +1 -1
  65. data/lib/losant_rest/files.rb +1 -1
  66. data/lib/losant_rest/flow.rb +47 -1
  67. data/lib/losant_rest/flow_version.rb +1 -1
  68. data/lib/losant_rest/flow_versions.rb +1 -1
  69. data/lib/losant_rest/flows.rb +1 -1
  70. data/lib/losant_rest/instance.rb +181 -0
  71. data/lib/losant_rest/instance_member.rb +176 -0
  72. data/lib/losant_rest/instance_members.rb +134 -0
  73. data/lib/losant_rest/instance_org.rb +176 -0
  74. data/lib/losant_rest/instance_org_member.rb +182 -0
  75. data/lib/losant_rest/instance_org_members.rb +138 -0
  76. data/lib/losant_rest/instance_orgs.rb +139 -0
  77. data/lib/losant_rest/instances.rb +88 -0
  78. data/lib/losant_rest/integration.rb +1 -1
  79. data/lib/losant_rest/integrations.rb +1 -1
  80. data/lib/losant_rest/me.rb +2 -2
  81. data/lib/losant_rest/notebook.rb +1 -1
  82. data/lib/losant_rest/notebooks.rb +1 -1
  83. data/lib/losant_rest/org.rb +2 -2
  84. data/lib/losant_rest/org_invites.rb +1 -1
  85. data/lib/losant_rest/orgs.rb +1 -1
  86. data/lib/losant_rest/utils.rb +1 -1
  87. data/lib/losant_rest/version.rb +2 -2
  88. data/lib/losant_rest/webhook.rb +1 -1
  89. data/lib/losant_rest/webhooks.rb +1 -1
  90. data/schemas/advancedDeviceQuery.json +309 -0
  91. data/schemas/applicationApiTokenPost.json +1 -0
  92. data/schemas/applicationDashboardPost.json +19 -1
  93. data/schemas/dashboard.json +19 -1
  94. data/schemas/dashboardPatch.json +19 -1
  95. data/schemas/dashboardPost.json +19 -1
  96. data/schemas/dashboards.json +19 -1
  97. data/schemas/devicesDeletePost.json +309 -0
  98. data/schemas/devicesExportPost.json +309 -0
  99. data/schemas/devicesPatch.json +309 -0
  100. data/schemas/devicesRemoveDataPost.json +309 -0
  101. data/schemas/filePost.json +8 -2
  102. data/schemas/flowStorageMetadata.json +13 -0
  103. data/schemas/githubLogin.json +35 -11
  104. data/schemas/historicalSummaries.json +43 -0
  105. data/schemas/historicalSummary.json +455 -0
  106. data/schemas/instanceMember.json +37 -0
  107. data/schemas/instanceMemberPatch.json +17 -0
  108. data/schemas/instanceMemberPost.json +22 -0
  109. data/schemas/instanceMembers.json +69 -0
  110. data/schemas/instanceOrg.json +14 -0
  111. data/schemas/instanceOrgMember.json +37 -0
  112. data/schemas/instanceOrgMemberPatch.json +69 -0
  113. data/schemas/instanceOrgMemberPost.json +161 -0
  114. data/schemas/instanceOrgMembers.json +34 -0
  115. data/schemas/instanceOrgPatch.json +19 -0
  116. data/schemas/instanceOrgPost.json +11 -0
  117. data/schemas/instanceOrgs.json +14 -0
  118. data/schemas/instanceReportOptionsPost.json +40 -0
  119. data/schemas/multiDeviceCommand.json +309 -0
  120. data/schemas/orgPatch.json +0 -9
  121. data/schemas/payloadStats.json +110 -0
  122. data/schemas/userCredentials.json +35 -11
  123. data/schemas/userPost.json +35 -11
  124. metadata +31 -2
data/docs/events.md CHANGED
@@ -118,7 +118,7 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
118
118
  | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: subject | | subject |
119
119
  | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | abnormal power to * |
120
120
  | state | string | N | If provided, return events only in the given state. Accepted values are: new, acknowledged, resolved | | new |
121
- | query | [Advanced Event Query](_schemas.md#advanced-event-query) | N | Event filter JSON object which overides the filterField, filter, and state parameters. | | [Advanced Event Query Example](_schemas.md#advanced-event-query-example) |
121
+ | query | [Advanced Event Query](_schemas.md#advanced-event-query) | N | Event filter JSON object which overrides the filterField, filter, and state parameters. | | [Advanced Event Query Example](_schemas.md#advanced-event-query-example) |
122
122
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
123
123
 
124
124
  #### Successful Responses
@@ -157,7 +157,7 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
157
157
  | ---- | ---- | -------- | ----------- | ------- | ------- |
158
158
  | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
159
159
  | filter | string | N | Filter to apply against event subjects. Supports globbing. Blank or not provided means no filtering. | | abnormal power to * |
160
- | query | [Advanced Event Query](_schemas.md#advanced-event-query) | N | Event filter JSON object which overides the filter parameter. | | [Advanced Event Query Example](_schemas.md#advanced-event-query-example) |
160
+ | query | [Advanced Event Query](_schemas.md#advanced-event-query) | N | Event filter JSON object which overrides the filter parameter. | | [Advanced Event Query Example](_schemas.md#advanced-event-query-example) |
161
161
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
162
162
 
163
163
  #### Successful Responses
@@ -199,7 +199,7 @@ all.Application, all.Organization, all.User, events.*, or events.patch.
199
199
  | filterField | string | N | Field to filter the events to act on by. Blank or not provided means no filtering. Accepted values are: subject | | subject |
200
200
  | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | abnormal power to * |
201
201
  | state | string | N | If provided, act on events only in the given state. Accepted values are: new, acknowledged, resolved | | new |
202
- | query | [Advanced Event Query](_schemas.md#advanced-event-query) | N | Event filter JSON object which overides the filterField, filter, and state parameters. | | [Advanced Event Query Example](_schemas.md#advanced-event-query-example) |
202
+ | query | [Advanced Event Query](_schemas.md#advanced-event-query) | N | Event filter JSON object which overrides the filterField, filter, and state parameters. | | [Advanced Event Query Example](_schemas.md#advanced-event-query-example) |
203
203
  | updates | [Event Patch](_schemas.md#event-patch) | Y | Object containing updated information for the events | | [Event Patch Example](_schemas.md#event-patch-example) |
204
204
  | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
205
205
 
data/docs/flow.md CHANGED
@@ -12,6 +12,7 @@ parameters and the potential responses.
12
12
  * [Get](#get)
13
13
  * [Get Log Entries](#get-log-entries)
14
14
  * [Get Storage Entries](#get-storage-entries)
15
+ * [Get Storage Entries Metadata](#get-storage-entries-metadata)
15
16
  * [Patch](#patch)
16
17
  * [Press Virtual Button](#press-virtual-button)
17
18
  * [Set Storage Entry](#set-storage-entry)
@@ -268,6 +269,46 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
268
269
 
269
270
  <br/>
270
271
 
272
+ ## Get Storage Entries Metadata
273
+
274
+ Gets metadata about storage for this flow
275
+
276
+ ```ruby
277
+ result = client.flow.get_storage_entries_metadata(
278
+ applicationId: my_application_id,
279
+ flowId: my_flow_id)
280
+
281
+ puts result
282
+ ```
283
+
284
+ #### Authentication
285
+ The client must be configured with a valid api access token to call this
286
+ action. The token must include at least one of the following scopes:
287
+ all.Application, all.Organization, all.User, flow.*, or flow.getStorageEntriesMetadata.
288
+
289
+ #### Available Parameters
290
+
291
+ | Name | Type | Required | Description | Default | Example |
292
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
293
+ | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
294
+ | flowId | string | Y | ID associated with the flow | | 575ed18f7ae143cd83dc4aa6 |
295
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
296
+
297
+ #### Successful Responses
298
+
299
+ | Code | Type | Description |
300
+ | ---- | ---- | ----------- |
301
+ | 200 | [Get Workflow Storage Entries Metadata](_schemas.md#get-workflow-storage-entries-metadata) | The meta data for the current storage entries |
302
+
303
+ #### Error Responses
304
+
305
+ | Code | Type | Description |
306
+ | ---- | ---- | ----------- |
307
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
308
+ | 404 | [Error](_schemas.md#error) | Error if flow was not found |
309
+
310
+ <br/>
311
+
271
312
  ## Patch
272
313
 
273
314
  Updates information about a flow
data/docs/instance.md ADDED
@@ -0,0 +1,128 @@
1
+ # Instance Actions
2
+
3
+ Details on the various actions that can be performed on the
4
+ Instance resource, including the expected
5
+ parameters and the potential responses.
6
+
7
+ ##### Contents
8
+
9
+ * [Generate Report](#generate-report)
10
+ * [Get](#get)
11
+ * [Historical Summaries](#historical-summaries)
12
+
13
+ <br/>
14
+
15
+ ## Generate Report
16
+
17
+ Generates a CSV report on instance stats
18
+
19
+ ```ruby
20
+ result = client.instance.generate_report(instanceId: my_instance_id)
21
+
22
+ puts result
23
+ ```
24
+
25
+ #### Authentication
26
+ The client must be configured with a valid api access token to call this
27
+ action. The token must include at least one of the following scopes:
28
+ all.Instance, all.Instance.read, all.User, all.User.read, instance.*, or instance.generateReport.
29
+
30
+ #### Available Parameters
31
+
32
+ | Name | Type | Required | Description | Default | Example |
33
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
34
+ | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
35
+ | options | [Instance Report Options Post](_schemas.md#instance-report-options-post) | N | Object containing report configuration | | [Instance Report Options Post Example](_schemas.md#instance-report-options-post-example) |
36
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
37
+
38
+ #### Successful Responses
39
+
40
+ | Code | Type | Description |
41
+ | ---- | ---- | ----------- |
42
+ | 200 | [Success](_schemas.md#success) | If generation of report was successfully started |
43
+
44
+ #### Error Responses
45
+
46
+ | Code | Type | Description |
47
+ | ---- | ---- | ----------- |
48
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
49
+
50
+ <br/>
51
+
52
+ ## Get
53
+
54
+ Returns an instance
55
+
56
+ ```ruby
57
+ result = client.instance.get(instanceId: my_instance_id)
58
+
59
+ puts result
60
+ ```
61
+
62
+ #### Authentication
63
+ The client must be configured with a valid api access token to call this
64
+ action. The token must include at least one of the following scopes:
65
+ all.Instance, all.Instance.read, all.User, all.User.read, instance.*, or instance.get.
66
+
67
+ #### Available Parameters
68
+
69
+ | Name | Type | Required | Description | Default | Example |
70
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
71
+ | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
72
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
73
+
74
+ #### Successful Responses
75
+
76
+ | Code | Type | Description |
77
+ | ---- | ---- | ----------- |
78
+ | 200 | [Instance](_schemas.md#instance) | A single instance |
79
+
80
+ #### Error Responses
81
+
82
+ | Code | Type | Description |
83
+ | ---- | ---- | ----------- |
84
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
85
+ | 404 | [Error](_schemas.md#error) | Error if instance was not found |
86
+
87
+ <br/>
88
+
89
+ ## Historical Summaries
90
+
91
+ Return historical summary entries for an instance
92
+
93
+ ```ruby
94
+ result = client.instance.historical_summaries(instanceId: my_instance_id)
95
+
96
+ puts result
97
+ ```
98
+
99
+ #### Authentication
100
+ The client must be configured with a valid api access token to call this
101
+ action. The token must include at least one of the following scopes:
102
+ all.Instance, all.Instance.read, all.User, all.User.read, instance.*, or instance.historicalSummaries.
103
+
104
+ #### Available Parameters
105
+
106
+ | Name | Type | Required | Description | Default | Example |
107
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
108
+ | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
109
+ | month | string | N | Timestamp within the month to report a summary for. | now | 1609459204518 |
110
+ | sortField | string | N | Field to sort the results by. Accepted values are: resourceId, currentPeriodStart | currentPeriodStart | resourceId |
111
+ | sortDirection | string | N | Direction to sort the results in. Accepted values are: asc, desc | asc | asc |
112
+ | page | string | N | Which page of results to return | 0 | 0 |
113
+ | perPage | string | N | How many items to return per page | 100 | 10 |
114
+ | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: resourceType, resourceId, ownerId, ownerType | | resourceType |
115
+ | filter | string | N | Filter to apply against the filtered field. Blank or not provided means no filtering. | | organization |
116
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
117
+
118
+ #### Successful Responses
119
+
120
+ | Code | Type | Description |
121
+ | ---- | ---- | ----------- |
122
+ | 200 | [Historical Summaries](_schemas.md#historical-summaries) | Collection of historical summaries |
123
+
124
+ #### Error Responses
125
+
126
+ | Code | Type | Description |
127
+ | ---- | ---- | ----------- |
128
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
@@ -0,0 +1,133 @@
1
+ # Instance Member Actions
2
+
3
+ Details on the various actions that can be performed on the
4
+ Instance Member resource, including the expected
5
+ parameters and the potential responses.
6
+
7
+ ##### Contents
8
+
9
+ * [Delete](#delete)
10
+ * [Get](#get)
11
+ * [Patch](#patch)
12
+
13
+ <br/>
14
+
15
+ ## Delete
16
+
17
+ Deletes an instance member
18
+
19
+ ```ruby
20
+ result = client.instance_member.delete(
21
+ instanceId: my_instance_id,
22
+ userId: my_user_id)
23
+
24
+ puts result
25
+ ```
26
+
27
+ #### Authentication
28
+ The client must be configured with a valid api access token to call this
29
+ action. The token must include at least one of the following scopes:
30
+ all.Instance, all.User, instanceMember.*, or instanceMember.delete.
31
+
32
+ #### Available Parameters
33
+
34
+ | Name | Type | Required | Description | Default | Example |
35
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
36
+ | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
37
+ | userId | string | Y | ID associated with the instance member | | 575ec8687ae143cd83dc4a94 |
38
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
39
+
40
+ #### Successful Responses
41
+
42
+ | Code | Type | Description |
43
+ | ---- | ---- | ----------- |
44
+ | 200 | [Success](_schemas.md#success) | If member was successfully deleted |
45
+
46
+ #### Error Responses
47
+
48
+ | Code | Type | Description |
49
+ | ---- | ---- | ----------- |
50
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
51
+ | 404 | [Error](_schemas.md#error) | Error if instance or member was not found |
52
+
53
+ <br/>
54
+
55
+ ## Get
56
+
57
+ Returns an instance member
58
+
59
+ ```ruby
60
+ result = client.instance_member.get(
61
+ instanceId: my_instance_id,
62
+ userId: my_user_id)
63
+
64
+ puts result
65
+ ```
66
+
67
+ #### Authentication
68
+ The client must be configured with a valid api access token to call this
69
+ action. The token must include at least one of the following scopes:
70
+ all.Instance, all.Instance.read, all.User, all.User.read, instanceMember.*, or instanceMember.get.
71
+
72
+ #### Available Parameters
73
+
74
+ | Name | Type | Required | Description | Default | Example |
75
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
76
+ | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
77
+ | userId | string | Y | ID associated with the instance member | | 575ec8687ae143cd83dc4a94 |
78
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
79
+
80
+ #### Successful Responses
81
+
82
+ | Code | Type | Description |
83
+ | ---- | ---- | ----------- |
84
+ | 200 | [Instance Member](_schemas.md#instance-member) | A single instance member |
85
+
86
+ #### Error Responses
87
+
88
+ | Code | Type | Description |
89
+ | ---- | ---- | ----------- |
90
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
91
+ | 404 | [Error](_schemas.md#error) | Error if instance or member was not found |
92
+
93
+ <br/>
94
+
95
+ ## Patch
96
+
97
+ Modifies the role of an instance member
98
+
99
+ ```ruby
100
+ result = client.instance_member.patch(
101
+ instanceId: my_instance_id,
102
+ userId: my_user_id,
103
+ member: my_member)
104
+
105
+ puts result
106
+ ```
107
+
108
+ #### Authentication
109
+ The client must be configured with a valid api access token to call this
110
+ action. The token must include at least one of the following scopes:
111
+ all.Instance, all.User, instanceMember.*, or instanceMember.patch.
112
+
113
+ #### Available Parameters
114
+
115
+ | Name | Type | Required | Description | Default | Example |
116
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
117
+ | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
118
+ | userId | string | Y | ID associated with the instance member | | 575ec8687ae143cd83dc4a94 |
119
+ | member | [Instance Member Patch](_schemas.md#instance-member-patch) | Y | Object containing new member info | | [Instance Member Patch Example](_schemas.md#instance-member-patch-example) |
120
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
121
+
122
+ #### Successful Responses
123
+
124
+ | Code | Type | Description |
125
+ | ---- | ---- | ----------- |
126
+ | 200 | [Instance Member Patch](_schemas.md#instance-member-patch) | The modified instance member |
127
+
128
+ #### Error Responses
129
+
130
+ | Code | Type | Description |
131
+ | ---- | ---- | ----------- |
132
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
133
+ | 404 | [Error](_schemas.md#error) | Error if instance or member was not found |
@@ -0,0 +1,91 @@
1
+ # Instance Members Actions
2
+
3
+ Details on the various actions that can be performed on the
4
+ Instance Members resource, including the expected
5
+ parameters and the potential responses.
6
+
7
+ ##### Contents
8
+
9
+ * [Get](#get)
10
+ * [Post](#post)
11
+
12
+ <br/>
13
+
14
+ ## Get
15
+
16
+ Returns an instance member
17
+
18
+ ```ruby
19
+ result = client.instance_members.get(instanceId: my_instance_id)
20
+
21
+ puts result
22
+ ```
23
+
24
+ #### Authentication
25
+ The client must be configured with a valid api access token to call this
26
+ action. The token must include at least one of the following scopes:
27
+ all.Instance, all.Instance.read, all.User, all.User.read, instanceMembers.*, or instanceMembers.get.
28
+
29
+ #### Available Parameters
30
+
31
+ | Name | Type | Required | Description | Default | Example |
32
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
33
+ | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
34
+ | sortField | string | N | Field to sort the results by. Accepted values are: email, role | email | role |
35
+ | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
36
+ | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: email, role | | email |
37
+ | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my * instance |
38
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
39
+
40
+ #### Successful Responses
41
+
42
+ | Code | Type | Description |
43
+ | ---- | ---- | ----------- |
44
+ | 200 | [Instance Members](_schemas.md#instance-members) | A collection of instance members |
45
+
46
+ #### Error Responses
47
+
48
+ | Code | Type | Description |
49
+ | ---- | ---- | ----------- |
50
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
51
+ | 404 | [Error](_schemas.md#error) | Error if instance was not found |
52
+
53
+ <br/>
54
+
55
+ ## Post
56
+
57
+ Creates a new instance member
58
+
59
+ ```ruby
60
+ result = client.instance_members.post(
61
+ instanceId: my_instance_id,
62
+ member: my_member)
63
+
64
+ puts result
65
+ ```
66
+
67
+ #### Authentication
68
+ The client must be configured with a valid api access token to call this
69
+ action. The token must include at least one of the following scopes:
70
+ all.Instance, all.User, instanceMembers.*, or instanceMembers.post.
71
+
72
+ #### Available Parameters
73
+
74
+ | Name | Type | Required | Description | Default | Example |
75
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
76
+ | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
77
+ | member | [Instance Member Post](_schemas.md#instance-member-post) | Y | Object containing new member info | | [Instance Member Post Example](_schemas.md#instance-member-post-example) |
78
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
79
+
80
+ #### Successful Responses
81
+
82
+ | Code | Type | Description |
83
+ | ---- | ---- | ----------- |
84
+ | 200 | [Instance Member](_schemas.md#instance-member) | The newly created instance member |
85
+
86
+ #### Error Responses
87
+
88
+ | Code | Type | Description |
89
+ | ---- | ---- | ----------- |
90
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
91
+ | 404 | [Error](_schemas.md#error) | Error if instance was not found |
@@ -0,0 +1,133 @@
1
+ # Instance Org Actions
2
+
3
+ Details on the various actions that can be performed on the
4
+ Instance Org resource, including the expected
5
+ parameters and the potential responses.
6
+
7
+ ##### Contents
8
+
9
+ * [Delete](#delete)
10
+ * [Get](#get)
11
+ * [Patch](#patch)
12
+
13
+ <br/>
14
+
15
+ ## Delete
16
+
17
+ Deletes an organization
18
+
19
+ ```ruby
20
+ result = client.instance_org.delete(
21
+ instanceId: my_instance_id,
22
+ orgId: my_org_id)
23
+
24
+ puts result
25
+ ```
26
+
27
+ #### Authentication
28
+ The client must be configured with a valid api access token to call this
29
+ action. The token must include at least one of the following scopes:
30
+ all.Instance, all.User, instanceOrg.*, or instanceOrg.delete.
31
+
32
+ #### Available Parameters
33
+
34
+ | Name | Type | Required | Description | Default | Example |
35
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
36
+ | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
37
+ | orgId | string | Y | ID associated with the organization | | 575ed6e87ae143cd83dc4aa8 |
38
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
39
+
40
+ #### Successful Responses
41
+
42
+ | Code | Type | Description |
43
+ | ---- | ---- | ----------- |
44
+ | 200 | [Success](_schemas.md#success) | If organization was successfully deleted |
45
+
46
+ #### Error Responses
47
+
48
+ | Code | Type | Description |
49
+ | ---- | ---- | ----------- |
50
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
51
+ | 404 | [Error](_schemas.md#error) | Error if organization was not found |
52
+
53
+ <br/>
54
+
55
+ ## Get
56
+
57
+ Retrieves information on an organization
58
+
59
+ ```ruby
60
+ result = client.instance_org.get(
61
+ instanceId: my_instance_id,
62
+ orgId: my_org_id)
63
+
64
+ puts result
65
+ ```
66
+
67
+ #### Authentication
68
+ The client must be configured with a valid api access token to call this
69
+ action. The token must include at least one of the following scopes:
70
+ all.Instance, all.Instance.read, all.User, all.User.read, instanceOrg.*, or instanceOrg.get.
71
+
72
+ #### Available Parameters
73
+
74
+ | Name | Type | Required | Description | Default | Example |
75
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
76
+ | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
77
+ | orgId | string | Y | ID associated with the organization | | 575ed6e87ae143cd83dc4aa8 |
78
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
79
+
80
+ #### Successful Responses
81
+
82
+ | Code | Type | Description |
83
+ | ---- | ---- | ----------- |
84
+ | 200 | [Instance Organization](_schemas.md#instance-organization) | A single organization |
85
+
86
+ #### Error Responses
87
+
88
+ | Code | Type | Description |
89
+ | ---- | ---- | ----------- |
90
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
91
+ | 404 | [Error](_schemas.md#error) | Error if organization was not found |
92
+
93
+ <br/>
94
+
95
+ ## Patch
96
+
97
+ Updates information about an organization
98
+
99
+ ```ruby
100
+ result = client.instance_org.patch(
101
+ instanceId: my_instance_id,
102
+ orgId: my_org_id,
103
+ organization: my_organization)
104
+
105
+ puts result
106
+ ```
107
+
108
+ #### Authentication
109
+ The client must be configured with a valid api access token to call this
110
+ action. The token must include at least one of the following scopes:
111
+ all.Instance, all.User, instanceOrg.*, or instanceOrg.patch.
112
+
113
+ #### Available Parameters
114
+
115
+ | Name | Type | Required | Description | Default | Example |
116
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
117
+ | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
118
+ | orgId | string | Y | ID associated with the organization | | 575ed6e87ae143cd83dc4aa8 |
119
+ | organization | [Instance Owned Organization Patch](_schemas.md#instance-owned-organization-patch) | Y | Object containing new organization properties | | [Instance Owned Organization Patch Example](_schemas.md#instance-owned-organization-patch-example) |
120
+ | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
121
+
122
+ #### Successful Responses
123
+
124
+ | Code | Type | Description |
125
+ | ---- | ---- | ----------- |
126
+ | 200 | [Instance Organization](_schemas.md#instance-organization) | Updated organization information |
127
+
128
+ #### Error Responses
129
+
130
+ | Code | Type | Description |
131
+ | ---- | ---- | ----------- |
132
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
133
+ | 404 | [Error](_schemas.md#error) | Error if organization was not found |