# SyncteraRubySdk::LicensesApi All URIs are relative to *https://api.synctera.com/v0* | Method | HTTP request | Description | | ------ | ------------ | ----------- | | [**patch_license**](LicensesApi.md#patch_license) | **PATCH** /licenses/{license_id} | Patch License | ## patch_license > patch_license(license_id, license_patch) Patch License Update a License by ID. ### Examples ```ruby require 'time' require 'synctera_ruby_sdk' # setup authorization SyncteraRubySdk.configure do |config| # Configure Bearer authorization (api_key): bearerAuth config.access_token = 'YOUR_BEARER_TOKEN' end api_instance = SyncteraRubySdk::LicensesApi.new license_id = 'ba4f84d7-fa20-4010-a573-0bbca57ab589' # String | License record identifier license_patch = SyncteraRubySdk::LicensePatch.new({license_number: '10321'}) # LicensePatch | begin # Patch License result = api_instance.patch_license(license_id, license_patch) p result rescue SyncteraRubySdk::ApiError => e puts "Error when calling LicensesApi->patch_license: #{e}" end ``` #### Using the patch_license_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> patch_license_with_http_info(license_id, license_patch) ```ruby begin # Patch License data, status_code, headers = api_instance.patch_license_with_http_info(license_id, license_patch) p status_code # => 2xx p headers # => { ... } p data # => rescue SyncteraRubySdk::ApiError => e puts "Error when calling LicensesApi->patch_license_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **license_id** | **String** | License record identifier | | | **license_patch** | [**LicensePatch**](LicensePatch.md) | | | ### Return type [**ResponseLicense**](ResponseLicense.md) ### Authorization [bearerAuth](../README.md#bearerAuth) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json, application/problem+json