All URIs are relative to https://api.getlago.com/api/v1
Method | HTTP request | Description |
---|---|---|
updateOrganization | PUT /organizations | Update your organization |
Organization updateOrganization(organizationUpdateInput)
Update your organization
This endpoint is used to update your own organization's settings.
// 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();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
organizationUpdateInput | OrganizationUpdateInput | Update an existing organization |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
400 | Bad Request error | - |
401 | Unauthorized error | - |
422 | Unprocessable entity error | - |