Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Latest commit

 

History

History
77 lines (53 loc) · 2.12 KB

OrganizationsApi.md

File metadata and controls

77 lines (53 loc) · 2.12 KB

LagoAPI::OrganizationsApi

All URIs are relative to https://api.getlago.com/api/v1

Method HTTP request Description
update_organization PUT /organizations Update your organization

update_organization

update_organization(organization_update_input)

Update your organization

This endpoint is used to update your own organization's settings.

Examples

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

Using the update_organization_with_http_info variant

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

Parameters

Name Type Description Notes
organization_update_input OrganizationUpdateInput Update an existing organization

Return type

Organization

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json