losant_rest 1.3.3 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.markdownlint.json +11 -0
- data/README.md +139 -231
- data/docs/_schemas.md +1036 -393
- data/docs/dataTableRows.md +41 -0
- data/docs/deviceRecipe.md +1 -0
- data/docs/{experienceTemplate.md → experienceDomain.md} +25 -25
- data/docs/experienceDomains.md +85 -0
- data/docs/experienceView.md +130 -0
- data/docs/{experienceTemplates.md → experienceViews.md} +15 -15
- data/docs/me.md +36 -0
- data/lib/losant_rest.rb +4 -2
- data/lib/losant_rest/client.rb +18 -10
- data/lib/losant_rest/data_table_rows.rb +48 -0
- data/lib/losant_rest/device_recipe.rb +1 -0
- data/lib/losant_rest/{experience_template.rb → experience_domain.rb} +26 -26
- data/lib/losant_rest/experience_domains.rb +124 -0
- data/lib/losant_rest/experience_view.rb +174 -0
- data/lib/losant_rest/{experience_templates.rb → experience_views.rb} +16 -16
- data/lib/losant_rest/me.rb +44 -0
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/application.json +34 -2
- data/schemas/applicationApiTokenPost.json +14 -7
- data/schemas/applicationPatch.json +29 -0
- data/schemas/applications.json +34 -2
- data/schemas/auditLog.json +2 -1
- data/schemas/auditLogFilter.json +2 -1
- data/schemas/auditLogs.json +2 -1
- data/schemas/changePassword.json +28 -0
- data/schemas/dataTableRowsExport.json +36 -0
- data/schemas/deviceRecipeBulkCreateEnqueued.json +9 -0
- data/schemas/deviceRecipeBulkCreatePost.json +5 -0
- data/schemas/experienceDomain.json +41 -0
- data/schemas/experienceDomainPatch.json +27 -0
- data/schemas/experienceDomainPost.json +30 -0
- data/schemas/experienceDomains.json +61 -0
- data/schemas/experienceEndpoint.json +11 -0
- data/schemas/experienceEndpointPatch.json +11 -0
- data/schemas/experienceEndpointPost.json +11 -0
- data/schemas/experienceEndpoints.json +11 -0
- data/schemas/experienceGroup.json +11 -0
- data/schemas/experienceGroupPatch.json +11 -0
- data/schemas/experienceGroupPost.json +11 -0
- data/schemas/experienceGroups.json +11 -0
- data/schemas/{experienceTemplate.json → experienceView.json} +8 -3
- data/schemas/{experienceTemplatePatch.json → experienceViewPatch.json} +1 -1
- data/schemas/{experienceTemplatePost.json → experienceViewPost.json} +3 -3
- data/schemas/{experienceTemplates.json → experienceViews.json} +11 -6
- data/schemas/me.json +10 -4
- data/schemas/org.json +10 -4
- data/schemas/orgs.json +10 -4
- data/schemas/solutionUser.json +4 -0
- data/schemas/solutionUserPatch.json +4 -0
- data/schemas/solutionUserPost.json +4 -0
- data/schemas/solutionUsers.json +4 -0
- metadata +22 -10
data/docs/dataTableRows.md
CHANGED
@@ -6,12 +6,53 @@ parameters and the potential responses.
|
|
6
6
|
|
7
7
|
##### Contents
|
8
8
|
|
9
|
+
* [Export](#export)
|
9
10
|
* [Get](#get)
|
10
11
|
* [Post](#post)
|
11
12
|
* [Query](#query)
|
12
13
|
|
13
14
|
<br/>
|
14
15
|
|
16
|
+
## Export
|
17
|
+
|
18
|
+
Request an export of the data table's data
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
result = client.data_table_rows.export(
|
22
|
+
applicationId: my_application_id,
|
23
|
+
dataTableId: my_data_table_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.Application, all.Organization, all.User, dataTableRows.*, or dataTableRows.export.
|
32
|
+
|
33
|
+
#### Available Parameters
|
34
|
+
|
35
|
+
| Name | Type | Required | Description | Default | Example |
|
36
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
37
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
38
|
+
| dataTableId | string | Y | ID associated with the data table | | 575ed78e7ae143cd83dc4aab |
|
39
|
+
| exportData | [Data Table Export](_schemas.md#data-table-export) | N | Object containing export specifications | | [Data Table Export Example](_schemas.md#data-table-export-example) |
|
40
|
+
|
41
|
+
#### Successful Responses
|
42
|
+
|
43
|
+
| Code | Type | Description |
|
44
|
+
| ---- | ---- | ----------- |
|
45
|
+
| 200 | [Success](_schemas.md#success) | If request was successfully queued |
|
46
|
+
|
47
|
+
#### Error Responses
|
48
|
+
|
49
|
+
| Code | Type | Description |
|
50
|
+
| ---- | ---- | ----------- |
|
51
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
52
|
+
| 404 | [Error](_schemas.md#error) | Error if data table was not found |
|
53
|
+
|
54
|
+
<br/>
|
55
|
+
|
15
56
|
## Get
|
16
57
|
|
17
58
|
Returns the rows for a data table
|
data/docs/deviceRecipe.md
CHANGED
@@ -44,6 +44,7 @@ all.Application, all.Organization, all.User, deviceRecipe.*, or deviceRecipe.bul
|
|
44
44
|
| Code | Type | Description |
|
45
45
|
| ---- | ---- | ----------- |
|
46
46
|
| 201 | [Device Recipe Bulk Create](_schemas.md#device-recipe-bulk-create) | If devices were successfully created |
|
47
|
+
| 202 | [Device Recipe Bulk Create Enqueue](_schemas.md#device-recipe-bulk-create-enqueue) | If devices were enqueued to be created |
|
47
48
|
|
48
49
|
#### Error Responses
|
49
50
|
|
@@ -1,7 +1,7 @@
|
|
1
|
-
# Experience
|
1
|
+
# Experience Domain Actions
|
2
2
|
|
3
3
|
Details on the various actions that can be performed on the
|
4
|
-
Experience
|
4
|
+
Experience Domain resource, including the expected
|
5
5
|
parameters and the potential responses.
|
6
6
|
|
7
7
|
##### Contents
|
@@ -14,12 +14,12 @@ parameters and the potential responses.
|
|
14
14
|
|
15
15
|
## Delete
|
16
16
|
|
17
|
-
Deletes an experience
|
17
|
+
Deletes an experience domain
|
18
18
|
|
19
19
|
```ruby
|
20
|
-
result = client.
|
20
|
+
result = client.experience_domain.delete(
|
21
21
|
applicationId: my_application_id,
|
22
|
-
|
22
|
+
experienceDomainId: my_experience_domain_id)
|
23
23
|
|
24
24
|
puts result
|
25
25
|
```
|
@@ -27,38 +27,38 @@ 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,
|
30
|
+
all.Application, all.Organization, all.User, experienceDomain.*, or experienceDomain.delete.
|
31
31
|
|
32
32
|
#### Available Parameters
|
33
33
|
|
34
34
|
| Name | Type | Required | Description | Default | Example |
|
35
35
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
36
36
|
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
37
|
-
|
|
37
|
+
| experienceDomainId | string | Y | ID associated with the experience domain | | 575ed78e7ae143cd83dc4aab |
|
38
38
|
|
39
39
|
#### Successful Responses
|
40
40
|
|
41
41
|
| Code | Type | Description |
|
42
42
|
| ---- | ---- | ----------- |
|
43
|
-
| 200 | [Success](_schemas.md#success) | If experience
|
43
|
+
| 200 | [Success](_schemas.md#success) | If experience domain was successfully deleted |
|
44
44
|
|
45
45
|
#### Error Responses
|
46
46
|
|
47
47
|
| Code | Type | Description |
|
48
48
|
| ---- | ---- | ----------- |
|
49
49
|
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
50
|
-
| 404 | [Error](_schemas.md#error) | Error if experience
|
50
|
+
| 404 | [Error](_schemas.md#error) | Error if experience domain was not found |
|
51
51
|
|
52
52
|
<br/>
|
53
53
|
|
54
54
|
## Get
|
55
55
|
|
56
|
-
Retrieves information on an experience
|
56
|
+
Retrieves information on an experience domain
|
57
57
|
|
58
58
|
```ruby
|
59
|
-
result = client.
|
59
|
+
result = client.experience_domain.get(
|
60
60
|
applicationId: my_application_id,
|
61
|
-
|
61
|
+
experienceDomainId: my_experience_domain_id)
|
62
62
|
|
63
63
|
puts result
|
64
64
|
```
|
@@ -66,39 +66,39 @@ puts result
|
|
66
66
|
#### Authentication
|
67
67
|
The client must be configured with a valid api access token to call this
|
68
68
|
action. The token must include at least one of the following scopes:
|
69
|
-
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read,
|
69
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, experienceDomain.*, or experienceDomain.get.
|
70
70
|
|
71
71
|
#### Available Parameters
|
72
72
|
|
73
73
|
| Name | Type | Required | Description | Default | Example |
|
74
74
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
75
75
|
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
76
|
-
|
|
76
|
+
| experienceDomainId | string | Y | ID associated with the experience domain | | 575ed78e7ae143cd83dc4aab |
|
77
77
|
|
78
78
|
#### Successful Responses
|
79
79
|
|
80
80
|
| Code | Type | Description |
|
81
81
|
| ---- | ---- | ----------- |
|
82
|
-
| 200 | [Experience
|
82
|
+
| 200 | [Experience Domain](_schemas.md#experience-domain) | Experience domain information |
|
83
83
|
|
84
84
|
#### Error Responses
|
85
85
|
|
86
86
|
| Code | Type | Description |
|
87
87
|
| ---- | ---- | ----------- |
|
88
88
|
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
89
|
-
| 404 | [Error](_schemas.md#error) | Error if experience
|
89
|
+
| 404 | [Error](_schemas.md#error) | Error if experience domain was not found |
|
90
90
|
|
91
91
|
<br/>
|
92
92
|
|
93
93
|
## Patch
|
94
94
|
|
95
|
-
Updates information about an experience
|
95
|
+
Updates information about an experience domain
|
96
96
|
|
97
97
|
```ruby
|
98
|
-
result = client.
|
98
|
+
result = client.experience_domain.patch(
|
99
99
|
applicationId: my_application_id,
|
100
|
-
|
101
|
-
|
100
|
+
experienceDomainId: my_experience_domain_id,
|
101
|
+
experienceDomain: my_experience_domain)
|
102
102
|
|
103
103
|
puts result
|
104
104
|
```
|
@@ -106,25 +106,25 @@ puts result
|
|
106
106
|
#### Authentication
|
107
107
|
The client must be configured with a valid api access token to call this
|
108
108
|
action. The token must include at least one of the following scopes:
|
109
|
-
all.Application, all.Organization, all.User,
|
109
|
+
all.Application, all.Organization, all.User, experienceDomain.*, or experienceDomain.patch.
|
110
110
|
|
111
111
|
#### Available Parameters
|
112
112
|
|
113
113
|
| Name | Type | Required | Description | Default | Example |
|
114
114
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
115
115
|
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
116
|
-
|
|
117
|
-
|
|
116
|
+
| experienceDomainId | string | Y | ID associated with the experience domain | | 575ed78e7ae143cd83dc4aab |
|
117
|
+
| experienceDomain | [Experience Domain Patch](_schemas.md#experience-domain-patch) | Y | Object containing new properties of the experience domain | | [Experience Domain Patch Example](_schemas.md#experience-domain-patch-example) |
|
118
118
|
|
119
119
|
#### Successful Responses
|
120
120
|
|
121
121
|
| Code | Type | Description |
|
122
122
|
| ---- | ---- | ----------- |
|
123
|
-
| 200 | [Experience
|
123
|
+
| 200 | [Experience Domain](_schemas.md#experience-domain) | Updated experience domain information |
|
124
124
|
|
125
125
|
#### Error Responses
|
126
126
|
|
127
127
|
| Code | Type | Description |
|
128
128
|
| ---- | ---- | ----------- |
|
129
129
|
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
130
|
-
| 404 | [Error](_schemas.md#error) | Error if experience
|
130
|
+
| 404 | [Error](_schemas.md#error) | Error if experience domain was not found |
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# Experience Domains Actions
|
2
|
+
|
3
|
+
Details on the various actions that can be performed on the
|
4
|
+
Experience Domains 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 the experience domains for an application
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
result = client.experience_domains.get(applicationId: my_application_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.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, experienceDomains.*, or experienceDomains.get.
|
28
|
+
|
29
|
+
#### Available Parameters
|
30
|
+
|
31
|
+
| Name | Type | Required | Description | Default | Example |
|
32
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
33
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
34
|
+
|
35
|
+
#### Successful Responses
|
36
|
+
|
37
|
+
| Code | Type | Description |
|
38
|
+
| ---- | ---- | ----------- |
|
39
|
+
| 200 | [Experience Domains](_schemas.md#experience-domains) | Collection of experience domains |
|
40
|
+
|
41
|
+
#### Error Responses
|
42
|
+
|
43
|
+
| Code | Type | Description |
|
44
|
+
| ---- | ---- | ----------- |
|
45
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
46
|
+
| 404 | [Error](_schemas.md#error) | Error if application was not found |
|
47
|
+
|
48
|
+
<br/>
|
49
|
+
|
50
|
+
## Post
|
51
|
+
|
52
|
+
Create a new experience domain for an application
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
result = client.experience_domains.post(
|
56
|
+
applicationId: my_application_id,
|
57
|
+
experienceDomain: my_experience_domain)
|
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.Application, all.Organization, all.User, experienceDomains.*, or experienceDomains.post.
|
66
|
+
|
67
|
+
#### Available Parameters
|
68
|
+
|
69
|
+
| Name | Type | Required | Description | Default | Example |
|
70
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
71
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
72
|
+
| experienceDomain | [Experience Domain Post](_schemas.md#experience-domain-post) | Y | New experience domain information | | [Experience Domain Post Example](_schemas.md#experience-domain-post-example) |
|
73
|
+
|
74
|
+
#### Successful Responses
|
75
|
+
|
76
|
+
| Code | Type | Description |
|
77
|
+
| ---- | ---- | ----------- |
|
78
|
+
| 201 | [Experience Domain](_schemas.md#experience-domain) | Successfully created experience domain |
|
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 application was not found |
|
@@ -0,0 +1,130 @@
|
|
1
|
+
# Experience View Actions
|
2
|
+
|
3
|
+
Details on the various actions that can be performed on the
|
4
|
+
Experience View 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 experience view
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
result = client.experience_view.delete(
|
21
|
+
applicationId: my_application_id,
|
22
|
+
experienceViewId: my_experience_view_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.Application, all.Organization, all.User, experienceView.*, or experienceView.delete.
|
31
|
+
|
32
|
+
#### Available Parameters
|
33
|
+
|
34
|
+
| Name | Type | Required | Description | Default | Example |
|
35
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
36
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
37
|
+
| experienceViewId | string | Y | ID associated with the experience view | | 575ed78e7ae143cd83dc4aab |
|
38
|
+
|
39
|
+
#### Successful Responses
|
40
|
+
|
41
|
+
| Code | Type | Description |
|
42
|
+
| ---- | ---- | ----------- |
|
43
|
+
| 200 | [Success](_schemas.md#success) | If experience view was successfully deleted |
|
44
|
+
|
45
|
+
#### Error Responses
|
46
|
+
|
47
|
+
| Code | Type | Description |
|
48
|
+
| ---- | ---- | ----------- |
|
49
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
50
|
+
| 404 | [Error](_schemas.md#error) | Error if experience view was not found |
|
51
|
+
|
52
|
+
<br/>
|
53
|
+
|
54
|
+
## Get
|
55
|
+
|
56
|
+
Retrieves information on an experience view
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
result = client.experience_view.get(
|
60
|
+
applicationId: my_application_id,
|
61
|
+
experienceViewId: my_experience_view_id)
|
62
|
+
|
63
|
+
puts result
|
64
|
+
```
|
65
|
+
|
66
|
+
#### Authentication
|
67
|
+
The client must be configured with a valid api access token to call this
|
68
|
+
action. The token must include at least one of the following scopes:
|
69
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, experienceView.*, or experienceView.get.
|
70
|
+
|
71
|
+
#### Available Parameters
|
72
|
+
|
73
|
+
| Name | Type | Required | Description | Default | Example |
|
74
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
75
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
76
|
+
| experienceViewId | string | Y | ID associated with the experience view | | 575ed78e7ae143cd83dc4aab |
|
77
|
+
|
78
|
+
#### Successful Responses
|
79
|
+
|
80
|
+
| Code | Type | Description |
|
81
|
+
| ---- | ---- | ----------- |
|
82
|
+
| 200 | [Experience View](_schemas.md#experience-view) | Experience view information |
|
83
|
+
|
84
|
+
#### Error Responses
|
85
|
+
|
86
|
+
| Code | Type | Description |
|
87
|
+
| ---- | ---- | ----------- |
|
88
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
89
|
+
| 404 | [Error](_schemas.md#error) | Error if experience view was not found |
|
90
|
+
|
91
|
+
<br/>
|
92
|
+
|
93
|
+
## Patch
|
94
|
+
|
95
|
+
Updates information about an experience view
|
96
|
+
|
97
|
+
```ruby
|
98
|
+
result = client.experience_view.patch(
|
99
|
+
applicationId: my_application_id,
|
100
|
+
experienceViewId: my_experience_view_id,
|
101
|
+
experienceView: my_experience_view)
|
102
|
+
|
103
|
+
puts result
|
104
|
+
```
|
105
|
+
|
106
|
+
#### Authentication
|
107
|
+
The client must be configured with a valid api access token to call this
|
108
|
+
action. The token must include at least one of the following scopes:
|
109
|
+
all.Application, all.Organization, all.User, experienceView.*, or experienceView.patch.
|
110
|
+
|
111
|
+
#### Available Parameters
|
112
|
+
|
113
|
+
| Name | Type | Required | Description | Default | Example |
|
114
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
115
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
116
|
+
| experienceViewId | string | Y | ID associated with the experience view | | 575ed78e7ae143cd83dc4aab |
|
117
|
+
| experienceView | [Experience View Patch](_schemas.md#experience-view-patch) | Y | Object containing new properties of the experience view | | [Experience View Patch Example](_schemas.md#experience-view-patch-example) |
|
118
|
+
|
119
|
+
#### Successful Responses
|
120
|
+
|
121
|
+
| Code | Type | Description |
|
122
|
+
| ---- | ---- | ----------- |
|
123
|
+
| 200 | [Experience View](_schemas.md#experience-view) | Updated experience view information |
|
124
|
+
|
125
|
+
#### Error Responses
|
126
|
+
|
127
|
+
| Code | Type | Description |
|
128
|
+
| ---- | ---- | ----------- |
|
129
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
130
|
+
| 404 | [Error](_schemas.md#error) | Error if experience view was not found |
|
@@ -1,7 +1,7 @@
|
|
1
|
-
# Experience
|
1
|
+
# Experience Views Actions
|
2
2
|
|
3
3
|
Details on the various actions that can be performed on the
|
4
|
-
Experience
|
4
|
+
Experience Views resource, including the expected
|
5
5
|
parameters and the potential responses.
|
6
6
|
|
7
7
|
##### Contents
|
@@ -13,10 +13,10 @@ parameters and the potential responses.
|
|
13
13
|
|
14
14
|
## Get
|
15
15
|
|
16
|
-
Returns the experience
|
16
|
+
Returns the experience views for an application
|
17
17
|
|
18
18
|
```ruby
|
19
|
-
result = client.
|
19
|
+
result = client.experience_views.get(applicationId: my_application_id)
|
20
20
|
|
21
21
|
puts result
|
22
22
|
```
|
@@ -24,26 +24,26 @@ 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,
|
27
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, experienceViews.*, or experienceViews.get.
|
28
28
|
|
29
29
|
#### Available Parameters
|
30
30
|
|
31
31
|
| Name | Type | Required | Description | Default | Example |
|
32
32
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
33
33
|
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
34
|
-
| sortField | string | N | Field to sort the results by. Accepted values are: id, creationDate, name | name | name |
|
34
|
+
| sortField | string | N | Field to sort the results by. Accepted values are: id, creationDate, name, lastUpdated | name | name |
|
35
35
|
| sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
|
36
36
|
| page | string | N | Which page of results to return | 0 | 0 |
|
37
37
|
| perPage | string | N | How many items to return per page | 1000 | 10 |
|
38
38
|
| filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name | | name |
|
39
|
-
| filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my*
|
40
|
-
|
|
39
|
+
| filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my*view |
|
40
|
+
| viewType | string | N | Filter views to those only of the given type. Accepted values are: page, layout, component | | page |
|
41
41
|
|
42
42
|
#### Successful Responses
|
43
43
|
|
44
44
|
| Code | Type | Description |
|
45
45
|
| ---- | ---- | ----------- |
|
46
|
-
| 200 | [Experience
|
46
|
+
| 200 | [Experience Views](_schemas.md#experience-views) | Collection of experience views |
|
47
47
|
|
48
48
|
#### Error Responses
|
49
49
|
|
@@ -56,12 +56,12 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
|
|
56
56
|
|
57
57
|
## Post
|
58
58
|
|
59
|
-
Create a new experience
|
59
|
+
Create a new experience view for an application
|
60
60
|
|
61
61
|
```ruby
|
62
|
-
result = client.
|
62
|
+
result = client.experience_views.post(
|
63
63
|
applicationId: my_application_id,
|
64
|
-
|
64
|
+
experienceView: my_experience_view)
|
65
65
|
|
66
66
|
puts result
|
67
67
|
```
|
@@ -69,20 +69,20 @@ 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,
|
72
|
+
all.Application, all.Organization, all.User, experienceViews.*, or experienceViews.post.
|
73
73
|
|
74
74
|
#### Available Parameters
|
75
75
|
|
76
76
|
| Name | Type | Required | Description | Default | Example |
|
77
77
|
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
78
78
|
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
79
|
-
|
|
79
|
+
| experienceView | [Experience View Post](_schemas.md#experience-view-post) | Y | New experience view information | | [Experience View Post Example](_schemas.md#experience-view-post-example) |
|
80
80
|
|
81
81
|
#### Successful Responses
|
82
82
|
|
83
83
|
| Code | Type | Description |
|
84
84
|
| ---- | ---- | ----------- |
|
85
|
-
| 201 | [Experience
|
85
|
+
| 201 | [Experience View](_schemas.md#experience-view) | Successfully created experience view |
|
86
86
|
|
87
87
|
#### Error Responses
|
88
88
|
|