kinde_sdk 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +103 -19
- data/kinde_api/README.md +58 -23
- data/kinde_api/docs/AddOrganizationUsersRequest.md +1 -1
- data/kinde_api/docs/AddOrganizationUsersRequestUsersInner.md +22 -0
- data/kinde_api/docs/{AddOrganizationUsers200Response.md → AddOrganizationUsersResponse.md} +2 -2
- data/kinde_api/docs/Application.md +20 -0
- data/kinde_api/docs/CallbacksApi.md +219 -0
- data/kinde_api/docs/ConnectedAppsApi.md +9 -9
- data/kinde_api/docs/CreateOrganizationRequest.md +11 -1
- data/kinde_api/docs/CreateOrganizationResponse.md +22 -0
- data/kinde_api/docs/CreateOrganizationResponseOrganization.md +18 -0
- data/kinde_api/docs/CreateOrganizationUserRoleRequest.md +18 -0
- data/kinde_api/docs/CreatePermissionRequest.md +22 -0
- data/kinde_api/docs/CreateRoleRequest.md +24 -0
- data/kinde_api/docs/CreateSubscriberSuccessResponse.md +18 -0
- data/kinde_api/docs/CreateSubscriberSuccessResponseSubscriber.md +18 -0
- data/kinde_api/docs/{CreateUser200Response.md → CreateUserResponse.md} +2 -2
- data/kinde_api/docs/EnvironmentsApi.md +71 -4
- data/kinde_api/docs/FeatureFlagsApi.md +9 -11
- data/kinde_api/docs/GetApplicationsResponse.md +24 -0
- data/kinde_api/docs/GetEnvironmentFeatureFlagsResponse.md +24 -0
- data/kinde_api/docs/GetOrganizationFeatureFlagsResponse.md +22 -0
- data/kinde_api/docs/GetOrganizationFeatureFlagsResponseFeatureFlagsValue.md +20 -0
- data/kinde_api/docs/{GetOrganizations200Response.md → GetOrganizationsResponse.md} +2 -2
- data/kinde_api/docs/GetOrganizationsUserRolesResponse.md +24 -0
- data/kinde_api/docs/{GetOrganizationUsers200Response.md → GetOrganizationsUsersResponse.md} +2 -2
- data/kinde_api/docs/GetRedirectCallbackUrlsResponse.md +18 -0
- data/kinde_api/docs/OrganizationUser.md +3 -1
- data/kinde_api/docs/OrganizationUserRole.md +22 -0
- data/kinde_api/docs/OrganizationsApi.md +494 -59
- data/kinde_api/docs/Permissions.md +22 -0
- data/kinde_api/docs/PermissionsApi.md +229 -0
- data/kinde_api/docs/RedirectCallbackUrls.md +18 -0
- data/kinde_api/docs/Roles.md +22 -0
- data/kinde_api/docs/RolesApi.md +229 -0
- data/kinde_api/docs/SubscribersApi.md +229 -0
- data/kinde_api/docs/UpdateOrganizationRequest.md +28 -0
- data/kinde_api/docs/UpdateOrganizationUsersRequest.md +18 -0
- data/kinde_api/docs/UpdateOrganizationUsersRequestUsersInner.md +24 -0
- data/kinde_api/docs/UpdateOrganizationUsersResponse.md +24 -0
- data/kinde_api/docs/UpdateUserRequest.md +3 -1
- data/kinde_api/docs/User.md +15 -1
- data/kinde_api/docs/UserIdentityResult.md +1 -3
- data/kinde_api/docs/UserProfile.md +3 -1
- data/kinde_api/docs/UserProfileV2.md +6 -2
- data/kinde_api/docs/UsersApi.md +31 -259
- data/kinde_api/docs/{GetUsers200Response.md → UsersResponse.md} +2 -2
- data/kinde_api/lib/kinde_api/api/callbacks_api.rb +221 -0
- data/kinde_api/lib/kinde_api/api/connected_apps_api.rb +8 -8
- data/kinde_api/lib/kinde_api/api/environments_api.rb +61 -4
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +8 -15
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +492 -57
- data/kinde_api/lib/kinde_api/api/permissions_api.rb +226 -0
- data/kinde_api/lib/kinde_api/api/roles_api.rb +226 -0
- data/kinde_api/lib/kinde_api/api/subscribers_api.rb +228 -0
- data/kinde_api/lib/kinde_api/api/users_api.rb +30 -233
- data/kinde_api/lib/kinde_api/api_client.rb +1 -13
- data/kinde_api/lib/kinde_api/configuration.rb +3 -77
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +2 -2
- data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +242 -0
- data/kinde_api/lib/kinde_api/models/{add_organization_users200_response.rb → add_organization_users_response.rb} +3 -3
- data/kinde_api/lib/kinde_api/models/application.rb +226 -0
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +54 -4
- data/kinde_api/lib/kinde_api/models/{remove_organization_users200_response.rb → create_organization_response.rb} +19 -12
- data/kinde_api/lib/kinde_api/models/{create_organization201_response.rb → create_organization_response_organization.rb} +8 -18
- data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +218 -0
- data/kinde_api/lib/kinde_api/models/create_permission_request.rb +238 -0
- data/kinde_api/lib/kinde_api/models/create_role_request.rb +248 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +217 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +218 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +34 -0
- data/kinde_api/lib/kinde_api/models/{create_user200_response.rb → create_user_response.rb} +3 -3
- data/kinde_api/lib/kinde_api/models/get_applications_response.rb +249 -0
- data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +250 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +240 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +260 -0
- data/kinde_api/lib/kinde_api/models/{get_organizations200_response.rb → get_organizations_response.rb} +3 -3
- data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +249 -0
- data/kinde_api/lib/kinde_api/models/{get_organization_users200_response.rb → get_organizations_users_response.rb} +3 -3
- data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +220 -0
- data/kinde_api/lib/kinde_api/models/organization_user.rb +15 -4
- data/kinde_api/lib/kinde_api/models/organization_user_role.rb +235 -0
- data/kinde_api/lib/kinde_api/models/permissions.rb +238 -0
- data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +220 -0
- data/kinde_api/lib/kinde_api/models/roles.rb +238 -0
- data/kinde_api/lib/kinde_api/models/update_organization_request.rb +268 -0
- data/kinde_api/lib/kinde_api/models/{remove_organization_users_request.rb → update_organization_users_request.rb} +5 -5
- data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +252 -0
- data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +250 -0
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +14 -4
- data/kinde_api/lib/kinde_api/models/user.rb +79 -5
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +4 -14
- data/kinde_api/lib/kinde_api/models/user_profile.rb +14 -4
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +25 -5
- data/kinde_api/lib/kinde_api/models/{get_users200_response.rb → users_response.rb} +3 -3
- data/kinde_api/lib/kinde_api.rb +32 -8
- data/kinde_api/spec/api/callbacks_api_spec.rb +73 -0
- data/kinde_api/spec/api/connected_apps_api_spec.rb +1 -1
- data/kinde_api/spec/api/environments_api_spec.rb +11 -0
- data/kinde_api/spec/api/feature_flags_api_spec.rb +1 -2
- data/kinde_api/spec/api/organizations_api_spec.rb +93 -14
- data/kinde_api/spec/api/permissions_api_spec.rb +74 -0
- data/kinde_api/spec/api/roles_api_spec.rb +74 -0
- data/kinde_api/spec/api/subscribers_api_spec.rb +76 -0
- data/kinde_api/spec/api/users_api_spec.rb +6 -47
- data/kinde_api/spec/api_client_spec.rb +0 -12
- data/kinde_api/spec/models/add_organization_users_request_users_inner_spec.rb +46 -0
- data/kinde_api/spec/models/{add_organization_users200_response_spec.rb → add_organization_users_response_spec.rb} +6 -6
- data/kinde_api/spec/models/{remove_organization_users200_response_spec.rb → application_spec.rb} +8 -8
- data/kinde_api/spec/models/create_organization_request_spec.rb +30 -0
- data/kinde_api/spec/models/create_organization_response_organization_spec.rb +34 -0
- data/kinde_api/spec/models/{create_organization201_response_spec.rb → create_organization_response_spec.rb} +13 -7
- data/kinde_api/spec/models/create_organization_user_role_request_spec.rb +34 -0
- data/kinde_api/spec/models/create_permission_request_spec.rb +46 -0
- data/kinde_api/spec/models/create_role_request_spec.rb +52 -0
- data/kinde_api/spec/models/create_subscriber_success_response_spec.rb +34 -0
- data/kinde_api/spec/models/create_subscriber_success_response_subscriber_spec.rb +34 -0
- data/kinde_api/spec/models/create_user_request_identities_inner_spec.rb +4 -0
- data/kinde_api/spec/models/{create_user200_response_spec.rb → create_user_response_spec.rb} +6 -6
- data/kinde_api/spec/models/get_applications_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_environment_feature_flags_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_organization_feature_flags_response_feature_flags_value_spec.rb +44 -0
- data/kinde_api/spec/models/get_organization_feature_flags_response_spec.rb +46 -0
- data/kinde_api/spec/models/{get_organizations200_response_spec.rb → get_organizations_response_spec.rb} +6 -6
- data/kinde_api/spec/models/get_organizations_user_roles_response_spec.rb +52 -0
- data/kinde_api/spec/models/{get_organization_users200_response_spec.rb → get_organizations_users_response_spec.rb} +6 -6
- data/kinde_api/spec/models/get_redirect_callback_urls_response_spec.rb +34 -0
- data/kinde_api/spec/models/organization_user_role_spec.rb +46 -0
- data/kinde_api/spec/models/organization_user_spec.rb +6 -0
- data/kinde_api/spec/models/permissions_spec.rb +46 -0
- data/kinde_api/spec/models/redirect_callback_urls_spec.rb +34 -0
- data/kinde_api/spec/models/roles_spec.rb +46 -0
- data/kinde_api/spec/models/update_organization_request_spec.rb +64 -0
- data/kinde_api/spec/models/{remove_organization_users_request_spec.rb → update_organization_users_request_spec.rb} +6 -6
- data/kinde_api/spec/models/update_organization_users_request_users_inner_spec.rb +52 -0
- data/kinde_api/spec/models/update_organization_users_response_spec.rb +52 -0
- data/kinde_api/spec/models/update_user_request_spec.rb +6 -0
- data/kinde_api/spec/models/user_identity_result_spec.rb +0 -6
- data/kinde_api/spec/models/user_profile_spec.rb +6 -0
- data/kinde_api/spec/models/user_profile_v2_spec.rb +12 -0
- data/kinde_api/spec/models/user_spec.rb +42 -0
- data/kinde_api/spec/models/{get_users200_response_spec.rb → users_response_spec.rb} +6 -6
- data/kinde_sdk.gemspec +1 -1
- data/lib/kinde_sdk/client/feature_flags.rb +64 -0
- data/lib/kinde_sdk/client/permissions.rb +20 -0
- data/lib/kinde_sdk/client.rb +33 -18
- data/lib/kinde_sdk/configuration.rb +0 -2
- data/lib/kinde_sdk/version.rb +1 -1
- data/lib/kinde_sdk.rb +27 -12
- data/spec/kinde_sdk_spec.rb +131 -5
- data/spec/spec_helper.rb +2 -0
- metadata +134 -36
- data/kinde_api/docs/CreateOrganization201Response.md +0 -20
- data/kinde_api/docs/RemoveOrganizationUsers200Response.md +0 -20
- data/kinde_api/docs/RemoveOrganizationUsersRequest.md +0 -18
@@ -4,22 +4,28 @@ All URIs are relative to *https://app.kinde.com*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**add_organization_users**](OrganizationsApi.md#add_organization_users) | **POST** /api/v1/
|
7
|
+
| [**add_organization_users**](OrganizationsApi.md#add_organization_users) | **POST** /api/v1/organizations/{org_code}/users | Add Organization Users |
|
8
8
|
| [**create_organization**](OrganizationsApi.md#create_organization) | **POST** /api/v1/organization | Create Organization |
|
9
|
+
| [**create_organization_user_role**](OrganizationsApi.md#create_organization_user_role) | **POST** /api/v1/organizations/{org_code}/users/{user_id}/roles | Add Organization User Role |
|
9
10
|
| [**delete_organization_feature_flag_override**](OrganizationsApi.md#delete_organization_feature_flag_override) | **DELETE** /api/v1/organizations/{org_code}/feature_flags/{feature_flag_key} | Delete organization feature flag override |
|
10
11
|
| [**delete_organization_feature_flag_overrides**](OrganizationsApi.md#delete_organization_feature_flag_overrides) | **DELETE** /api/v1/organizations/{org_code}/feature_flags | Delete all organization feature flag overrides |
|
12
|
+
| [**delete_organization_user_role**](OrganizationsApi.md#delete_organization_user_role) | **DELETE** /api/v1/organizations/{org_code}/users/{user_id}/roles/{role_id} | Delete Organization User Role |
|
11
13
|
| [**get_organization**](OrganizationsApi.md#get_organization) | **GET** /api/v1/organization | Get Organization |
|
12
|
-
| [**
|
14
|
+
| [**get_organization_feature_flags**](OrganizationsApi.md#get_organization_feature_flags) | **GET** /api/v1/organizations/{org_code}/feature_flags | List organization feature flags |
|
15
|
+
| [**get_organization_user_roles**](OrganizationsApi.md#get_organization_user_roles) | **GET** /api/v1/organizations/{org_code}/users/{user_id}/roles | List Organization User Roles |
|
16
|
+
| [**get_organization_users**](OrganizationsApi.md#get_organization_users) | **GET** /api/v1/organizations/{org_code}/users | List Organization Users |
|
13
17
|
| [**get_organizations**](OrganizationsApi.md#get_organizations) | **GET** /api/v1/organizations | List Organizations |
|
14
|
-
| [**
|
18
|
+
| [**remove_organization_user**](OrganizationsApi.md#remove_organization_user) | **DELETE** /api/v1/organizations/{org_code}/users/{user_id} | Remove Organization User |
|
19
|
+
| [**update_organization**](OrganizationsApi.md#update_organization) | **PATCH** /api/v1/organization/{org_code} | Update Organization |
|
15
20
|
| [**update_organization_feature_flag_override**](OrganizationsApi.md#update_organization_feature_flag_override) | **PATCH** /api/v1/organizations/{org_code}/feature_flags/{feature_flag_key} | Update organization feature flag override |
|
21
|
+
| [**update_organization_users**](OrganizationsApi.md#update_organization_users) | **PATCH** /api/v1/organizations/{org_code}/users | Update organization users |
|
16
22
|
|
17
23
|
|
18
24
|
## add_organization_users
|
19
25
|
|
20
|
-
> <
|
26
|
+
> <AddOrganizationUsersResponse> add_organization_users(org_code, opts)
|
21
27
|
|
22
|
-
|
28
|
+
Add Organization Users
|
23
29
|
|
24
30
|
Add existing users to an organization.
|
25
31
|
|
@@ -35,14 +41,14 @@ KindeApi.configure do |config|
|
|
35
41
|
end
|
36
42
|
|
37
43
|
api_instance = KindeApi::OrganizationsApi.new
|
44
|
+
org_code = 'org_code_example' # String | The organization's code.
|
38
45
|
opts = {
|
39
|
-
code: 'code_example', # String | The organization's code.
|
40
46
|
add_organization_users_request: KindeApi::AddOrganizationUsersRequest.new # AddOrganizationUsersRequest |
|
41
47
|
}
|
42
48
|
|
43
49
|
begin
|
44
|
-
#
|
45
|
-
result = api_instance.add_organization_users(opts)
|
50
|
+
# Add Organization Users
|
51
|
+
result = api_instance.add_organization_users(org_code, opts)
|
46
52
|
p result
|
47
53
|
rescue KindeApi::ApiError => e
|
48
54
|
puts "Error when calling OrganizationsApi->add_organization_users: #{e}"
|
@@ -53,15 +59,15 @@ end
|
|
53
59
|
|
54
60
|
This returns an Array which contains the response data, status code and headers.
|
55
61
|
|
56
|
-
> <Array(<
|
62
|
+
> <Array(<AddOrganizationUsersResponse>, Integer, Hash)> add_organization_users_with_http_info(org_code, opts)
|
57
63
|
|
58
64
|
```ruby
|
59
65
|
begin
|
60
|
-
#
|
61
|
-
data, status_code, headers = api_instance.add_organization_users_with_http_info(opts)
|
66
|
+
# Add Organization Users
|
67
|
+
data, status_code, headers = api_instance.add_organization_users_with_http_info(org_code, opts)
|
62
68
|
p status_code # => 2xx
|
63
69
|
p headers # => { ... }
|
64
|
-
p data # => <
|
70
|
+
p data # => <AddOrganizationUsersResponse>
|
65
71
|
rescue KindeApi::ApiError => e
|
66
72
|
puts "Error when calling OrganizationsApi->add_organization_users_with_http_info: #{e}"
|
67
73
|
end
|
@@ -71,12 +77,12 @@ end
|
|
71
77
|
|
72
78
|
| Name | Type | Description | Notes |
|
73
79
|
| ---- | ---- | ----------- | ----- |
|
74
|
-
| **
|
80
|
+
| **org_code** | **String** | The organization's code. | |
|
75
81
|
| **add_organization_users_request** | [**AddOrganizationUsersRequest**](AddOrganizationUsersRequest.md) | | [optional] |
|
76
82
|
|
77
83
|
### Return type
|
78
84
|
|
79
|
-
[**
|
85
|
+
[**AddOrganizationUsersResponse**](AddOrganizationUsersResponse.md)
|
80
86
|
|
81
87
|
### Authorization
|
82
88
|
|
@@ -85,12 +91,12 @@ end
|
|
85
91
|
### HTTP request headers
|
86
92
|
|
87
93
|
- **Content-Type**: application/json
|
88
|
-
- **Accept**: application/json
|
94
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
89
95
|
|
90
96
|
|
91
97
|
## create_organization
|
92
98
|
|
93
|
-
> <
|
99
|
+
> <CreateOrganizationResponse> create_organization(opts)
|
94
100
|
|
95
101
|
Create Organization
|
96
102
|
|
@@ -125,7 +131,7 @@ end
|
|
125
131
|
|
126
132
|
This returns an Array which contains the response data, status code and headers.
|
127
133
|
|
128
|
-
> <Array(<
|
134
|
+
> <Array(<CreateOrganizationResponse>, Integer, Hash)> create_organization_with_http_info(opts)
|
129
135
|
|
130
136
|
```ruby
|
131
137
|
begin
|
@@ -133,7 +139,7 @@ begin
|
|
133
139
|
data, status_code, headers = api_instance.create_organization_with_http_info(opts)
|
134
140
|
p status_code # => 2xx
|
135
141
|
p headers # => { ... }
|
136
|
-
p data # => <
|
142
|
+
p data # => <CreateOrganizationResponse>
|
137
143
|
rescue KindeApi::ApiError => e
|
138
144
|
puts "Error when calling OrganizationsApi->create_organization_with_http_info: #{e}"
|
139
145
|
end
|
@@ -147,7 +153,7 @@ end
|
|
147
153
|
|
148
154
|
### Return type
|
149
155
|
|
150
|
-
[**
|
156
|
+
[**CreateOrganizationResponse**](CreateOrganizationResponse.md)
|
151
157
|
|
152
158
|
### Authorization
|
153
159
|
|
@@ -156,7 +162,80 @@ end
|
|
156
162
|
### HTTP request headers
|
157
163
|
|
158
164
|
- **Content-Type**: application/json
|
159
|
-
- **Accept**: application/json
|
165
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
166
|
+
|
167
|
+
|
168
|
+
## create_organization_user_role
|
169
|
+
|
170
|
+
> <SuccessResponse> create_organization_user_role(org_code, user_id, create_organization_user_role_request)
|
171
|
+
|
172
|
+
Add Organization User Role
|
173
|
+
|
174
|
+
Add role to an organization user.
|
175
|
+
|
176
|
+
### Examples
|
177
|
+
|
178
|
+
```ruby
|
179
|
+
require 'time'
|
180
|
+
require 'kinde_api'
|
181
|
+
# setup authorization
|
182
|
+
KindeApi.configure do |config|
|
183
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
184
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
185
|
+
end
|
186
|
+
|
187
|
+
api_instance = KindeApi::OrganizationsApi.new
|
188
|
+
org_code = 'org_code_example' # String | The organization's code.
|
189
|
+
user_id = 'user_id_example' # String | The user's id.
|
190
|
+
create_organization_user_role_request = KindeApi::CreateOrganizationUserRoleRequest.new # CreateOrganizationUserRoleRequest | Role details.
|
191
|
+
|
192
|
+
begin
|
193
|
+
# Add Organization User Role
|
194
|
+
result = api_instance.create_organization_user_role(org_code, user_id, create_organization_user_role_request)
|
195
|
+
p result
|
196
|
+
rescue KindeApi::ApiError => e
|
197
|
+
puts "Error when calling OrganizationsApi->create_organization_user_role: #{e}"
|
198
|
+
end
|
199
|
+
```
|
200
|
+
|
201
|
+
#### Using the create_organization_user_role_with_http_info variant
|
202
|
+
|
203
|
+
This returns an Array which contains the response data, status code and headers.
|
204
|
+
|
205
|
+
> <Array(<SuccessResponse>, Integer, Hash)> create_organization_user_role_with_http_info(org_code, user_id, create_organization_user_role_request)
|
206
|
+
|
207
|
+
```ruby
|
208
|
+
begin
|
209
|
+
# Add Organization User Role
|
210
|
+
data, status_code, headers = api_instance.create_organization_user_role_with_http_info(org_code, user_id, create_organization_user_role_request)
|
211
|
+
p status_code # => 2xx
|
212
|
+
p headers # => { ... }
|
213
|
+
p data # => <SuccessResponse>
|
214
|
+
rescue KindeApi::ApiError => e
|
215
|
+
puts "Error when calling OrganizationsApi->create_organization_user_role_with_http_info: #{e}"
|
216
|
+
end
|
217
|
+
```
|
218
|
+
|
219
|
+
### Parameters
|
220
|
+
|
221
|
+
| Name | Type | Description | Notes |
|
222
|
+
| ---- | ---- | ----------- | ----- |
|
223
|
+
| **org_code** | **String** | The organization's code. | |
|
224
|
+
| **user_id** | **String** | The user's id. | |
|
225
|
+
| **create_organization_user_role_request** | [**CreateOrganizationUserRoleRequest**](CreateOrganizationUserRoleRequest.md) | Role details. | |
|
226
|
+
|
227
|
+
### Return type
|
228
|
+
|
229
|
+
[**SuccessResponse**](SuccessResponse.md)
|
230
|
+
|
231
|
+
### Authorization
|
232
|
+
|
233
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
234
|
+
|
235
|
+
### HTTP request headers
|
236
|
+
|
237
|
+
- **Content-Type**: application/json
|
238
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
160
239
|
|
161
240
|
|
162
241
|
## delete_organization_feature_flag_override
|
@@ -227,7 +306,7 @@ end
|
|
227
306
|
### HTTP request headers
|
228
307
|
|
229
308
|
- **Content-Type**: Not defined
|
230
|
-
- **Accept**: application/json
|
309
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
231
310
|
|
232
311
|
|
233
312
|
## delete_organization_feature_flag_overrides
|
@@ -296,7 +375,80 @@ end
|
|
296
375
|
### HTTP request headers
|
297
376
|
|
298
377
|
- **Content-Type**: Not defined
|
299
|
-
- **Accept**: application/json
|
378
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
379
|
+
|
380
|
+
|
381
|
+
## delete_organization_user_role
|
382
|
+
|
383
|
+
> <SuccessResponse> delete_organization_user_role(org_code, user_id, role_id)
|
384
|
+
|
385
|
+
Delete Organization User Role
|
386
|
+
|
387
|
+
Delete role for an organization user.
|
388
|
+
|
389
|
+
### Examples
|
390
|
+
|
391
|
+
```ruby
|
392
|
+
require 'time'
|
393
|
+
require 'kinde_api'
|
394
|
+
# setup authorization
|
395
|
+
KindeApi.configure do |config|
|
396
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
397
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
398
|
+
end
|
399
|
+
|
400
|
+
api_instance = KindeApi::OrganizationsApi.new
|
401
|
+
org_code = 'org_code_example' # String | The organization's code.
|
402
|
+
user_id = 'user_id_example' # String | The user's id.
|
403
|
+
role_id = 'role_id_example' # String | The role id.
|
404
|
+
|
405
|
+
begin
|
406
|
+
# Delete Organization User Role
|
407
|
+
result = api_instance.delete_organization_user_role(org_code, user_id, role_id)
|
408
|
+
p result
|
409
|
+
rescue KindeApi::ApiError => e
|
410
|
+
puts "Error when calling OrganizationsApi->delete_organization_user_role: #{e}"
|
411
|
+
end
|
412
|
+
```
|
413
|
+
|
414
|
+
#### Using the delete_organization_user_role_with_http_info variant
|
415
|
+
|
416
|
+
This returns an Array which contains the response data, status code and headers.
|
417
|
+
|
418
|
+
> <Array(<SuccessResponse>, Integer, Hash)> delete_organization_user_role_with_http_info(org_code, user_id, role_id)
|
419
|
+
|
420
|
+
```ruby
|
421
|
+
begin
|
422
|
+
# Delete Organization User Role
|
423
|
+
data, status_code, headers = api_instance.delete_organization_user_role_with_http_info(org_code, user_id, role_id)
|
424
|
+
p status_code # => 2xx
|
425
|
+
p headers # => { ... }
|
426
|
+
p data # => <SuccessResponse>
|
427
|
+
rescue KindeApi::ApiError => e
|
428
|
+
puts "Error when calling OrganizationsApi->delete_organization_user_role_with_http_info: #{e}"
|
429
|
+
end
|
430
|
+
```
|
431
|
+
|
432
|
+
### Parameters
|
433
|
+
|
434
|
+
| Name | Type | Description | Notes |
|
435
|
+
| ---- | ---- | ----------- | ----- |
|
436
|
+
| **org_code** | **String** | The organization's code. | |
|
437
|
+
| **user_id** | **String** | The user's id. | |
|
438
|
+
| **role_id** | **String** | The role id. | |
|
439
|
+
|
440
|
+
### Return type
|
441
|
+
|
442
|
+
[**SuccessResponse**](SuccessResponse.md)
|
443
|
+
|
444
|
+
### Authorization
|
445
|
+
|
446
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
447
|
+
|
448
|
+
### HTTP request headers
|
449
|
+
|
450
|
+
- **Content-Type**: Not defined
|
451
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
300
452
|
|
301
453
|
|
302
454
|
## get_organization
|
@@ -367,12 +519,152 @@ end
|
|
367
519
|
### HTTP request headers
|
368
520
|
|
369
521
|
- **Content-Type**: Not defined
|
370
|
-
- **Accept**: application/json
|
522
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
523
|
+
|
524
|
+
|
525
|
+
## get_organization_feature_flags
|
526
|
+
|
527
|
+
> <GetOrganizationFeatureFlagsResponse> get_organization_feature_flags(org_code)
|
528
|
+
|
529
|
+
List organization feature flags
|
530
|
+
|
531
|
+
Get all organization feature flags.
|
532
|
+
|
533
|
+
### Examples
|
534
|
+
|
535
|
+
```ruby
|
536
|
+
require 'time'
|
537
|
+
require 'kinde_api'
|
538
|
+
# setup authorization
|
539
|
+
KindeApi.configure do |config|
|
540
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
541
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
542
|
+
end
|
543
|
+
|
544
|
+
api_instance = KindeApi::OrganizationsApi.new
|
545
|
+
org_code = 'org_code_example' # String | The identifier for the organization.
|
546
|
+
|
547
|
+
begin
|
548
|
+
# List organization feature flags
|
549
|
+
result = api_instance.get_organization_feature_flags(org_code)
|
550
|
+
p result
|
551
|
+
rescue KindeApi::ApiError => e
|
552
|
+
puts "Error when calling OrganizationsApi->get_organization_feature_flags: #{e}"
|
553
|
+
end
|
554
|
+
```
|
555
|
+
|
556
|
+
#### Using the get_organization_feature_flags_with_http_info variant
|
557
|
+
|
558
|
+
This returns an Array which contains the response data, status code and headers.
|
559
|
+
|
560
|
+
> <Array(<GetOrganizationFeatureFlagsResponse>, Integer, Hash)> get_organization_feature_flags_with_http_info(org_code)
|
561
|
+
|
562
|
+
```ruby
|
563
|
+
begin
|
564
|
+
# List organization feature flags
|
565
|
+
data, status_code, headers = api_instance.get_organization_feature_flags_with_http_info(org_code)
|
566
|
+
p status_code # => 2xx
|
567
|
+
p headers # => { ... }
|
568
|
+
p data # => <GetOrganizationFeatureFlagsResponse>
|
569
|
+
rescue KindeApi::ApiError => e
|
570
|
+
puts "Error when calling OrganizationsApi->get_organization_feature_flags_with_http_info: #{e}"
|
571
|
+
end
|
572
|
+
```
|
573
|
+
|
574
|
+
### Parameters
|
575
|
+
|
576
|
+
| Name | Type | Description | Notes |
|
577
|
+
| ---- | ---- | ----------- | ----- |
|
578
|
+
| **org_code** | **String** | The identifier for the organization. | |
|
579
|
+
|
580
|
+
### Return type
|
581
|
+
|
582
|
+
[**GetOrganizationFeatureFlagsResponse**](GetOrganizationFeatureFlagsResponse.md)
|
583
|
+
|
584
|
+
### Authorization
|
585
|
+
|
586
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
587
|
+
|
588
|
+
### HTTP request headers
|
589
|
+
|
590
|
+
- **Content-Type**: Not defined
|
591
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
592
|
+
|
593
|
+
|
594
|
+
## get_organization_user_roles
|
595
|
+
|
596
|
+
> <GetOrganizationsUserRolesResponse> get_organization_user_roles(org_code, user_id)
|
597
|
+
|
598
|
+
List Organization User Roles
|
599
|
+
|
600
|
+
Get roles for an organization user.
|
601
|
+
|
602
|
+
### Examples
|
603
|
+
|
604
|
+
```ruby
|
605
|
+
require 'time'
|
606
|
+
require 'kinde_api'
|
607
|
+
# setup authorization
|
608
|
+
KindeApi.configure do |config|
|
609
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
610
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
611
|
+
end
|
612
|
+
|
613
|
+
api_instance = KindeApi::OrganizationsApi.new
|
614
|
+
org_code = 'org_code_example' # String | The organization's code.
|
615
|
+
user_id = 'user_id_example' # String | The user's id.
|
616
|
+
|
617
|
+
begin
|
618
|
+
# List Organization User Roles
|
619
|
+
result = api_instance.get_organization_user_roles(org_code, user_id)
|
620
|
+
p result
|
621
|
+
rescue KindeApi::ApiError => e
|
622
|
+
puts "Error when calling OrganizationsApi->get_organization_user_roles: #{e}"
|
623
|
+
end
|
624
|
+
```
|
625
|
+
|
626
|
+
#### Using the get_organization_user_roles_with_http_info variant
|
627
|
+
|
628
|
+
This returns an Array which contains the response data, status code and headers.
|
629
|
+
|
630
|
+
> <Array(<GetOrganizationsUserRolesResponse>, Integer, Hash)> get_organization_user_roles_with_http_info(org_code, user_id)
|
631
|
+
|
632
|
+
```ruby
|
633
|
+
begin
|
634
|
+
# List Organization User Roles
|
635
|
+
data, status_code, headers = api_instance.get_organization_user_roles_with_http_info(org_code, user_id)
|
636
|
+
p status_code # => 2xx
|
637
|
+
p headers # => { ... }
|
638
|
+
p data # => <GetOrganizationsUserRolesResponse>
|
639
|
+
rescue KindeApi::ApiError => e
|
640
|
+
puts "Error when calling OrganizationsApi->get_organization_user_roles_with_http_info: #{e}"
|
641
|
+
end
|
642
|
+
```
|
643
|
+
|
644
|
+
### Parameters
|
645
|
+
|
646
|
+
| Name | Type | Description | Notes |
|
647
|
+
| ---- | ---- | ----------- | ----- |
|
648
|
+
| **org_code** | **String** | The organization's code. | |
|
649
|
+
| **user_id** | **String** | The user's id. | |
|
650
|
+
|
651
|
+
### Return type
|
652
|
+
|
653
|
+
[**GetOrganizationsUserRolesResponse**](GetOrganizationsUserRolesResponse.md)
|
654
|
+
|
655
|
+
### Authorization
|
656
|
+
|
657
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
658
|
+
|
659
|
+
### HTTP request headers
|
660
|
+
|
661
|
+
- **Content-Type**: Not defined
|
662
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
371
663
|
|
372
664
|
|
373
665
|
## get_organization_users
|
374
666
|
|
375
|
-
> <
|
667
|
+
> <GetOrganizationsUsersResponse> get_organization_users(org_code, opts)
|
376
668
|
|
377
669
|
List Organization Users
|
378
670
|
|
@@ -390,17 +682,17 @@ KindeApi.configure do |config|
|
|
390
682
|
end
|
391
683
|
|
392
684
|
api_instance = KindeApi::OrganizationsApi.new
|
685
|
+
org_code = 'org_code_example' # String | The organization's code.
|
393
686
|
opts = {
|
394
687
|
sort: 'name_asc', # String | Field and order to sort the result by.
|
395
688
|
page_size: 56, # Integer | Number of results per page. Defaults to 10 if parameter not sent.
|
396
689
|
next_token: 'next_token_example', # String | A string to get the next page of results if there are more results.
|
397
|
-
code: 'code_example', # String | The organization's code.
|
398
690
|
permissions: 'permissions_example' # String | Filter by user permissions
|
399
691
|
}
|
400
692
|
|
401
693
|
begin
|
402
694
|
# List Organization Users
|
403
|
-
result = api_instance.get_organization_users(opts)
|
695
|
+
result = api_instance.get_organization_users(org_code, opts)
|
404
696
|
p result
|
405
697
|
rescue KindeApi::ApiError => e
|
406
698
|
puts "Error when calling OrganizationsApi->get_organization_users: #{e}"
|
@@ -411,15 +703,15 @@ end
|
|
411
703
|
|
412
704
|
This returns an Array which contains the response data, status code and headers.
|
413
705
|
|
414
|
-
> <Array(<
|
706
|
+
> <Array(<GetOrganizationsUsersResponse>, Integer, Hash)> get_organization_users_with_http_info(org_code, opts)
|
415
707
|
|
416
708
|
```ruby
|
417
709
|
begin
|
418
710
|
# List Organization Users
|
419
|
-
data, status_code, headers = api_instance.get_organization_users_with_http_info(opts)
|
711
|
+
data, status_code, headers = api_instance.get_organization_users_with_http_info(org_code, opts)
|
420
712
|
p status_code # => 2xx
|
421
713
|
p headers # => { ... }
|
422
|
-
p data # => <
|
714
|
+
p data # => <GetOrganizationsUsersResponse>
|
423
715
|
rescue KindeApi::ApiError => e
|
424
716
|
puts "Error when calling OrganizationsApi->get_organization_users_with_http_info: #{e}"
|
425
717
|
end
|
@@ -429,15 +721,15 @@ end
|
|
429
721
|
|
430
722
|
| Name | Type | Description | Notes |
|
431
723
|
| ---- | ---- | ----------- | ----- |
|
724
|
+
| **org_code** | **String** | The organization's code. | |
|
432
725
|
| **sort** | **String** | Field and order to sort the result by. | [optional] |
|
433
726
|
| **page_size** | **Integer** | Number of results per page. Defaults to 10 if parameter not sent. | [optional] |
|
434
727
|
| **next_token** | **String** | A string to get the next page of results if there are more results. | [optional] |
|
435
|
-
| **code** | **String** | The organization's code. | [optional] |
|
436
728
|
| **permissions** | **String** | Filter by user permissions | [optional] |
|
437
729
|
|
438
730
|
### Return type
|
439
731
|
|
440
|
-
[**
|
732
|
+
[**GetOrganizationsUsersResponse**](GetOrganizationsUsersResponse.md)
|
441
733
|
|
442
734
|
### Authorization
|
443
735
|
|
@@ -446,12 +738,12 @@ end
|
|
446
738
|
### HTTP request headers
|
447
739
|
|
448
740
|
- **Content-Type**: Not defined
|
449
|
-
- **Accept**: application/json
|
741
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
450
742
|
|
451
743
|
|
452
744
|
## get_organizations
|
453
745
|
|
454
|
-
> <
|
746
|
+
> <GetOrganizationsResponse> get_organizations(opts)
|
455
747
|
|
456
748
|
List Organizations
|
457
749
|
|
@@ -488,7 +780,7 @@ end
|
|
488
780
|
|
489
781
|
This returns an Array which contains the response data, status code and headers.
|
490
782
|
|
491
|
-
> <Array(<
|
783
|
+
> <Array(<GetOrganizationsResponse>, Integer, Hash)> get_organizations_with_http_info(opts)
|
492
784
|
|
493
785
|
```ruby
|
494
786
|
begin
|
@@ -496,7 +788,7 @@ begin
|
|
496
788
|
data, status_code, headers = api_instance.get_organizations_with_http_info(opts)
|
497
789
|
p status_code # => 2xx
|
498
790
|
p headers # => { ... }
|
499
|
-
p data # => <
|
791
|
+
p data # => <GetOrganizationsResponse>
|
500
792
|
rescue KindeApi::ApiError => e
|
501
793
|
puts "Error when calling OrganizationsApi->get_organizations_with_http_info: #{e}"
|
502
794
|
end
|
@@ -512,7 +804,7 @@ end
|
|
512
804
|
|
513
805
|
### Return type
|
514
806
|
|
515
|
-
[**
|
807
|
+
[**GetOrganizationsResponse**](GetOrganizationsResponse.md)
|
516
808
|
|
517
809
|
### Authorization
|
518
810
|
|
@@ -521,16 +813,16 @@ end
|
|
521
813
|
### HTTP request headers
|
522
814
|
|
523
815
|
- **Content-Type**: Not defined
|
524
|
-
- **Accept**: application/json
|
816
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
525
817
|
|
526
818
|
|
527
|
-
##
|
819
|
+
## remove_organization_user
|
528
820
|
|
529
|
-
> <
|
821
|
+
> <SuccessResponse> remove_organization_user(org_code, user_id)
|
530
822
|
|
531
|
-
Remove
|
823
|
+
Remove Organization User
|
532
824
|
|
533
|
-
Remove
|
825
|
+
Remove user from an organization.
|
534
826
|
|
535
827
|
### Examples
|
536
828
|
|
@@ -544,35 +836,33 @@ KindeApi.configure do |config|
|
|
544
836
|
end
|
545
837
|
|
546
838
|
api_instance = KindeApi::OrganizationsApi.new
|
547
|
-
|
548
|
-
|
549
|
-
remove_organization_users_request: KindeApi::RemoveOrganizationUsersRequest.new # RemoveOrganizationUsersRequest |
|
550
|
-
}
|
839
|
+
org_code = 'org_code_example' # String | The organization's code.
|
840
|
+
user_id = 'user_id_example' # String | The user's id.
|
551
841
|
|
552
842
|
begin
|
553
|
-
# Remove
|
554
|
-
result = api_instance.
|
843
|
+
# Remove Organization User
|
844
|
+
result = api_instance.remove_organization_user(org_code, user_id)
|
555
845
|
p result
|
556
846
|
rescue KindeApi::ApiError => e
|
557
|
-
puts "Error when calling OrganizationsApi->
|
847
|
+
puts "Error when calling OrganizationsApi->remove_organization_user: #{e}"
|
558
848
|
end
|
559
849
|
```
|
560
850
|
|
561
|
-
#### Using the
|
851
|
+
#### Using the remove_organization_user_with_http_info variant
|
562
852
|
|
563
853
|
This returns an Array which contains the response data, status code and headers.
|
564
854
|
|
565
|
-
> <Array(<
|
855
|
+
> <Array(<SuccessResponse>, Integer, Hash)> remove_organization_user_with_http_info(org_code, user_id)
|
566
856
|
|
567
857
|
```ruby
|
568
858
|
begin
|
569
|
-
# Remove
|
570
|
-
data, status_code, headers = api_instance.
|
859
|
+
# Remove Organization User
|
860
|
+
data, status_code, headers = api_instance.remove_organization_user_with_http_info(org_code, user_id)
|
571
861
|
p status_code # => 2xx
|
572
862
|
p headers # => { ... }
|
573
|
-
p data # => <
|
863
|
+
p data # => <SuccessResponse>
|
574
864
|
rescue KindeApi::ApiError => e
|
575
|
-
puts "Error when calling OrganizationsApi->
|
865
|
+
puts "Error when calling OrganizationsApi->remove_organization_user_with_http_info: #{e}"
|
576
866
|
end
|
577
867
|
```
|
578
868
|
|
@@ -580,12 +870,84 @@ end
|
|
580
870
|
|
581
871
|
| Name | Type | Description | Notes |
|
582
872
|
| ---- | ---- | ----------- | ----- |
|
583
|
-
| **
|
584
|
-
| **
|
873
|
+
| **org_code** | **String** | The organization's code. | |
|
874
|
+
| **user_id** | **String** | The user's id. | |
|
875
|
+
|
876
|
+
### Return type
|
877
|
+
|
878
|
+
[**SuccessResponse**](SuccessResponse.md)
|
879
|
+
|
880
|
+
### Authorization
|
881
|
+
|
882
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
883
|
+
|
884
|
+
### HTTP request headers
|
885
|
+
|
886
|
+
- **Content-Type**: Not defined
|
887
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
888
|
+
|
889
|
+
|
890
|
+
## update_organization
|
891
|
+
|
892
|
+
> update_organization(org_code, opts)
|
893
|
+
|
894
|
+
Update Organization
|
895
|
+
|
896
|
+
Update an organization.
|
897
|
+
|
898
|
+
### Examples
|
899
|
+
|
900
|
+
```ruby
|
901
|
+
require 'time'
|
902
|
+
require 'kinde_api'
|
903
|
+
# setup authorization
|
904
|
+
KindeApi.configure do |config|
|
905
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
906
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
907
|
+
end
|
908
|
+
|
909
|
+
api_instance = KindeApi::OrganizationsApi.new
|
910
|
+
org_code = 'org_code_example' # String | The identifier for the organization.
|
911
|
+
opts = {
|
912
|
+
update_organization_request: KindeApi::UpdateOrganizationRequest.new # UpdateOrganizationRequest | Organization details.
|
913
|
+
}
|
914
|
+
|
915
|
+
begin
|
916
|
+
# Update Organization
|
917
|
+
api_instance.update_organization(org_code, opts)
|
918
|
+
rescue KindeApi::ApiError => e
|
919
|
+
puts "Error when calling OrganizationsApi->update_organization: #{e}"
|
920
|
+
end
|
921
|
+
```
|
922
|
+
|
923
|
+
#### Using the update_organization_with_http_info variant
|
924
|
+
|
925
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
926
|
+
|
927
|
+
> <Array(nil, Integer, Hash)> update_organization_with_http_info(org_code, opts)
|
928
|
+
|
929
|
+
```ruby
|
930
|
+
begin
|
931
|
+
# Update Organization
|
932
|
+
data, status_code, headers = api_instance.update_organization_with_http_info(org_code, opts)
|
933
|
+
p status_code # => 2xx
|
934
|
+
p headers # => { ... }
|
935
|
+
p data # => nil
|
936
|
+
rescue KindeApi::ApiError => e
|
937
|
+
puts "Error when calling OrganizationsApi->update_organization_with_http_info: #{e}"
|
938
|
+
end
|
939
|
+
```
|
940
|
+
|
941
|
+
### Parameters
|
942
|
+
|
943
|
+
| Name | Type | Description | Notes |
|
944
|
+
| ---- | ---- | ----------- | ----- |
|
945
|
+
| **org_code** | **String** | The identifier for the organization. | |
|
946
|
+
| **update_organization_request** | [**UpdateOrganizationRequest**](UpdateOrganizationRequest.md) | Organization details. | [optional] |
|
585
947
|
|
586
948
|
### Return type
|
587
949
|
|
588
|
-
|
950
|
+
nil (empty response body)
|
589
951
|
|
590
952
|
### Authorization
|
591
953
|
|
@@ -594,7 +956,7 @@ end
|
|
594
956
|
### HTTP request headers
|
595
957
|
|
596
958
|
- **Content-Type**: application/json
|
597
|
-
- **Accept**: application/json
|
959
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
598
960
|
|
599
961
|
|
600
962
|
## update_organization_feature_flag_override
|
@@ -667,5 +1029,78 @@ end
|
|
667
1029
|
### HTTP request headers
|
668
1030
|
|
669
1031
|
- **Content-Type**: Not defined
|
670
|
-
- **Accept**: application/json
|
1032
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
1033
|
+
|
1034
|
+
|
1035
|
+
## update_organization_users
|
1036
|
+
|
1037
|
+
> <UpdateOrganizationUsersResponse> update_organization_users(org_code, opts)
|
1038
|
+
|
1039
|
+
Update organization users
|
1040
|
+
|
1041
|
+
Update users that belong to an organization.
|
1042
|
+
|
1043
|
+
### Examples
|
1044
|
+
|
1045
|
+
```ruby
|
1046
|
+
require 'time'
|
1047
|
+
require 'kinde_api'
|
1048
|
+
# setup authorization
|
1049
|
+
KindeApi.configure do |config|
|
1050
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
1051
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
api_instance = KindeApi::OrganizationsApi.new
|
1055
|
+
org_code = 'org_code_example' # String | The organization's code.
|
1056
|
+
opts = {
|
1057
|
+
update_organization_users_request: KindeApi::UpdateOrganizationUsersRequest.new # UpdateOrganizationUsersRequest |
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
begin
|
1061
|
+
# Update organization users
|
1062
|
+
result = api_instance.update_organization_users(org_code, opts)
|
1063
|
+
p result
|
1064
|
+
rescue KindeApi::ApiError => e
|
1065
|
+
puts "Error when calling OrganizationsApi->update_organization_users: #{e}"
|
1066
|
+
end
|
1067
|
+
```
|
1068
|
+
|
1069
|
+
#### Using the update_organization_users_with_http_info variant
|
1070
|
+
|
1071
|
+
This returns an Array which contains the response data, status code and headers.
|
1072
|
+
|
1073
|
+
> <Array(<UpdateOrganizationUsersResponse>, Integer, Hash)> update_organization_users_with_http_info(org_code, opts)
|
1074
|
+
|
1075
|
+
```ruby
|
1076
|
+
begin
|
1077
|
+
# Update organization users
|
1078
|
+
data, status_code, headers = api_instance.update_organization_users_with_http_info(org_code, opts)
|
1079
|
+
p status_code # => 2xx
|
1080
|
+
p headers # => { ... }
|
1081
|
+
p data # => <UpdateOrganizationUsersResponse>
|
1082
|
+
rescue KindeApi::ApiError => e
|
1083
|
+
puts "Error when calling OrganizationsApi->update_organization_users_with_http_info: #{e}"
|
1084
|
+
end
|
1085
|
+
```
|
1086
|
+
|
1087
|
+
### Parameters
|
1088
|
+
|
1089
|
+
| Name | Type | Description | Notes |
|
1090
|
+
| ---- | ---- | ----------- | ----- |
|
1091
|
+
| **org_code** | **String** | The organization's code. | |
|
1092
|
+
| **update_organization_users_request** | [**UpdateOrganizationUsersRequest**](UpdateOrganizationUsersRequest.md) | | [optional] |
|
1093
|
+
|
1094
|
+
### Return type
|
1095
|
+
|
1096
|
+
[**UpdateOrganizationUsersResponse**](UpdateOrganizationUsersResponse.md)
|
1097
|
+
|
1098
|
+
### Authorization
|
1099
|
+
|
1100
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
1101
|
+
|
1102
|
+
### HTTP request headers
|
1103
|
+
|
1104
|
+
- **Content-Type**: application/json
|
1105
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
671
1106
|
|