@@ -9,11 +9,12 @@ All URIs are relative to *http://localhost*
99| [ ** getAttribute** ] ( AttributesApi.md#getAttribute ) | ** GET** /attributes/{key} | Get Attribute |
1010| [ ** getAttributeAllowedValues** ] ( AttributesApi.md#getAttributeAllowedValues ) | ** GET** /attributes/{key}/allowedValues | Get Attribute Allowed Values |
1111| [ ** getAttributes** ] ( AttributesApi.md#getAttributes ) | ** GET** /attributes | Get Attributes listing |
12+ | [ ** updateAttribute** ] ( AttributesApi.md#updateAttribute ) | ** PATCH** /attributes/{key} | Update existing attribute |
1213
1314
1415<a id =" addAttribute " ></a >
1516# ** addAttribute**
16- > AddAttributeResponse addAttribute(addAttributeRequest, siteId)
17+ > AddResponse addAttribute(addAttributeRequest, siteId)
1718
1819Add new attribute
1920
@@ -40,7 +41,7 @@ public class Example {
4041 AddAttributeRequest addAttributeRequest = new AddAttributeRequest (); // AddAttributeRequest |
4142 String siteId = " siteId_example" ; // String | Site Identifier
4243 try {
43- AddAttributeResponse result = apiInstance. addAttribute(addAttributeRequest, siteId);
44+ AddResponse result = apiInstance. addAttribute(addAttributeRequest, siteId);
4445 System . out. println(result);
4546 } catch (ApiException e) {
4647 System . err. println(" Exception when calling AttributesApi#addAttribute" );
@@ -62,7 +63,7 @@ public class Example {
6263
6364### Return type
6465
65- [ ** AddAttributeResponse ** ] ( AddAttributeResponse .md)
66+ [ ** AddResponse ** ] ( AddResponse .md)
6667
6768### Authorization
6869
@@ -350,3 +351,73 @@ No authorization required
350351| -------------| -------------| ------------------|
351352| ** 200** | 200 OK | * Access-Control-Allow-Origin - <br > * Access-Control-Allow-Methods - <br > * Access-Control-Allow-Headers - <br > |
352353
354+ <a id =" updateAttribute " ></a >
355+ # ** updateAttribute**
356+ > UpdateResponse updateAttribute(key, updateAttributeRequest, siteId)
357+
358+ Update existing attribute
359+
360+ Updates existing attribute
361+
362+ ### Example
363+ ``` java
364+ // Import classes:
365+ import com.formkiq.client.invoker.ApiClient ;
366+ import com.formkiq.client.invoker.ApiException ;
367+ import com.formkiq.client.invoker.Configuration ;
368+ import com.formkiq.client.invoker.auth.* ;
369+ import com.formkiq.client.invoker.models.* ;
370+ import com.formkiq.client.api.AttributesApi ;
371+
372+ public class Example {
373+ public static void main (String [] args ) {
374+ ApiClient defaultClient = Configuration . getDefaultApiClient();
375+ defaultClient. setBasePath(" http://localhost" );
376+ // Configure AWS Signature V4 authorization
377+ defaultClient. setAWS4Configuration(" YOUR_ACCESS_KEY" , " YOUR_SECRET_KEY" , " REGION" , " SERVICE" )
378+
379+ AttributesApi apiInstance = new AttributesApi (defaultClient);
380+ String key = " key_example" ; // String | Key Identifier
381+ UpdateAttributeRequest updateAttributeRequest = new UpdateAttributeRequest (); // UpdateAttributeRequest |
382+ String siteId = " siteId_example" ; // String | Site Identifier
383+ try {
384+ UpdateResponse result = apiInstance. updateAttribute(key, updateAttributeRequest, siteId);
385+ System . out. println(result);
386+ } catch (ApiException e) {
387+ System . err. println(" Exception when calling AttributesApi#updateAttribute" );
388+ System . err. println(" Status code: " + e. getCode());
389+ System . err. println(" Reason: " + e. getResponseBody());
390+ System . err. println(" Response headers: " + e. getResponseHeaders());
391+ e. printStackTrace();
392+ }
393+ }
394+ }
395+ ```
396+
397+ ### Parameters
398+
399+ | Name | Type | Description | Notes |
400+ | ------------- | ------------- | ------------- | -------------|
401+ | ** key** | ** String** | Key Identifier | |
402+ | ** updateAttributeRequest** | [ ** UpdateAttributeRequest** ] ( UpdateAttributeRequest.md ) | | |
403+ | ** siteId** | ** String** | Site Identifier | [ optional] |
404+
405+ ### Return type
406+
407+ [ ** UpdateResponse** ] ( UpdateResponse.md )
408+
409+ ### Authorization
410+
411+ No authorization required
412+
413+ ### HTTP request headers
414+
415+ - ** Content-Type** : application/json
416+ - ** Accept** : application/json
417+
418+ ### HTTP response details
419+ | Status code | Description | Response headers |
420+ | -------------| -------------| ------------------|
421+ | ** 200** | 200 OK | * Access-Control-Allow-Origin - <br > * Access-Control-Allow-Methods - <br > * Access-Control-Allow-Headers - <br > |
422+ | ** 400** | 400 OK | - |
423+
0 commit comments