losant_rest 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +29 -0
  3. data/docs/_schemas.md +1805 -267
  4. data/docs/auth.md +1 -1
  5. data/docs/experienceEndpoint.md +130 -0
  6. data/docs/experienceEndpoints.md +131 -0
  7. data/docs/experienceGroup.md +130 -0
  8. data/docs/experienceGroups.md +91 -0
  9. data/docs/experienceUser.md +130 -0
  10. data/docs/experienceUsers.md +92 -0
  11. data/docs/flows.md +1 -0
  12. data/lib/losant_rest/client.rb +26 -2
  13. data/lib/losant_rest/experience_endpoint.rb +174 -0
  14. data/lib/losant_rest/experience_endpoints.rb +186 -0
  15. data/lib/losant_rest/experience_group.rb +174 -0
  16. data/lib/losant_rest/experience_groups.rb +136 -0
  17. data/lib/losant_rest/experience_user.rb +174 -0
  18. data/lib/losant_rest/experience_users.rb +138 -0
  19. data/lib/losant_rest/flows.rb +2 -0
  20. data/lib/losant_rest/version.rb +1 -1
  21. data/lib/losant_rest.rb +6 -0
  22. data/schemas/application.json +30 -5
  23. data/schemas/applicationApiTokenPost.json +22 -0
  24. data/schemas/applicationKey.json +4 -2
  25. data/schemas/applicationKeyPost.json +4 -2
  26. data/schemas/applicationKeys.json +4 -2
  27. data/schemas/applicationPatch.json +13 -0
  28. data/schemas/applicationPost.json +13 -0
  29. data/schemas/applications.json +30 -5
  30. data/schemas/auditLog.json +3 -0
  31. data/schemas/auditLogFilter.json +3 -0
  32. data/schemas/auditLogs.json +3 -0
  33. data/schemas/authedDevice.json +1 -2
  34. data/schemas/dashboard.json +4 -2
  35. data/schemas/dashboardPatch.json +4 -2
  36. data/schemas/dashboardPost.json +4 -2
  37. data/schemas/dashboards.json +4 -2
  38. data/schemas/device.json +5 -4
  39. data/schemas/devicePatch.json +5 -4
  40. data/schemas/devicePost.json +5 -4
  41. data/schemas/deviceRecipe.json +5 -4
  42. data/schemas/deviceRecipePatch.json +5 -4
  43. data/schemas/deviceRecipePost.json +5 -4
  44. data/schemas/deviceRecipes.json +5 -4
  45. data/schemas/deviceTagFilter.json +2 -1
  46. data/schemas/devices.json +5 -4
  47. data/schemas/experienceEndpoint.json +74 -0
  48. data/schemas/experienceEndpointPatch.json +46 -0
  49. data/schemas/experienceEndpointPost.json +50 -0
  50. data/schemas/experienceEndpointStats.json +21 -0
  51. data/schemas/experienceEndpoints.json +45 -0
  52. data/schemas/experienceGroup.json +51 -0
  53. data/schemas/experienceGroupPatch.json +32 -0
  54. data/schemas/experienceGroupPost.json +35 -0
  55. data/schemas/experienceGroups.json +93 -0
  56. data/schemas/experienceUser.json +83 -0
  57. data/schemas/experienceUserPatch.json +48 -0
  58. data/schemas/experienceUserPost.json +52 -0
  59. data/schemas/experienceUsers.json +129 -0
  60. data/schemas/flow.json +34 -10
  61. data/schemas/flowLog.json +2 -19
  62. data/schemas/flowPatch.json +34 -10
  63. data/schemas/flowPost.json +34 -10
  64. data/schemas/flowTriggerFilter.json +19 -0
  65. data/schemas/flows.json +34 -10
  66. data/schemas/lastValueQuery.json +4 -2
  67. data/schemas/me.json +39 -7
  68. data/schemas/multiDeviceCommand.json +4 -2
  69. data/schemas/org.json +41 -9
  70. data/schemas/orgs.json +41 -9
  71. data/schemas/payloadCounts.json +8 -0
  72. data/schemas/resourceTransfer.json +6 -3
  73. data/schemas/solution.json +3 -1
  74. data/schemas/solutionUser.json +2 -1
  75. data/schemas/solutionUserPatch.json +2 -1
  76. data/schemas/solutionUserPost.json +2 -1
  77. data/schemas/solutionUsers.json +2 -1
  78. data/schemas/solutions.json +3 -1
  79. data/schemas/timeSeriesQuery.json +4 -2
  80. metadata +28 -2
data/docs/auth.md CHANGED
@@ -64,7 +64,7 @@ No api access token is required to call this action.
64
64
 
65
65
  | Name | Type | Required | Description | Default | Example |
66
66
  | ---- | ---- | -------- | ----------- | ------- | ------- |
67
- | credentials | [User Credentials](_schemas.md#user-credentials) | Y | Solution user authentication credentials. The included api access token has the scope 'all.SolutionUser'. | | [User Credentials Example](_schemas.md#user-credentials-example) |
67
+ | credentials | [Solution User Credentials](_schemas.md#solution-user-credentials) | Y | Solution user authentication credentials. The included api access token has the scope 'all.SolutionUser'. | | [Solution User Credentials Example](_schemas.md#solution-user-credentials-example) |
68
68
 
69
69
  #### Successful Responses
70
70
 
@@ -0,0 +1,130 @@
1
+ # Experience Endpoint Actions
2
+
3
+ Details on the various actions that can be performed on the
4
+ Experience Endpoint 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 endpoint
18
+
19
+ ```ruby
20
+ result = client.experience_endpoint.delete(
21
+ applicationId: my_application_id,
22
+ experienceEndpointId: my_experience_endpoint_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, experienceEndpoint.*, or experienceEndpoint.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
+ | experienceEndpointId | string | Y | ID associated with the experience endpoint | | 575ed78e7ae143cd83dc4aab |
38
+
39
+ #### Successful Responses
40
+
41
+ | Code | Type | Description |
42
+ | ---- | ---- | ----------- |
43
+ | 200 | [Success](_schemas.md#success) | If experience endpoint 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 endpoint was not found |
51
+
52
+ <br/>
53
+
54
+ ## Get
55
+
56
+ Retrieves information on an experience endpoint
57
+
58
+ ```ruby
59
+ result = client.experience_endpoint.get(
60
+ applicationId: my_application_id,
61
+ experienceEndpointId: my_experience_endpoint_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, experienceEndpoint.*, or experienceEndpoint.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
+ | experienceEndpointId | string | Y | ID associated with the experience endpoint | | 575ed78e7ae143cd83dc4aab |
77
+
78
+ #### Successful Responses
79
+
80
+ | Code | Type | Description |
81
+ | ---- | ---- | ----------- |
82
+ | 200 | [Experience Endpoint](_schemas.md#experience-endpoint) | Experience endpoint 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 endpoint was not found |
90
+
91
+ <br/>
92
+
93
+ ## Patch
94
+
95
+ Updates information about an experience endpoint
96
+
97
+ ```ruby
98
+ result = client.experience_endpoint.patch(
99
+ applicationId: my_application_id,
100
+ experienceEndpointId: my_experience_endpoint_id,
101
+ experienceEndpoint: my_experience_endpoint)
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, experienceEndpoint.*, or experienceEndpoint.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
+ | experienceEndpointId | string | Y | ID associated with the experience endpoint | | 575ed78e7ae143cd83dc4aab |
117
+ | experienceEndpoint | [Experience Endpoint Patch](_schemas.md#experience-endpoint-patch) | Y | Object containing new properties of the experience endpoint | | [Experience Endpoint Patch Example](_schemas.md#experience-endpoint-patch-example) |
118
+
119
+ #### Successful Responses
120
+
121
+ | Code | Type | Description |
122
+ | ---- | ---- | ----------- |
123
+ | 200 | [Experience Endpoint](_schemas.md#experience-endpoint) | Updated experience endpoint 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 endpoint was not found |
@@ -0,0 +1,131 @@
1
+ # Experience Endpoints Actions
2
+
3
+ Details on the various actions that can be performed on the
4
+ Experience Endpoints resource, including the expected
5
+ parameters and the potential responses.
6
+
7
+ ##### Contents
8
+
9
+ * [Get](#get)
10
+ * [Post](#post)
11
+ * [Stats](#stats)
12
+
13
+ <br/>
14
+
15
+ ## Get
16
+
17
+ Returns the experience endpoints for an application
18
+
19
+ ```ruby
20
+ result = client.experience_endpoints.get(applicationId: my_application_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, experienceEndpoints.*, or experienceEndpoints.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
+ | sortField | string | N | Field to sort the results by. Accepted values are: order, method, route, id, creationDate, requestCount | order | position |
36
+ | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
37
+ | filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: method, route | | email |
38
+ | filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my*route |
39
+ | experienceGroupId | string | N | Filter endpoints to those only in the specified group | | 575ec8687ae143cd83dc4a97 |
40
+ | requestCountDuration | string | N | If set, a count of recent requests is included on each endpoint for the duration requested (milliseconds) | | 86400000 |
41
+
42
+ #### Successful Responses
43
+
44
+ | Code | Type | Description |
45
+ | ---- | ---- | ----------- |
46
+ | 200 | [Experience Endpoints](_schemas.md#experience-endpoints) | Collection of experience endpoints |
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 application was not found |
54
+
55
+ <br/>
56
+
57
+ ## Post
58
+
59
+ Create a new experience endpoint for an application
60
+
61
+ ```ruby
62
+ result = client.experience_endpoints.post(
63
+ applicationId: my_application_id,
64
+ experienceEndpoint: my_experience_endpoint)
65
+
66
+ puts result
67
+ ```
68
+
69
+ #### Authentication
70
+ The client must be configured with a valid api access token to call this
71
+ action. The token must include at least one of the following scopes:
72
+ all.Application, all.Organization, all.User, experienceEndpoints.*, or experienceEndpoints.post.
73
+
74
+ #### Available Parameters
75
+
76
+ | Name | Type | Required | Description | Default | Example |
77
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
78
+ | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
79
+ | experienceEndpoint | [Experience Endpoint Post](_schemas.md#experience-endpoint-post) | Y | New experience endpoint information | | [Experience Endpoint Post Example](_schemas.md#experience-endpoint-post-example) |
80
+
81
+ #### Successful Responses
82
+
83
+ | Code | Type | Description |
84
+ | ---- | ---- | ----------- |
85
+ | 201 | [Experience Endpoint](_schemas.md#experience-endpoint) | Successfully created experience endpoint |
86
+
87
+ #### Error Responses
88
+
89
+ | Code | Type | Description |
90
+ | ---- | ---- | ----------- |
91
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
92
+ | 404 | [Error](_schemas.md#error) | Error if application was not found |
93
+
94
+ <br/>
95
+
96
+ ## Stats
97
+
98
+ Get statistics about endpoint requests
99
+
100
+ ```ruby
101
+ result = client.experience_endpoints.stats(applicationId: my_application_id)
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.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, experienceEndpoints.*, or experienceEndpoints.stats.
110
+
111
+ #### Available Parameters
112
+
113
+ | Name | Type | Required | Description | Default | Example |
114
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
115
+ | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
116
+ | statGrouping | string | N | Field to group the statistics by. Accepted values are: statusCode, endpointId | statusCode | statusCode |
117
+ | duration | string | N | Duration in milliseconds | 86400000 | 86400000 |
118
+ | resolution | string | N | Resolution in milliseconds | 3600000 | 3600000 |
119
+
120
+ #### Successful Responses
121
+
122
+ | Code | Type | Description |
123
+ | ---- | ---- | ----------- |
124
+ | 200 | [Experience Endpoint Stats](_schemas.md#experience-endpoint-stats) | Statistics for endpoint requests |
125
+
126
+ #### Error Responses
127
+
128
+ | Code | Type | Description |
129
+ | ---- | ---- | ----------- |
130
+ | 400 | [Error](_schemas.md#error) | Error if malformed request |
131
+ | 404 | [Error](_schemas.md#error) | Error if application was not found |
@@ -0,0 +1,130 @@
1
+ # Experience Group Actions
2
+
3
+ Details on the various actions that can be performed on the
4
+ Experience Group 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 group
18
+
19
+ ```ruby
20
+ result = client.experience_group.delete(
21
+ applicationId: my_application_id,
22
+ experienceGroupId: my_experience_group_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, experienceGroup.*, or experienceGroup.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
+ | experienceGroupId | string | Y | ID associated with the experience group | | 575ed78e7ae143cd83dc4aab |
38
+
39
+ #### Successful Responses
40
+
41
+ | Code | Type | Description |
42
+ | ---- | ---- | ----------- |
43
+ | 200 | [Success](_schemas.md#success) | If experience group 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 group was not found |
51
+
52
+ <br/>
53
+
54
+ ## Get
55
+
56
+ Retrieves information on an experience group
57
+
58
+ ```ruby
59
+ result = client.experience_group.get(
60
+ applicationId: my_application_id,
61
+ experienceGroupId: my_experience_group_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, experienceGroup.*, or experienceGroup.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
+ | experienceGroupId | string | Y | ID associated with the experience group | | 575ed78e7ae143cd83dc4aab |
77
+
78
+ #### Successful Responses
79
+
80
+ | Code | Type | Description |
81
+ | ---- | ---- | ----------- |
82
+ | 200 | [Experience Group](_schemas.md#experience-group) | Experience group 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 group was not found |
90
+
91
+ <br/>
92
+
93
+ ## Patch
94
+
95
+ Updates information about an experience group
96
+
97
+ ```ruby
98
+ result = client.experience_group.patch(
99
+ applicationId: my_application_id,
100
+ experienceGroupId: my_experience_group_id,
101
+ experienceGroup: my_experience_group)
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, experienceGroup.*, or experienceGroup.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
+ | experienceGroupId | string | Y | ID associated with the experience group | | 575ed78e7ae143cd83dc4aab |
117
+ | experienceGroup | [Experience Group Patch](_schemas.md#experience-group-patch) | Y | Object containing new properties of the experience group | | [Experience Group Patch Example](_schemas.md#experience-group-patch-example) |
118
+
119
+ #### Successful Responses
120
+
121
+ | Code | Type | Description |
122
+ | ---- | ---- | ----------- |
123
+ | 200 | [Experience Group](_schemas.md#experience-group) | Updated experience group 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 group was not found |
@@ -0,0 +1,91 @@
1
+ # Experience Groups Actions
2
+
3
+ Details on the various actions that can be performed on the
4
+ Experience Groups 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 groups for an application
17
+
18
+ ```ruby
19
+ result = client.experience_groups.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, experienceGroups.*, or experienceGroups.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
+ | sortField | string | N | Field to sort the results by. Accepted values are: name, id, creationDate | name | name |
35
+ | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
36
+ | page | string | N | Which page of results to return | 0 | 0 |
37
+ | perPage | string | N | How many items to return per page | 1000 | 10 |
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*group |
40
+
41
+ #### Successful Responses
42
+
43
+ | Code | Type | Description |
44
+ | ---- | ---- | ----------- |
45
+ | 200 | [Experience Groups](_schemas.md#experience-groups) | Collection of experience groups |
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 application was not found |
53
+
54
+ <br/>
55
+
56
+ ## Post
57
+
58
+ Create a new experience group for an application
59
+
60
+ ```ruby
61
+ result = client.experience_groups.post(
62
+ applicationId: my_application_id,
63
+ experienceGroup: my_experience_group)
64
+
65
+ puts result
66
+ ```
67
+
68
+ #### Authentication
69
+ The client must be configured with a valid api access token to call this
70
+ action. The token must include at least one of the following scopes:
71
+ all.Application, all.Organization, all.User, experienceGroups.*, or experienceGroups.post.
72
+
73
+ #### Available Parameters
74
+
75
+ | Name | Type | Required | Description | Default | Example |
76
+ | ---- | ---- | -------- | ----------- | ------- | ------- |
77
+ | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
78
+ | experienceGroup | [Experience Group Post](_schemas.md#experience-group-post) | Y | New experience group information | | [Experience Group Post Example](_schemas.md#experience-group-post-example) |
79
+
80
+ #### Successful Responses
81
+
82
+ | Code | Type | Description |
83
+ | ---- | ---- | ----------- |
84
+ | 201 | [Experience Group](_schemas.md#experience-group) | Successfully created experience group |
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 application was not found |
@@ -0,0 +1,130 @@
1
+ # Experience User Actions
2
+
3
+ Details on the various actions that can be performed on the
4
+ Experience User 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 user
18
+
19
+ ```ruby
20
+ result = client.experience_user.delete(
21
+ applicationId: my_application_id,
22
+ experienceUserId: my_experience_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.Application, all.Organization, all.User, experienceUser.*, or experienceUser.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
+ | experienceUserId | string | Y | ID associated with the experience user | | 575ed78e7ae143cd83dc4aab |
38
+
39
+ #### Successful Responses
40
+
41
+ | Code | Type | Description |
42
+ | ---- | ---- | ----------- |
43
+ | 200 | [Success](_schemas.md#success) | If experience user 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 user was not found |
51
+
52
+ <br/>
53
+
54
+ ## Get
55
+
56
+ Retrieves information on an experience user
57
+
58
+ ```ruby
59
+ result = client.experience_user.get(
60
+ applicationId: my_application_id,
61
+ experienceUserId: my_experience_user_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, experienceUser.*, or experienceUser.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
+ | experienceUserId | string | Y | ID associated with the experience user | | 575ed78e7ae143cd83dc4aab |
77
+
78
+ #### Successful Responses
79
+
80
+ | Code | Type | Description |
81
+ | ---- | ---- | ----------- |
82
+ | 200 | [Experience User](_schemas.md#experience-user) | Experience user 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 user was not found |
90
+
91
+ <br/>
92
+
93
+ ## Patch
94
+
95
+ Updates information about an experience user
96
+
97
+ ```ruby
98
+ result = client.experience_user.patch(
99
+ applicationId: my_application_id,
100
+ experienceUserId: my_experience_user_id,
101
+ experienceUser: my_experience_user)
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, experienceUser.*, or experienceUser.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
+ | experienceUserId | string | Y | ID associated with the experience user | | 575ed78e7ae143cd83dc4aab |
117
+ | experienceUser | [Experience User Patch](_schemas.md#experience-user-patch) | Y | Object containing new properties of the experience user | | [Experience User Patch Example](_schemas.md#experience-user-patch-example) |
118
+
119
+ #### Successful Responses
120
+
121
+ | Code | Type | Description |
122
+ | ---- | ---- | ----------- |
123
+ | 200 | [Experience User](_schemas.md#experience-user) | Updated experience user 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 user was not found |