losant_rest 1.13.1 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/_schemas.md +2919 -507
- data/docs/application.md +1 -1
- data/docs/device.md +43 -0
- data/docs/devices.md +39 -0
- data/docs/edgeDeployment.md +49 -0
- data/docs/flow.md +1 -1
- data/docs/instanceOrg.md +2 -0
- data/docs/instanceOrgInvite.md +139 -0
- data/docs/instanceOrgInvites.md +96 -0
- data/docs/instanceOrgMembers.md +2 -2
- data/docs/instanceOrgs.md +1 -1
- data/docs/me.md +1 -1
- data/docs/org.md +1 -1
- data/lib/losant_rest.rb +3 -0
- data/lib/losant_rest/client.rb +14 -2
- data/lib/losant_rest/device.rb +50 -0
- data/lib/losant_rest/devices.rb +46 -0
- data/lib/losant_rest/edge_deployment.rb +81 -0
- data/lib/losant_rest/flow.rb +1 -1
- data/lib/losant_rest/instance_org.rb +4 -0
- data/lib/losant_rest/instance_org_invite.rb +182 -0
- data/lib/losant_rest/instance_org_invites.rb +138 -0
- data/lib/losant_rest/instance_org_members.rb +2 -2
- data/lib/losant_rest/instance_orgs.rb +2 -2
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/apiTokenPost.json +11 -0
- data/schemas/devicePayloadCounts.json +24 -0
- data/schemas/devicesExportPayloadCountPost.json +1350 -0
- data/schemas/edgeDeployment.json +16 -0
- data/schemas/edgeDeployments.json +16 -0
- data/schemas/experienceLinkedResources.json +45 -0
- data/schemas/flow.json +15 -0
- data/schemas/flowPatch.json +15 -0
- data/schemas/flowPost.json +15 -0
- data/schemas/flowVersion.json +30 -0
- data/schemas/flowVersionPost.json +15 -0
- data/schemas/flowVersions.json +30 -0
- data/schemas/flows.json +15 -0
- data/schemas/flowsImportPost.json +30 -0
- data/schemas/flowsImportResult.json +45 -0
- data/schemas/githubLogin.json +11 -0
- data/schemas/historicalSummary.json +60 -28
- data/schemas/instanceMember.json +4 -0
- data/schemas/instanceMemberPost.json +18 -3
- data/schemas/instanceMembers.json +8 -0
- data/schemas/instanceOrgMember.json +8 -0
- data/schemas/instanceOrgMembers.json +8 -0
- data/schemas/instanceOrgs.json +4 -0
- data/schemas/me.json +30 -14
- data/schemas/notebook.json +30 -0
- data/schemas/notebookPatch.json +30 -0
- data/schemas/notebookPost.json +30 -0
- data/schemas/notebooks.json +30 -0
- data/schemas/org.json +30 -14
- data/schemas/orgInvite.json +90 -0
- data/schemas/orgInviteCollection.json +130 -0
- data/schemas/orgInvites.json +82 -77
- data/schemas/orgRoleInfo.json +69 -0
- data/schemas/orgs.json +30 -14
- data/schemas/payloadStats.json +28 -12
- data/schemas/userCredentials.json +11 -0
- data/schemas/userPost.json +11 -0
- data/schemas/virtualButtonPress.json +4 -0
- metadata +13 -2
data/docs/application.md
CHANGED
@@ -568,7 +568,7 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
|
|
568
568
|
|
569
569
|
| Code | Type | Description |
|
570
570
|
| ---- | ---- | ----------- |
|
571
|
-
| 200 | [Payload
|
571
|
+
| 200 | [Payload Stats](_schemas.md#payload-stats) | Payload counts, by type and source |
|
572
572
|
|
573
573
|
#### Error Responses
|
574
574
|
|
data/docs/device.md
CHANGED
@@ -14,6 +14,7 @@ parameters and the potential responses.
|
|
14
14
|
* [Get Log Entries](#get-log-entries)
|
15
15
|
* [Get State](#get-state)
|
16
16
|
* [Patch](#patch)
|
17
|
+
* [Payload Counts](#payload-counts)
|
17
18
|
* [Remove Data](#remove-data)
|
18
19
|
* [Send Command](#send-command)
|
19
20
|
* [Send State](#send-state)
|
@@ -361,6 +362,48 @@ all.Application, all.Organization, all.User, device.*, or device.patch.
|
|
361
362
|
|
362
363
|
<br/>
|
363
364
|
|
365
|
+
## Payload Counts
|
366
|
+
|
367
|
+
Returns payload counts for the time range specified for this device
|
368
|
+
|
369
|
+
```ruby
|
370
|
+
result = client.device.payload_counts(
|
371
|
+
applicationId: my_application_id,
|
372
|
+
deviceId: my_device_id)
|
373
|
+
|
374
|
+
puts result
|
375
|
+
```
|
376
|
+
|
377
|
+
#### Authentication
|
378
|
+
The client must be configured with a valid api access token to call this
|
379
|
+
action. The token must include at least one of the following scopes:
|
380
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, device.*, or device.payloadCounts.
|
381
|
+
|
382
|
+
#### Available Parameters
|
383
|
+
|
384
|
+
| Name | Type | Required | Description | Default | Example |
|
385
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
386
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
387
|
+
| deviceId | string | Y | ID associated with the device | | 575ecf887ae143cd83dc4aa2 |
|
388
|
+
| start | string | N | Start of range for payload count query (ms since epoch) | -2592000000 | 0 |
|
389
|
+
| end | string | N | End of range for payload count query (ms since epoch) | 0 | 1465790400000 |
|
390
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
391
|
+
|
392
|
+
#### Successful Responses
|
393
|
+
|
394
|
+
| Code | Type | Description |
|
395
|
+
| ---- | ---- | ----------- |
|
396
|
+
| 200 | [Device Payload Counts](_schemas.md#device-payload-counts) | Payload counts, by type |
|
397
|
+
|
398
|
+
#### Error Responses
|
399
|
+
|
400
|
+
| Code | Type | Description |
|
401
|
+
| ---- | ---- | ----------- |
|
402
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
403
|
+
| 404 | [Error](_schemas.md#error) | Error if device was not found |
|
404
|
+
|
405
|
+
<br/>
|
406
|
+
|
364
407
|
## Remove Data
|
365
408
|
|
366
409
|
Removes all device data for the specified time range. Defaults to all data.
|
data/docs/devices.md
CHANGED
@@ -11,6 +11,7 @@ parameters and the potential responses.
|
|
11
11
|
* [Export](#export)
|
12
12
|
* [Get](#get)
|
13
13
|
* [Patch](#patch)
|
14
|
+
* [Payload Counts](#payload-counts)
|
14
15
|
* [Post](#post)
|
15
16
|
* [Remove Data](#remove-data)
|
16
17
|
* [Send Command](#send-command)
|
@@ -229,6 +230,44 @@ all.Application, all.Organization, all.User, devices.*, or devices.patch.
|
|
229
230
|
|
230
231
|
<br/>
|
231
232
|
|
233
|
+
## Payload Counts
|
234
|
+
|
235
|
+
Creates an export of payload count information for the matching devices
|
236
|
+
|
237
|
+
```ruby
|
238
|
+
result = client.devices.payload_counts(applicationId: my_application_id)
|
239
|
+
|
240
|
+
puts result
|
241
|
+
```
|
242
|
+
|
243
|
+
#### Authentication
|
244
|
+
The client must be configured with a valid api access token to call this
|
245
|
+
action. The token must include at least one of the following scopes:
|
246
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, devices.*, or devices.payloadCounts.
|
247
|
+
|
248
|
+
#### Available Parameters
|
249
|
+
|
250
|
+
| Name | Type | Required | Description | Default | Example |
|
251
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
252
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
253
|
+
| options | [Devices Payload Count Export Post](_schemas.md#devices-payload-count-export-post) | N | Object containing export configuration | | [Devices Payload Count Export Post Example](_schemas.md#devices-payload-count-export-post-example) |
|
254
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
255
|
+
|
256
|
+
#### Successful Responses
|
257
|
+
|
258
|
+
| Code | Type | Description |
|
259
|
+
| ---- | ---- | ----------- |
|
260
|
+
| 200 | [Success](_schemas.md#success) | If generation of export was successfully started |
|
261
|
+
|
262
|
+
#### Error Responses
|
263
|
+
|
264
|
+
| Code | Type | Description |
|
265
|
+
| ---- | ---- | ----------- |
|
266
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
267
|
+
| 404 | [Error](_schemas.md#error) | Error if application was not found |
|
268
|
+
|
269
|
+
<br/>
|
270
|
+
|
232
271
|
## Post
|
233
272
|
|
234
273
|
Create a new device for an application
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Edge Deployment Actions
|
2
|
+
|
3
|
+
Details on the various actions that can be performed on the
|
4
|
+
Edge Deployment 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
|
+
Retrieves information on an edge deployment
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
result = client.edge_deployment.get(
|
19
|
+
applicationId: my_application_id,
|
20
|
+
edgeDeploymentId: my_edge_deployment_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.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, edgeDeployment.*, or edgeDeployment.get.
|
29
|
+
|
30
|
+
#### Available Parameters
|
31
|
+
|
32
|
+
| Name | Type | Required | Description | Default | Example |
|
33
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
34
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
35
|
+
| edgeDeploymentId | string | Y | ID associated with the edge deployment | | 575ed78e7ae143cd83dc4aab |
|
36
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
37
|
+
|
38
|
+
#### Successful Responses
|
39
|
+
|
40
|
+
| Code | Type | Description |
|
41
|
+
| ---- | ---- | ----------- |
|
42
|
+
| 200 | [Edge Deployment](_schemas.md#edge-deployment) | Edge deployment information |
|
43
|
+
|
44
|
+
#### Error Responses
|
45
|
+
|
46
|
+
| Code | Type | Description |
|
47
|
+
| ---- | ---- | ----------- |
|
48
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
49
|
+
| 404 | [Error](_schemas.md#error) | Error if edge deployment was not found |
|
data/docs/flow.md
CHANGED
@@ -284,7 +284,7 @@ puts result
|
|
284
284
|
#### Authentication
|
285
285
|
The client must be configured with a valid api access token to call this
|
286
286
|
action. The token must include at least one of the following scopes:
|
287
|
-
all.Application, all.Organization, all.User, flow.*, or flow.getStorageEntriesMetadata.
|
287
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flow.*, or flow.getStorageEntriesMetadata.
|
288
288
|
|
289
289
|
#### Available Parameters
|
290
290
|
|
data/docs/instanceOrg.md
CHANGED
@@ -75,6 +75,7 @@ all.Instance, all.Instance.read, all.User, all.User.read, instanceOrg.*, or inst
|
|
75
75
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
76
76
|
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
|
77
77
|
| orgId | string | Y | ID associated with the organization | | 575ed6e87ae143cd83dc4aa8 |
|
78
|
+
| summaryInclude | string | N | Comma-separated list of summary fields to include in org summary | | payloadCount |
|
78
79
|
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
79
80
|
|
80
81
|
#### Successful Responses
|
@@ -116,6 +117,7 @@ all.Instance, all.User, instanceOrg.*, or instanceOrg.patch.
|
|
116
117
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
117
118
|
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
|
118
119
|
| orgId | string | Y | ID associated with the organization | | 575ed6e87ae143cd83dc4aa8 |
|
120
|
+
| summaryInclude | string | N | Comma-separated list of summary fields to include in org summary | | payloadCount |
|
119
121
|
| 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
122
|
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
121
123
|
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# Instance Org Invite Actions
|
2
|
+
|
3
|
+
Details on the various actions that can be performed on the
|
4
|
+
Instance Org Invite resource, including the expected
|
5
|
+
parameters and the potential responses.
|
6
|
+
|
7
|
+
##### Contents
|
8
|
+
|
9
|
+
* [Delete](#delete)
|
10
|
+
* [Get](#get)
|
11
|
+
* [Resend Invite](#resend-invite)
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
## Delete
|
16
|
+
|
17
|
+
Revokes an instance org invitation
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
result = client.instance_org_invite.delete(
|
21
|
+
instanceId: my_instance_id,
|
22
|
+
orgId: my_org_id,
|
23
|
+
inviteId: my_invite_id)
|
24
|
+
|
25
|
+
puts result
|
26
|
+
```
|
27
|
+
|
28
|
+
#### Authentication
|
29
|
+
The client must be configured with a valid api access token to call this
|
30
|
+
action. The token must include at least one of the following scopes:
|
31
|
+
all.Instance, all.User, instanceOrgInvite.*, or instanceOrgInvite.delete.
|
32
|
+
|
33
|
+
#### Available Parameters
|
34
|
+
|
35
|
+
| Name | Type | Required | Description | Default | Example |
|
36
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
37
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a95 |
|
38
|
+
| orgId | string | Y | ID associated with the organization | | 575ec8687ae143cd83dc4a97 |
|
39
|
+
| inviteId | string | Y | ID associated with the organization invite | | 575ec8687ae143cd83dc4a94 |
|
40
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
41
|
+
|
42
|
+
#### Successful Responses
|
43
|
+
|
44
|
+
| Code | Type | Description |
|
45
|
+
| ---- | ---- | ----------- |
|
46
|
+
| 200 | [Success](_schemas.md#success) | If an invite was successfully deleted |
|
47
|
+
|
48
|
+
#### Error Responses
|
49
|
+
|
50
|
+
| Code | Type | Description |
|
51
|
+
| ---- | ---- | ----------- |
|
52
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
53
|
+
| 404 | [Error](_schemas.md#error) | Error if instance, organization or invite was not found |
|
54
|
+
|
55
|
+
<br/>
|
56
|
+
|
57
|
+
## Get
|
58
|
+
|
59
|
+
Returns an organization invite
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
result = client.instance_org_invite.get(
|
63
|
+
instanceId: my_instance_id,
|
64
|
+
orgId: my_org_id,
|
65
|
+
inviteId: my_invite_id)
|
66
|
+
|
67
|
+
puts result
|
68
|
+
```
|
69
|
+
|
70
|
+
#### Authentication
|
71
|
+
The client must be configured with a valid api access token to call this
|
72
|
+
action. The token must include at least one of the following scopes:
|
73
|
+
all.Instance, all.Instance.read, all.User, all.User.read, instanceOrgInvite.*, or instanceOrgInvite.get.
|
74
|
+
|
75
|
+
#### Available Parameters
|
76
|
+
|
77
|
+
| Name | Type | Required | Description | Default | Example |
|
78
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
79
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a95 |
|
80
|
+
| orgId | string | Y | ID associated with the organization | | 575ec8687ae143cd83dc4a97 |
|
81
|
+
| inviteId | string | Y | ID associated with the organization invite | | 575ec8687ae143cd83dc4a94 |
|
82
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
83
|
+
|
84
|
+
#### Successful Responses
|
85
|
+
|
86
|
+
| Code | Type | Description |
|
87
|
+
| ---- | ---- | ----------- |
|
88
|
+
| 200 | [Organization Invitation](_schemas.md#organization-invitation) | A single organization invite |
|
89
|
+
|
90
|
+
#### Error Responses
|
91
|
+
|
92
|
+
| Code | Type | Description |
|
93
|
+
| ---- | ---- | ----------- |
|
94
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
95
|
+
| 404 | [Error](_schemas.md#error) | Error if instance, organization, or invite was not found |
|
96
|
+
|
97
|
+
<br/>
|
98
|
+
|
99
|
+
## Resend Invite
|
100
|
+
|
101
|
+
Resend an organization invite with modified role info
|
102
|
+
|
103
|
+
```ruby
|
104
|
+
result = client.instance_org_invite.resend_invite(
|
105
|
+
instanceId: my_instance_id,
|
106
|
+
orgId: my_org_id,
|
107
|
+
inviteId: my_invite_id,
|
108
|
+
roleInfo: my_role_info)
|
109
|
+
|
110
|
+
puts result
|
111
|
+
```
|
112
|
+
|
113
|
+
#### Authentication
|
114
|
+
The client must be configured with a valid api access token to call this
|
115
|
+
action. The token must include at least one of the following scopes:
|
116
|
+
all.Instance, all.User, instanceOrgInvite.*, or instanceOrgInvite.resendInvite.
|
117
|
+
|
118
|
+
#### Available Parameters
|
119
|
+
|
120
|
+
| Name | Type | Required | Description | Default | Example |
|
121
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
122
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a95 |
|
123
|
+
| orgId | string | Y | ID associated with the organization | | 575ec8687ae143cd83dc4a97 |
|
124
|
+
| inviteId | string | Y | ID associated with the organization invite | | 575ec8687ae143cd83dc4a94 |
|
125
|
+
| roleInfo | [Organization Role Info](_schemas.md#organization-role-info) | Y | Object containing updated role info | | [Organization Role Info Example](_schemas.md#organization-role-info-example) |
|
126
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
127
|
+
|
128
|
+
#### Successful Responses
|
129
|
+
|
130
|
+
| Code | Type | Description |
|
131
|
+
| ---- | ---- | ----------- |
|
132
|
+
| 201 | [Organization Invitation](_schemas.md#organization-invitation) | The new org invite |
|
133
|
+
|
134
|
+
#### Error Responses
|
135
|
+
|
136
|
+
| Code | Type | Description |
|
137
|
+
| ---- | ---- | ----------- |
|
138
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
139
|
+
| 404 | [Error](_schemas.md#error) | Error if instance, organization, or invite was not found |
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# Instance Org Invites Actions
|
2
|
+
|
3
|
+
Details on the various actions that can be performed on the
|
4
|
+
Instance Org Invites 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 a collection of instance organization invites
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
result = client.instance_org_invites.get(
|
20
|
+
instanceId: my_instance_id,
|
21
|
+
orgId: my_org_id)
|
22
|
+
|
23
|
+
puts result
|
24
|
+
```
|
25
|
+
|
26
|
+
#### Authentication
|
27
|
+
The client must be configured with a valid api access token to call this
|
28
|
+
action. The token must include at least one of the following scopes:
|
29
|
+
all.Instance, all.Instance.read, all.User, all.User.read, instanceOrgInvites.*, or instanceOrgInvites.get.
|
30
|
+
|
31
|
+
#### Available Parameters
|
32
|
+
|
33
|
+
| Name | Type | Required | Description | Default | Example |
|
34
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
35
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
|
36
|
+
| orgId | string | Y | ID associated with the organization | | 575ec8687ae143cd83dc4a97 |
|
37
|
+
| sortField | string | N | Field to sort the results by. Accepted values are: email, role, inviteDate | inviteDate | role |
|
38
|
+
| sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | desc | asc |
|
39
|
+
| filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: email, role | | email |
|
40
|
+
| filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my * instance |
|
41
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
42
|
+
|
43
|
+
#### Successful Responses
|
44
|
+
|
45
|
+
| Code | Type | Description |
|
46
|
+
| ---- | ---- | ----------- |
|
47
|
+
| 200 | [Instance Organization Invitations](_schemas.md#instance-organization-invitations) | A collection of instance organization invitations |
|
48
|
+
|
49
|
+
#### Error Responses
|
50
|
+
|
51
|
+
| Code | Type | Description |
|
52
|
+
| ---- | ---- | ----------- |
|
53
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
54
|
+
| 404 | [Error](_schemas.md#error) | Error if instance or organization was not found |
|
55
|
+
|
56
|
+
<br/>
|
57
|
+
|
58
|
+
## Post
|
59
|
+
|
60
|
+
Invites a member to an instance organization
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
result = client.instance_org_invites.post(
|
64
|
+
instanceId: my_instance_id,
|
65
|
+
orgId: my_org_id,
|
66
|
+
invite: my_invite)
|
67
|
+
|
68
|
+
puts result
|
69
|
+
```
|
70
|
+
|
71
|
+
#### Authentication
|
72
|
+
The client must be configured with a valid api access token to call this
|
73
|
+
action. The token must include at least one of the following scopes:
|
74
|
+
all.Instance, all.User, instanceOrgInvites.*, or instanceOrgInvites.post.
|
75
|
+
|
76
|
+
#### Available Parameters
|
77
|
+
|
78
|
+
| Name | Type | Required | Description | Default | Example |
|
79
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
80
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
|
81
|
+
| orgId | string | Y | ID associated with the organization | | 575ec8687ae143cd83dc4a97 |
|
82
|
+
| invite | [Organization Invitation Post](_schemas.md#organization-invitation-post) | Y | Object containing new invite info | | [Organization Invitation Post Example](_schemas.md#organization-invitation-post-example) |
|
83
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
84
|
+
|
85
|
+
#### Successful Responses
|
86
|
+
|
87
|
+
| Code | Type | Description |
|
88
|
+
| ---- | ---- | ----------- |
|
89
|
+
| 201 | [Instance Organization Invitations](_schemas.md#instance-organization-invitations) | The new organization invite |
|
90
|
+
|
91
|
+
#### Error Responses
|
92
|
+
|
93
|
+
| Code | Type | Description |
|
94
|
+
| ---- | ---- | ----------- |
|
95
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
96
|
+
| 404 | [Error](_schemas.md#error) | Error if instance or organization was not found |
|
data/docs/instanceOrgMembers.md
CHANGED
@@ -33,7 +33,7 @@ all.Instance, all.Instance.read, all.User, all.User.read, instanceOrgMembers.*,
|
|
33
33
|
| Name | Type | Required | Description | Default | Example |
|
34
34
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
35
35
|
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
|
36
|
-
| orgId | string | Y | ID associated with the
|
36
|
+
| orgId | string | Y | ID associated with the organization | | 575ec8687ae143cd83dc4a97 |
|
37
37
|
| sortField | string | N | Field to sort the results by. Accepted values are: email, role | email | role |
|
38
38
|
| sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
|
39
39
|
| filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: email, role | | email |
|
@@ -78,7 +78,7 @@ all.Instance, all.User, instanceOrgMembers.*, or instanceOrgMembers.post.
|
|
78
78
|
| Name | Type | Required | Description | Default | Example |
|
79
79
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
80
80
|
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
|
81
|
-
| orgId | string | Y | ID associated with the
|
81
|
+
| orgId | string | Y | ID associated with the organization | | 575ec8687ae143cd83dc4a97 |
|
82
82
|
| member | [Instance Org Member Post](_schemas.md#instance-org-member-post) | Y | Object containing new member info | | [Instance Org Member Post Example](_schemas.md#instance-org-member-post-example) |
|
83
83
|
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
84
84
|
|