All URIs are relative to https://api.getlago.com/api/v1
Method | HTTP request | Description |
---|---|---|
update_organization | PUT /organizations | Update your organization |
update_organization(organization_update_input)
Update your organization
This endpoint is used to update your own organization's settings.
require 'time'
require 'lago_ruby'
# setup authorization
LagoAPI.configure do |config|
# Configure Bearer authorization: bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = LagoAPI::OrganizationsApi.new
organization_update_input = LagoAPI::OrganizationUpdateInput.new({organization: LagoAPI::OrganizationUpdateInputOrganization.new}) # OrganizationUpdateInput | Update an existing organization
begin
# Update your organization
result = api_instance.update_organization(organization_update_input)
p result
rescue LagoAPI::ApiError => e
puts "Error when calling OrganizationsApi->update_organization: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_organization_with_http_info(organization_update_input)
begin
# Update your organization
data, status_code, headers = api_instance.update_organization_with_http_info(organization_update_input)
p status_code # => 2xx
p headers # => { ... }
p data # => <Organization>
rescue LagoAPI::ApiError => e
puts "Error when calling OrganizationsApi->update_organization_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
organization_update_input | OrganizationUpdateInput | Update an existing organization |
- Content-Type: application/json
- Accept: application/json