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

Latest commit

 

History

History
83 lines (58 loc) · 2.62 KB

OrganizationsApi.md

File metadata and controls

83 lines (58 loc) · 2.62 KB

OrganizationsApi

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

Method HTTP request Description
updateOrganization PUT /organizations Update your organization

updateOrganization

Organization updateOrganization(organizationUpdateInput)

Update your organization

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

Example

// Import classes:
import org.getlago.client.ApiClient;
import org.getlago.client.ApiException;
import org.getlago.client.Configuration;
import org.getlago.client.auth.*;
import org.getlago.client.models.*;
import org.getlago.client.api.OrganizationsApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://api.getlago.com/api/v1");
        
        // Configure HTTP bearer authorization: bearerAuth
        HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
        bearerAuth.setBearerToken("BEARER TOKEN");

        OrganizationsApi apiInstance = new OrganizationsApi(defaultClient);
        OrganizationUpdateInput organizationUpdateInput = new OrganizationUpdateInput(); // OrganizationUpdateInput | Update an existing organization
        try {
            Organization result = apiInstance.updateOrganization(organizationUpdateInput);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#updateOrganization");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
organizationUpdateInput OrganizationUpdateInput Update an existing organization

Return type

Organization

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Successful response -
400 Bad Request error -
401 Unauthorized error -
422 Unprocessable entity error -