docs/WebhooksApi.md in launchdarkly_api-2.0.10 vs docs/WebhooksApi.md in launchdarkly_api-2.0.27

- old
+ new

@@ -28,11 +28,11 @@ #config.api_key_prefix['Authorization'] = 'Bearer' end api_instance = LaunchDarklyApi::WebhooksApi.new -resource_id = "resource_id_example" # String | The resource ID. +resource_id = 'resource_id_example' # String | The resource ID. begin #Delete a webhook by ID. api_instance.delete_webhook(resource_id, ) @@ -79,11 +79,11 @@ #config.api_key_prefix['Authorization'] = 'Bearer' end api_instance = LaunchDarklyApi::WebhooksApi.new -resource_id = "resource_id_example" # String | The resource ID. +resource_id = 'resource_id_example' # String | The resource ID. begin #Get a webhook by ID. result = api_instance.get_webhook(resource_id, ) @@ -177,11 +177,11 @@ #config.api_key_prefix['Authorization'] = 'Bearer' end api_instance = LaunchDarklyApi::WebhooksApi.new -resource_id = "resource_id_example" # String | The resource ID. +resource_id = 'resource_id_example' # String | The resource ID. patch_delta = [LaunchDarklyApi::PatchOperation.new] # Array<PatchOperation> | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' begin @@ -214,11 +214,11 @@ - **Accept**: application/json # **post_webhook** -> post_webhook(webhook_body) +> Webhook post_webhook(webhook_body) Create a webhook. ### Example ```ruby @@ -237,11 +237,12 @@ webhook_body = LaunchDarklyApi::WebhookBody.new # WebhookBody | New webhook. begin #Create a webhook. - api_instance.post_webhook(webhook_body) + result = api_instance.post_webhook(webhook_body) + p result rescue LaunchDarklyApi::ApiError => e puts "Exception when calling WebhooksApi->post_webhook: #{e}" end ``` @@ -251,10 +252,10 @@ ------------- | ------------- | ------------- | ------------- **webhook_body** | [**WebhookBody**](WebhookBody.md)| New webhook. | ### Return type -nil (empty response body) +[**Webhook**](Webhook.md) ### Authorization [Token](../README.md#Token)