losant_rest 1.13.0 → 1.13.1
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 +2317 -650
- data/docs/application.md +5 -5
- data/docs/applicationApiTokens.md +1 -1
- data/docs/applications.md +1 -1
- data/docs/dataTable.md +1 -1
- data/docs/dataTableRows.md +1 -1
- data/docs/dataTables.md +1 -1
- data/docs/devices.md +2 -2
- data/docs/experience.md +1 -1
- data/docs/experienceDomains.md +1 -1
- data/docs/experienceGroup.md +2 -0
- data/docs/experienceSlugs.md +1 -1
- data/docs/experienceVersion.md +3 -3
- data/docs/experienceVersions.md +2 -2
- data/docs/experienceView.md +4 -4
- data/docs/experienceViews.md +2 -2
- data/docs/file.md +5 -5
- data/docs/files.md +2 -2
- data/docs/flowVersions.md +44 -0
- data/docs/instance.md +38 -0
- data/docs/instanceApiToken.md +133 -0
- data/docs/instanceApiTokens.md +91 -0
- data/docs/instanceMembers.md +1 -1
- data/docs/instanceOrgMembers.md +1 -1
- data/docs/userApiToken.md +125 -0
- data/docs/userApiTokens.md +87 -0
- data/lib/losant_rest.rb +4 -0
- data/lib/losant_rest/application.rb +5 -5
- data/lib/losant_rest/application_api_tokens.rb +1 -1
- data/lib/losant_rest/applications.rb +1 -1
- data/lib/losant_rest/client.rb +18 -2
- data/lib/losant_rest/data_table.rb +1 -1
- data/lib/losant_rest/data_table_rows.rb +1 -1
- data/lib/losant_rest/data_tables.rb +1 -1
- data/lib/losant_rest/devices.rb +2 -2
- data/lib/losant_rest/experience.rb +1 -1
- data/lib/losant_rest/experience_domains.rb +1 -1
- data/lib/losant_rest/experience_group.rb +4 -0
- data/lib/losant_rest/experience_slugs.rb +1 -1
- data/lib/losant_rest/experience_version.rb +3 -3
- data/lib/losant_rest/experience_versions.rb +2 -2
- data/lib/losant_rest/experience_view.rb +4 -4
- data/lib/losant_rest/experience_views.rb +2 -2
- data/lib/losant_rest/file.rb +4 -4
- data/lib/losant_rest/files.rb +2 -2
- data/lib/losant_rest/flow_versions.rb +50 -0
- data/lib/losant_rest/instance.rb +46 -1
- data/lib/losant_rest/instance_api_token.rb +176 -0
- data/lib/losant_rest/instance_api_tokens.rb +136 -0
- data/lib/losant_rest/instance_member.rb +1 -1
- data/lib/losant_rest/instance_members.rb +2 -2
- data/lib/losant_rest/instance_org.rb +1 -1
- data/lib/losant_rest/instance_org_member.rb +1 -1
- data/lib/losant_rest/instance_org_members.rb +2 -2
- data/lib/losant_rest/instance_orgs.rb +1 -1
- data/lib/losant_rest/instances.rb +1 -1
- data/lib/losant_rest/user_api_token.rb +170 -0
- data/lib/losant_rest/user_api_tokens.rb +132 -0
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/apiToken.json +2 -1
- data/schemas/apiTokenPost.json +420 -0
- data/schemas/apiTokens.json +4 -2
- data/schemas/applicationDashboardPost.json +20 -16
- data/schemas/auditLog.json +4 -0
- data/schemas/auditLogFilter.json +4 -0
- data/schemas/auditLogs.json +4 -0
- data/schemas/bulkDeleteResponse.json +12 -0
- data/schemas/dashboard.json +20 -16
- data/schemas/dashboardPatch.json +20 -16
- data/schemas/dashboardPost.json +20 -16
- data/schemas/dashboardSendReport.json +4 -0
- data/schemas/dashboards.json +20 -16
- data/schemas/experienceGroup.json +6 -0
- data/schemas/experienceGroups.json +6 -0
- data/schemas/flowVersionsDeletePost.json +941 -0
- data/schemas/githubLogin.json +19 -1
- data/schemas/historicalSummary.json +3 -0
- data/schemas/instance.json +60 -0
- data/schemas/instanceOrgPost.json +166 -0
- data/schemas/instancePatch.json +67 -0
- data/schemas/instanceReportOptionsPost.json +1 -0
- data/schemas/notebook.json +15 -0
- data/schemas/notebooks.json +15 -0
- data/schemas/userCredentials.json +19 -1
- data/schemas/userPost.json +19 -1
- data/schemas/validateContextError.json +34 -0
- data/schemas/validateContextSuccess.json +34 -0
- metadata +15 -3
data/docs/application.md
CHANGED
@@ -350,7 +350,7 @@ puts result
|
|
350
350
|
#### Authentication
|
351
351
|
The client must be configured with a valid api access token to call this
|
352
352
|
action. The token must include at least one of the following scopes:
|
353
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, application.*, or application.get.
|
353
|
+
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, application.*, or application.get.
|
354
354
|
|
355
355
|
#### Available Parameters
|
356
356
|
|
@@ -391,7 +391,7 @@ puts result
|
|
391
391
|
#### Authentication
|
392
392
|
The client must be configured with a valid api access token to call this
|
393
393
|
action. The token must include at least one of the following scopes:
|
394
|
-
all.Application, all.Organization, all.User, application.*, or application.patch.
|
394
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, application.*, or application.patch.
|
395
395
|
|
396
396
|
#### Available Parameters
|
397
397
|
|
@@ -513,7 +513,7 @@ puts result
|
|
513
513
|
#### Authentication
|
514
514
|
The client must be configured with a valid api access token to call this
|
515
515
|
action. The token must include at least one of the following scopes:
|
516
|
-
all.Application, all.Organization, all.User, application.*, or application.patch.
|
516
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, application.*, or application.patch.
|
517
517
|
|
518
518
|
#### Available Parameters
|
519
519
|
|
@@ -592,7 +592,7 @@ puts result
|
|
592
592
|
#### Authentication
|
593
593
|
The client must be configured with a valid api access token to call this
|
594
594
|
action. The token must include at least one of the following scopes:
|
595
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, application.*, or application.get.
|
595
|
+
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, application.*, or application.get.
|
596
596
|
|
597
597
|
#### Available Parameters
|
598
598
|
|
@@ -631,7 +631,7 @@ puts result
|
|
631
631
|
#### Authentication
|
632
632
|
The client must be configured with a valid api access token to call this
|
633
633
|
action. The token must include at least one of the following scopes:
|
634
|
-
all.Application, all.Organization, all.User, application.*, or application.patch.
|
634
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, application.*, or application.patch.
|
635
635
|
|
636
636
|
#### Available Parameters
|
637
637
|
|
@@ -75,7 +75,7 @@ all.Application, all.Organization, all.User, applicationApiTokens.*, or applicat
|
|
75
75
|
| Name | Type | Required | Description | Default | Example |
|
76
76
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
77
77
|
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
78
|
-
| apiToken | [
|
78
|
+
| apiToken | [API Token Post](_schemas.md#api-token-post) | Y | API token information | | [API Token Post Example](_schemas.md#api-token-post-example) |
|
79
79
|
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
80
80
|
|
81
81
|
#### Successful Responses
|
data/docs/applications.md
CHANGED
@@ -25,7 +25,7 @@ puts result
|
|
25
25
|
#### Authentication
|
26
26
|
The client must be configured with a valid api access token to call this
|
27
27
|
action. The token must include at least one of the following scopes:
|
28
|
-
all.Organization, all.Organization.read, all.User, all.User.read, applications.*, or applications.get.
|
28
|
+
all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, applications.*, or applications.get.
|
29
29
|
|
30
30
|
#### Available Parameters
|
31
31
|
|
data/docs/dataTable.md
CHANGED
@@ -111,7 +111,7 @@ puts result
|
|
111
111
|
#### Authentication
|
112
112
|
The client must be configured with a valid api access token to call this
|
113
113
|
action. The token must include at least one of the following scopes:
|
114
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, dataTable.*, or dataTable.get.
|
114
|
+
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, dataTable.*, or dataTable.get.
|
115
115
|
|
116
116
|
#### Available Parameters
|
117
117
|
|
data/docs/dataTableRows.md
CHANGED
@@ -114,7 +114,7 @@ puts result
|
|
114
114
|
#### Authentication
|
115
115
|
The client must be configured with a valid api access token to call this
|
116
116
|
action. The token must include at least one of the following scopes:
|
117
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, dataTableRows.*, or dataTableRows.get.
|
117
|
+
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, dataTableRows.*, or dataTableRows.get.
|
118
118
|
|
119
119
|
#### Available Parameters
|
120
120
|
|
data/docs/dataTables.md
CHANGED
@@ -24,7 +24,7 @@ puts result
|
|
24
24
|
#### Authentication
|
25
25
|
The client must be configured with a valid api access token to call this
|
26
26
|
action. The token must include at least one of the following scopes:
|
27
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, dataTables.*, or dataTables.get.
|
27
|
+
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, dataTables.*, or dataTables.get.
|
28
28
|
|
29
29
|
#### Available Parameters
|
30
30
|
|
data/docs/devices.md
CHANGED
@@ -88,7 +88,7 @@ all.Application, all.Organization, all.User, devices.*, or devices.delete.
|
|
88
88
|
|
89
89
|
| Code | Type | Description |
|
90
90
|
| ---- | ---- | ----------- |
|
91
|
-
| 200 | [
|
91
|
+
| 200 | [Bulk Deletion Response](_schemas.md#bulk-deletion-response) | Object indicating number of devices deleted or failed |
|
92
92
|
| 202 | [Job Enqueued API Result](_schemas.md#job-enqueued-api-result) | If a job was enqueued for the devices to be deleted |
|
93
93
|
|
94
94
|
#### Error Responses
|
@@ -160,7 +160,7 @@ all.Application, all.Application.read, all.Device, all.Device.read, all.Organiza
|
|
160
160
|
| Name | Type | Required | Description | Default | Example |
|
161
161
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
162
162
|
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
163
|
-
| sortField | string | N | Field to sort the results by. Accepted values are: name, id, creationDate, lastUpdated | name | name |
|
163
|
+
| sortField | string | N | Field to sort the results by. Accepted values are: name, id, creationDate, lastUpdated, connectionStatus | name | name |
|
164
164
|
| sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
|
165
165
|
| page | string | N | Which page of results to return | 0 | 0 |
|
166
166
|
| perPage | string | N | How many items to return per page | 100 | 10 |
|
data/docs/experience.md
CHANGED
@@ -26,7 +26,7 @@ puts result
|
|
26
26
|
#### Authentication
|
27
27
|
The client must be configured with a valid api access token to call this
|
28
28
|
action. The token must include at least one of the following scopes:
|
29
|
-
all.Application, all.Organization, all.User, experience.*, or experience.bootstrap.
|
29
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, experience.*, or experience.bootstrap.
|
30
30
|
|
31
31
|
#### Available Parameters
|
32
32
|
|
data/docs/experienceDomains.md
CHANGED
@@ -24,7 +24,7 @@ puts result
|
|
24
24
|
#### Authentication
|
25
25
|
The client must be configured with a valid api access token to call this
|
26
26
|
action. The token must include at least one of the following scopes:
|
27
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, experienceDomains.*, or experienceDomains.get.
|
27
|
+
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, experienceDomains.*, or experienceDomains.get.
|
28
28
|
|
29
29
|
#### Available Parameters
|
30
30
|
|
data/docs/experienceGroup.md
CHANGED
@@ -75,6 +75,8 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
|
|
75
75
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
76
76
|
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
77
77
|
| experienceGroupId | string | Y | ID associated with the experience group | | 575ed78e7ae143cd83dc4aab |
|
78
|
+
| includeDirectDeviceCount | string | N | Whether or not to return count of devices associated directly with this group | false | true |
|
79
|
+
| includeTotalDeviceCount | string | N | Whether or not to return count of devices associated with this group or any of its descendents | false | true |
|
78
80
|
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
79
81
|
|
80
82
|
#### Successful Responses
|
data/docs/experienceSlugs.md
CHANGED
@@ -24,7 +24,7 @@ puts result
|
|
24
24
|
#### Authentication
|
25
25
|
The client must be configured with a valid api access token to call this
|
26
26
|
action. The token must include at least one of the following scopes:
|
27
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, experienceSlugs.*, or experienceSlugs.get.
|
27
|
+
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, experienceSlugs.*, or experienceSlugs.get.
|
28
28
|
|
29
29
|
#### Available Parameters
|
30
30
|
|
data/docs/experienceVersion.md
CHANGED
@@ -27,7 +27,7 @@ puts result
|
|
27
27
|
#### Authentication
|
28
28
|
The client must be configured with a valid api access token to call this
|
29
29
|
action. The token must include at least one of the following scopes:
|
30
|
-
all.Application, all.Organization, all.User, experienceVersion.*, or experienceVersion.delete.
|
30
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, experienceVersion.*, or experienceVersion.delete.
|
31
31
|
|
32
32
|
#### Available Parameters
|
33
33
|
|
@@ -67,7 +67,7 @@ puts result
|
|
67
67
|
#### Authentication
|
68
68
|
The client must be configured with a valid api access token to call this
|
69
69
|
action. The token must include at least one of the following scopes:
|
70
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, experienceVersion.*, or experienceVersion.get.
|
70
|
+
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, experienceVersion.*, or experienceVersion.get.
|
71
71
|
|
72
72
|
#### Available Parameters
|
73
73
|
|
@@ -108,7 +108,7 @@ puts result
|
|
108
108
|
#### Authentication
|
109
109
|
The client must be configured with a valid api access token to call this
|
110
110
|
action. The token must include at least one of the following scopes:
|
111
|
-
all.Application, all.Organization, all.User, experienceVersion.*, or experienceVersion.patch.
|
111
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, experienceVersion.*, or experienceVersion.patch.
|
112
112
|
|
113
113
|
#### Available Parameters
|
114
114
|
|
data/docs/experienceVersions.md
CHANGED
@@ -24,7 +24,7 @@ puts result
|
|
24
24
|
#### Authentication
|
25
25
|
The client must be configured with a valid api access token to call this
|
26
26
|
action. The token must include at least one of the following scopes:
|
27
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, experienceVersions.*, or experienceVersions.get.
|
27
|
+
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, experienceVersions.*, or experienceVersions.get.
|
28
28
|
|
29
29
|
#### Available Parameters
|
30
30
|
|
@@ -69,7 +69,7 @@ puts result
|
|
69
69
|
#### Authentication
|
70
70
|
The client must be configured with a valid api access token to call this
|
71
71
|
action. The token must include at least one of the following scopes:
|
72
|
-
all.Application, all.Organization, all.User, experienceVersions.*, or experienceVersions.post.
|
72
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, experienceVersions.*, or experienceVersions.post.
|
73
73
|
|
74
74
|
#### Available Parameters
|
75
75
|
|
data/docs/experienceView.md
CHANGED
@@ -28,7 +28,7 @@ puts result
|
|
28
28
|
#### Authentication
|
29
29
|
The client must be configured with a valid api access token to call this
|
30
30
|
action. The token must include at least one of the following scopes:
|
31
|
-
all.Application, all.Organization, all.User, experienceView.*, or experienceView.delete.
|
31
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, experienceView.*, or experienceView.delete.
|
32
32
|
|
33
33
|
#### Available Parameters
|
34
34
|
|
@@ -68,7 +68,7 @@ puts result
|
|
68
68
|
#### Authentication
|
69
69
|
The client must be configured with a valid api access token to call this
|
70
70
|
action. The token must include at least one of the following scopes:
|
71
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, experienceView.*, or experienceView.get.
|
71
|
+
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, experienceView.*, or experienceView.get.
|
72
72
|
|
73
73
|
#### Available Parameters
|
74
74
|
|
@@ -109,7 +109,7 @@ puts result
|
|
109
109
|
#### Authentication
|
110
110
|
The client must be configured with a valid api access token to call this
|
111
111
|
action. The token must include at least one of the following scopes:
|
112
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, experienceView.*, or experienceView.linkedResources.
|
112
|
+
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, experienceView.*, or experienceView.linkedResources.
|
113
113
|
|
114
114
|
#### Available Parameters
|
115
115
|
|
@@ -152,7 +152,7 @@ puts result
|
|
152
152
|
#### Authentication
|
153
153
|
The client must be configured with a valid api access token to call this
|
154
154
|
action. The token must include at least one of the following scopes:
|
155
|
-
all.Application, all.Organization, all.User, experienceView.*, or experienceView.patch.
|
155
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, experienceView.*, or experienceView.patch.
|
156
156
|
|
157
157
|
#### Available Parameters
|
158
158
|
|
data/docs/experienceViews.md
CHANGED
@@ -24,7 +24,7 @@ puts result
|
|
24
24
|
#### Authentication
|
25
25
|
The client must be configured with a valid api access token to call this
|
26
26
|
action. The token must include at least one of the following scopes:
|
27
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, experienceViews.*, or experienceViews.get.
|
27
|
+
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, experienceViews.*, or experienceViews.get.
|
28
28
|
|
29
29
|
#### Available Parameters
|
30
30
|
|
@@ -71,7 +71,7 @@ puts result
|
|
71
71
|
#### Authentication
|
72
72
|
The client must be configured with a valid api access token to call this
|
73
73
|
action. The token must include at least one of the following scopes:
|
74
|
-
all.Application, all.Organization, all.User, experienceViews.*, or experienceViews.post.
|
74
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, experienceViews.*, or experienceViews.post.
|
75
75
|
|
76
76
|
#### Available Parameters
|
77
77
|
|
data/docs/file.md
CHANGED
@@ -29,7 +29,7 @@ puts result
|
|
29
29
|
#### Authentication
|
30
30
|
The client must be configured with a valid api access token to call this
|
31
31
|
action. The token must include at least one of the following scopes:
|
32
|
-
all.Application, all.Organization, all.User, file.*, or file.delete.
|
32
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, file.*, or file.delete.
|
33
33
|
|
34
34
|
#### Available Parameters
|
35
35
|
|
@@ -69,7 +69,7 @@ puts result
|
|
69
69
|
#### Authentication
|
70
70
|
The client must be configured with a valid api access token to call this
|
71
71
|
action. The token must include at least one of the following scopes:
|
72
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, file.*, or file.get.
|
72
|
+
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, file.*, or file.get.
|
73
73
|
|
74
74
|
#### Available Parameters
|
75
75
|
|
@@ -109,7 +109,7 @@ puts result
|
|
109
109
|
#### Authentication
|
110
110
|
The client must be configured with a valid api access token to call this
|
111
111
|
action. The token must include at least one of the following scopes:
|
112
|
-
all.Application, all.Organization, all.User, file.*, or file.move.
|
112
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, file.*, or file.move.
|
113
113
|
|
114
114
|
#### Available Parameters
|
115
115
|
|
@@ -152,7 +152,7 @@ puts result
|
|
152
152
|
#### Authentication
|
153
153
|
The client must be configured with a valid api access token to call this
|
154
154
|
action. The token must include at least one of the following scopes:
|
155
|
-
all.Application, all.Organization, all.User, file.*, or file.patch.
|
155
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, file.*, or file.patch.
|
156
156
|
|
157
157
|
#### Available Parameters
|
158
158
|
|
@@ -194,7 +194,7 @@ puts result
|
|
194
194
|
#### Authentication
|
195
195
|
The client must be configured with a valid api access token to call this
|
196
196
|
action. The token must include at least one of the following scopes:
|
197
|
-
all.Application, all.Organization, all.User, file.*, or file.upload.
|
197
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, file.*, or file.upload.
|
198
198
|
|
199
199
|
#### Available Parameters
|
200
200
|
|
data/docs/files.md
CHANGED
@@ -24,7 +24,7 @@ puts result
|
|
24
24
|
#### Authentication
|
25
25
|
The client must be configured with a valid api access token to call this
|
26
26
|
action. The token must include at least one of the following scopes:
|
27
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, files.*, or files.get.
|
27
|
+
all.Application, all.Application.cli, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.cli, all.User.read, files.*, or files.get.
|
28
28
|
|
29
29
|
#### Available Parameters
|
30
30
|
|
@@ -72,7 +72,7 @@ puts result
|
|
72
72
|
#### Authentication
|
73
73
|
The client must be configured with a valid api access token to call this
|
74
74
|
action. The token must include at least one of the following scopes:
|
75
|
-
all.Application, all.Organization, all.User, files.*, or files.post.
|
75
|
+
all.Application, all.Application.cli, all.Organization, all.User, all.User.cli, files.*, or files.post.
|
76
76
|
|
77
77
|
#### Available Parameters
|
78
78
|
|
data/docs/flowVersions.md
CHANGED
@@ -6,11 +6,55 @@ parameters and the potential responses.
|
|
6
6
|
|
7
7
|
##### Contents
|
8
8
|
|
9
|
+
* [Delete](#delete)
|
9
10
|
* [Get](#get)
|
10
11
|
* [Post](#post)
|
11
12
|
|
12
13
|
<br/>
|
13
14
|
|
15
|
+
## Delete
|
16
|
+
|
17
|
+
Delete flow versions
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
result = client.flow_versions.delete(
|
21
|
+
applicationId: my_application_id,
|
22
|
+
flowId: my_flow_id,
|
23
|
+
options: my_options)
|
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.Application, all.Organization, all.User, flowVersions.*, or flowVersions.delete.
|
32
|
+
|
33
|
+
#### Available Parameters
|
34
|
+
|
35
|
+
| Name | Type | Required | Description | Default | Example |
|
36
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
37
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
38
|
+
| flowId | string | Y | ID associated with the flow | | 575ed18f7ae143cd83dc4aa6 |
|
39
|
+
| options | [Flow Versions Delete Post](_schemas.md#flow-versions-delete-post) | Y | Object containing flow version deletion options | | [Flow Versions Delete Post Example](_schemas.md#flow-versions-delete-post-example) |
|
40
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
41
|
+
|
42
|
+
#### Successful Responses
|
43
|
+
|
44
|
+
| Code | Type | Description |
|
45
|
+
| ---- | ---- | ----------- |
|
46
|
+
| 200 | [Bulk Deletion Response](_schemas.md#bulk-deletion-response) | Object indicating number of flow versions deleted or failed |
|
47
|
+
| 202 | [Job Enqueued API Result](_schemas.md#job-enqueued-api-result) | If a job was enqueued for the flow versions to be deleted |
|
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 application was not found |
|
55
|
+
|
56
|
+
<br/>
|
57
|
+
|
14
58
|
## Get
|
15
59
|
|
16
60
|
Returns the flow versions for a flow
|
data/docs/instance.md
CHANGED
@@ -9,6 +9,7 @@ parameters and the potential responses.
|
|
9
9
|
* [Generate Report](#generate-report)
|
10
10
|
* [Get](#get)
|
11
11
|
* [Historical Summaries](#historical-summaries)
|
12
|
+
* [Patch](#patch)
|
12
13
|
|
13
14
|
<br/>
|
14
15
|
|
@@ -126,3 +127,40 @@ all.Instance, all.Instance.read, all.User, all.User.read, instance.*, or instanc
|
|
126
127
|
| Code | Type | Description |
|
127
128
|
| ---- | ---- | ----------- |
|
128
129
|
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
130
|
+
|
131
|
+
<br/>
|
132
|
+
|
133
|
+
## Patch
|
134
|
+
|
135
|
+
Updates information about an instance
|
136
|
+
|
137
|
+
```ruby
|
138
|
+
result = client.instance.patch(instanceId: my_instance_id)
|
139
|
+
|
140
|
+
puts result
|
141
|
+
```
|
142
|
+
|
143
|
+
#### Authentication
|
144
|
+
The client must be configured with a valid api access token to call this
|
145
|
+
action. The token must include at least one of the following scopes:
|
146
|
+
all.Instance, all.User, instance.*, or instance.patch.
|
147
|
+
|
148
|
+
#### Available Parameters
|
149
|
+
|
150
|
+
| Name | Type | Required | Description | Default | Example |
|
151
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
152
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
|
153
|
+
| instance | [Instance Patch](_schemas.md#instance-patch) | N | Updated instance information | | [Instance Patch Example](_schemas.md#instance-patch-example) |
|
154
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
155
|
+
|
156
|
+
#### Successful Responses
|
157
|
+
|
158
|
+
| Code | Type | Description |
|
159
|
+
| ---- | ---- | ----------- |
|
160
|
+
| 200 | [Instance](_schemas.md#instance) | The updated instance object |
|
161
|
+
|
162
|
+
#### Error Responses
|
163
|
+
|
164
|
+
| Code | Type | Description |
|
165
|
+
| ---- | ---- | ----------- |
|
166
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
@@ -0,0 +1,133 @@
|
|
1
|
+
# Instance Api Token Actions
|
2
|
+
|
3
|
+
Details on the various actions that can be performed on the
|
4
|
+
Instance Api Token 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 API Token
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
result = client.instance_api_token.delete(
|
21
|
+
instanceId: my_instance_id,
|
22
|
+
apiTokenId: my_api_token_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, instanceApiToken.*, or instanceApiToken.delete.
|
31
|
+
|
32
|
+
#### Available Parameters
|
33
|
+
|
34
|
+
| Name | Type | Required | Description | Default | Example |
|
35
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
36
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec7417ae143cd83dc4a96 |
|
37
|
+
| apiTokenId | string | Y | ID associated with the API token | | 575ec7417ae143cd83dc4a95 |
|
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 API token 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 API token was not found |
|
52
|
+
|
53
|
+
<br/>
|
54
|
+
|
55
|
+
## Get
|
56
|
+
|
57
|
+
Retrieves information on an API token
|
58
|
+
|
59
|
+
```ruby
|
60
|
+
result = client.instance_api_token.get(
|
61
|
+
instanceId: my_instance_id,
|
62
|
+
apiTokenId: my_api_token_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, instanceApiToken.*, or instanceApiToken.get.
|
71
|
+
|
72
|
+
#### Available Parameters
|
73
|
+
|
74
|
+
| Name | Type | Required | Description | Default | Example |
|
75
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
76
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec7417ae143cd83dc4a96 |
|
77
|
+
| apiTokenId | string | Y | ID associated with the API token | | 575ec7417ae143cd83dc4a95 |
|
78
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
79
|
+
|
80
|
+
#### Successful Responses
|
81
|
+
|
82
|
+
| Code | Type | Description |
|
83
|
+
| ---- | ---- | ----------- |
|
84
|
+
| 200 | [API Token](_schemas.md#api-token) | API token information |
|
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 API token was not found |
|
92
|
+
|
93
|
+
<br/>
|
94
|
+
|
95
|
+
## Patch
|
96
|
+
|
97
|
+
Updates information about an API token
|
98
|
+
|
99
|
+
```ruby
|
100
|
+
result = client.instance_api_token.patch(
|
101
|
+
instanceId: my_instance_id,
|
102
|
+
apiTokenId: my_api_token_id,
|
103
|
+
apiToken: my_api_token)
|
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, instanceApiToken.*, or instanceApiToken.patch.
|
112
|
+
|
113
|
+
#### Available Parameters
|
114
|
+
|
115
|
+
| Name | Type | Required | Description | Default | Example |
|
116
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
117
|
+
| instanceId | string | Y | ID associated with the instance | | 575ec7417ae143cd83dc4a96 |
|
118
|
+
| apiTokenId | string | Y | ID associated with the API token | | 575ec7417ae143cd83dc4a95 |
|
119
|
+
| apiToken | [API Token Patch](_schemas.md#api-token-patch) | Y | Object containing new properties of the API token | | [API Token Patch Example](_schemas.md#api-token-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 | [API Token](_schemas.md#api-token) | Updated API token 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 API token was not found |
|