All URIs are relative to https://api.clerk.com/v1
Method | HTTP request | Description |
---|---|---|
change_production_instance_domain | POST /instance/change_domain | Update production instance domain |
update_instance_auth_config | PATCH /beta_features/instance_settings | Update instance settings |
update_production_instance_domain | PUT /beta_features/domain | Update production instance domain |
change_production_instance_domain(opts)
Update production instance domain
Change the domain of a production instance. Changing the domain requires updating the DNS records accordingly, deploying new SSL certificates, updating your Social Connection's redirect URLs and setting the new keys in your code. WARNING: Changing your domain will invalidate all current user sessions (i.e. users will be logged out). Also, while your application is being deployed, a small downtime is expected to occur.
require 'time'
require 'clerk-sdk-ruby-backend'
# setup authorization
ClerkBackend.configure do |config|
# Configure Bearer authorization (sk_<environment>_<secret value>): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = ClerkBackend::BetaFeaturesApi.new
opts = {
change_production_instance_domain_request: ClerkBackend::ChangeProductionInstanceDomainRequest.new # ChangeProductionInstanceDomainRequest |
}
begin
# Update production instance domain
api_instance.change_production_instance_domain(opts)
rescue ClerkBackend::ApiError => e
puts "Error when calling BetaFeaturesApi->change_production_instance_domain: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> change_production_instance_domain_with_http_info(opts)
begin
# Update production instance domain
data, status_code, headers = api_instance.change_production_instance_domain_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue ClerkBackend::ApiError => e
puts "Error when calling BetaFeaturesApi->change_production_instance_domain_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
change_production_instance_domain_request | ChangeProductionInstanceDomainRequest | [optional] |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json
update_instance_auth_config(opts)
Update instance settings
Updates the settings of an instance
require 'time'
require 'clerk-sdk-ruby-backend'
# setup authorization
ClerkBackend.configure do |config|
# Configure Bearer authorization (sk_<environment>_<secret value>): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = ClerkBackend::BetaFeaturesApi.new
opts = {
update_instance_auth_config_request: ClerkBackend::UpdateInstanceAuthConfigRequest.new # UpdateInstanceAuthConfigRequest |
}
begin
# Update instance settings
result = api_instance.update_instance_auth_config(opts)
p result
rescue ClerkBackend::ApiError => e
puts "Error when calling BetaFeaturesApi->update_instance_auth_config: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_instance_auth_config_with_http_info(opts)
begin
# Update instance settings
data, status_code, headers = api_instance.update_instance_auth_config_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <UpdateInstanceAuthConfig200Response>
rescue ClerkBackend::ApiError => e
puts "Error when calling BetaFeaturesApi->update_instance_auth_config_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
update_instance_auth_config_request | UpdateInstanceAuthConfigRequest | [optional] |
UpdateInstanceAuthConfig200Response
- Content-Type: application/json
- Accept: application/json
update_production_instance_domain(opts)
Update production instance domain
Change the domain of a production instance. Changing the domain requires updating the DNS records accordingly, deploying new SSL certificates, updating your Social Connection's redirect URLs and setting the new keys in your code. WARNING: Changing your domain will invalidate all current user sessions (i.e. users will be logged out). Also, while your application is being deployed, a small downtime is expected to occur.
require 'time'
require 'clerk-sdk-ruby-backend'
# setup authorization
ClerkBackend.configure do |config|
# Configure Bearer authorization (sk_<environment>_<secret value>): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = ClerkBackend::BetaFeaturesApi.new
opts = {
update_production_instance_domain_request: ClerkBackend::UpdateProductionInstanceDomainRequest.new # UpdateProductionInstanceDomainRequest |
}
begin
# Update production instance domain
api_instance.update_production_instance_domain(opts)
rescue ClerkBackend::ApiError => e
puts "Error when calling BetaFeaturesApi->update_production_instance_domain: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> update_production_instance_domain_with_http_info(opts)
begin
# Update production instance domain
data, status_code, headers = api_instance.update_production_instance_domain_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue ClerkBackend::ApiError => e
puts "Error when calling BetaFeaturesApi->update_production_instance_domain_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
update_production_instance_domain_request | UpdateProductionInstanceDomainRequest | [optional] |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json