@@ -13,6 +13,7 @@ All URIs are relative to *https://api.segmentapis.com*
1313| [ ** removeActivationFromAudience** ] ( ActivationsApi.md#removeActivationFromAudience ) | ** DELETE** /spaces/{spaceId}/audiences/{audienceId}/activations/{id} | Remove Activation from Audience |
1414| [ ** removeDestinationFromAudience** ] ( ActivationsApi.md#removeDestinationFromAudience ) | ** DELETE** /spaces/{spaceId}/audiences/{audienceId}/destination-connections/{destinationId} | Remove Destination from Audience |
1515| [ ** updateActivationForAudience** ] ( ActivationsApi.md#updateActivationForAudience ) | ** PATCH** /spaces/{spaceId}/audiences/{audienceId}/activations/{id} | Update Activation for Audience |
16+ | [ ** updateDestinationForAudience** ] ( ActivationsApi.md#updateDestinationForAudience ) | ** PATCH** /spaces/{spaceId}/audiences/{audienceId}/destination-connections/{destinationId} | Update Destination for Audience |
1617
1718
1819
@@ -714,3 +715,82 @@ public class Example {
714715| ** 422** | Validation failure | - |
715716| ** 429** | Too many requests | - |
716717
718+
719+ ## Operation: updateDestinationForAudience
720+
721+ > UpdateDestinationForAudience200Response updateDestinationForAudience(spaceId, audienceId, destinationId, updateDestinationForAudienceAlphaInput)
722+
723+ Update Destination for Audience
724+
725+ Updates a Destination for an Audience. • This endpoint is in ** Alpha** testing. Please submit any feedback by sending an email to friends@segment.com . • In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the ` ; Destination Updated for Audience` ; event in the [ audit trail] ( /tag/Audit-Trail ) .
726+
727+ ### Example
728+
729+ ``` java
730+ // Import classes:
731+ import com.segment.publicapi.ApiClient ;
732+ import com.segment.publicapi.ApiException ;
733+ import com.segment.publicapi.Configuration ;
734+ import com.segment.publicapi.auth.* ;
735+ import com.segment.publicapi.models.* ;
736+ import com.segment.publicapi.api.ActivationsApi ;
737+
738+ public class Example {
739+ public static void main (String [] args ) {
740+ ApiClient defaultClient = Configuration . getDefaultApiClient();
741+
742+ // Configure HTTP bearer authorization: token
743+ HttpBearerAuth token = (HttpBearerAuth ) defaultClient. getAuthentication(" token" );
744+ token. setBearerToken(" BEARER TOKEN" );
745+
746+ ActivationsApi apiInstance = new ActivationsApi (defaultClient);
747+ String spaceId = " spa_9aQ1Lj62S4bomZKLF4DPqW" ; // String |
748+ String audienceId = " aud_0ujsszwN8NRY24YaXiTIE2VWDTS" ; // String |
749+ String destinationId = " ii_123456789" ; // String |
750+ UpdateDestinationForAudienceAlphaInput updateDestinationForAudienceAlphaInput = new UpdateDestinationForAudienceAlphaInput (); // UpdateDestinationForAudienceAlphaInput |
751+ try {
752+ UpdateDestinationForAudience200Response result = apiInstance. updateDestinationForAudience(spaceId, audienceId, destinationId, updateDestinationForAudienceAlphaInput);
753+ System . out. println(result);
754+ } catch (ApiException e) {
755+ System . err. println(" Exception when calling ActivationsApi#updateDestinationForAudience" );
756+ System . err. println(" Status code: " + e. getCode());
757+ System . err. println(" Reason: " + e. getResponseBody());
758+ System . err. println(" Response headers: " + e. getResponseHeaders());
759+ e. printStackTrace();
760+ }
761+ }
762+ }
763+ ```
764+
765+ ### Parameters
766+
767+
768+ | Name | Type | Description | Notes |
769+ | ------------- | ------------- | ------------- | -------------|
770+ | ** spaceId** | ** String** | | |
771+ | ** audienceId** | ** String** | | |
772+ | ** destinationId** | ** String** | | |
773+ | ** updateDestinationForAudienceAlphaInput** | [ ** UpdateDestinationForAudienceAlphaInput** ] ( UpdateDestinationForAudienceAlphaInput.md ) | | |
774+
775+ ### Return type
776+
777+ [ ** UpdateDestinationForAudience200Response** ] ( UpdateDestinationForAudience200Response.md )
778+
779+ ### Authorization
780+
781+ [ token] ( ../README.md#token )
782+
783+ ### HTTP request headers
784+
785+ - ** Content-Type** : application/vnd.segment.v1alpha+json
786+ - ** Accept** : application/vnd.segment.v1alpha+json, application/json
787+
788+
789+ ### HTTP response details
790+ | Status code | Description | Response headers |
791+ | -------------| -------------| ------------------|
792+ | ** 200** | OK | - |
793+ | ** 404** | Resource not found | - |
794+ | ** 422** | Validation failure | - |
795+ | ** 429** | Too many requests | - |
796+
0 commit comments