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

Latest commit

 

History

History
68 lines (45 loc) · 2.04 KB

OrganizationsApi.md

File metadata and controls

68 lines (45 loc) · 2.04 KB

OpenAPI\Client\OrganizationsApi

All URIs are relative to https://api.getlago.com/api/v1, except if the operation defines another base path.

Method HTTP request Description
updateOrganization() PUT /organizations Update an existing Organization

updateOrganization()

updateOrganization($organization_input): \OpenAPI\Client\Model\Organization

Update an existing Organization

Update an existing organization

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\Client\Api\OrganizationsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$organization_input = new \OpenAPI\Client\Model\OrganizationInput(); // \OpenAPI\Client\Model\OrganizationInput | Update an existing organization

try {
    $result = $apiInstance->updateOrganization($organization_input);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrganizationsApi->updateOrganization: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organization_input \OpenAPI\Client\Model\OrganizationInput Update an existing organization

Return type

\OpenAPI\Client\Model\Organization

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]