@@ -15,6 +15,7 @@ All URIs are relative to *https://api.segmentapis.com*
1515| [ ** listAudiences** ] ( AudiencesApi.md#listAudiences ) | ** GET** /spaces/{spaceId}/audiences | List Audiences |
1616| [ ** removeAudienceFromSpace** ] ( AudiencesApi.md#removeAudienceFromSpace ) | ** DELETE** /spaces/{spaceId}/audiences/{id} | Remove Audience from Space |
1717| [ ** updateAudienceForSpace** ] ( AudiencesApi.md#updateAudienceForSpace ) | ** PATCH** /spaces/{spaceId}/audiences/{id} | Update Audience for Space |
18+ | [ ** updateAudienceScheduleForAudience** ] ( AudiencesApi.md#updateAudienceScheduleForAudience ) | ** PATCH** /spaces/{spaceId}/audiences/{id}/schedules/{scheduleId} | Update Audience Schedule for Audience |
1819
1920
2021
@@ -860,3 +861,82 @@ public class Example {
860861| ** 422** | Validation failure | - |
861862| ** 429** | Too many requests | - |
862863
864+
865+ ## Operation: updateAudienceScheduleForAudience
866+
867+ > UpdateAudienceScheduleForAudience200Response updateAudienceScheduleForAudience(spaceId, id, scheduleId, updateAudienceScheduleForAudienceAlphaInput)
868+
869+ Update Audience Schedule for Audience
870+
871+ Updates an audience schedule for a Linked Audience (audienceType = ; LINKED). • 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.
872+
873+ ### Example
874+
875+ ``` java
876+ // Import classes:
877+ import com.segment.publicapi.ApiClient ;
878+ import com.segment.publicapi.ApiException ;
879+ import com.segment.publicapi.Configuration ;
880+ import com.segment.publicapi.auth.* ;
881+ import com.segment.publicapi.models.* ;
882+ import com.segment.publicapi.api.AudiencesApi ;
883+
884+ public class Example {
885+ public static void main (String [] args ) {
886+ ApiClient defaultClient = Configuration . getDefaultApiClient();
887+
888+ // Configure HTTP bearer authorization: token
889+ HttpBearerAuth token = (HttpBearerAuth ) defaultClient. getAuthentication(" token" );
890+ token. setBearerToken(" BEARER TOKEN" );
891+
892+ AudiencesApi apiInstance = new AudiencesApi (defaultClient);
893+ String spaceId = " 9aQ1Lj62S4bomZKLF4DPqW" ; // String |
894+ String id = " aud_0ujsszwN8NRY24YaXiTIE2VWDTS" ; // String |
895+ String scheduleId = " sch_0ujsszwN8NRY24YaXiTIE2VWDTS" ; // String |
896+ UpdateAudienceScheduleForAudienceAlphaInput updateAudienceScheduleForAudienceAlphaInput = new UpdateAudienceScheduleForAudienceAlphaInput (); // UpdateAudienceScheduleForAudienceAlphaInput |
897+ try {
898+ UpdateAudienceScheduleForAudience200Response result = apiInstance. updateAudienceScheduleForAudience(spaceId, id, scheduleId, updateAudienceScheduleForAudienceAlphaInput);
899+ System . out. println(result);
900+ } catch (ApiException e) {
901+ System . err. println(" Exception when calling AudiencesApi#updateAudienceScheduleForAudience" );
902+ System . err. println(" Status code: " + e. getCode());
903+ System . err. println(" Reason: " + e. getResponseBody());
904+ System . err. println(" Response headers: " + e. getResponseHeaders());
905+ e. printStackTrace();
906+ }
907+ }
908+ }
909+ ```
910+
911+ ### Parameters
912+
913+
914+ | Name | Type | Description | Notes |
915+ | ------------- | ------------- | ------------- | -------------|
916+ | ** spaceId** | ** String** | | |
917+ | ** id** | ** String** | | |
918+ | ** scheduleId** | ** String** | | |
919+ | ** updateAudienceScheduleForAudienceAlphaInput** | [ ** UpdateAudienceScheduleForAudienceAlphaInput** ] ( UpdateAudienceScheduleForAudienceAlphaInput.md ) | | |
920+
921+ ### Return type
922+
923+ [ ** UpdateAudienceScheduleForAudience200Response** ] ( UpdateAudienceScheduleForAudience200Response.md )
924+
925+ ### Authorization
926+
927+ [ token] ( ../README.md#token )
928+
929+ ### HTTP request headers
930+
931+ - ** Content-Type** : application/vnd.segment.v1alpha+json
932+ - ** Accept** : application/vnd.segment.v1alpha+json, application/json
933+
934+
935+ ### HTTP response details
936+ | Status code | Description | Response headers |
937+ | -------------| -------------| ------------------|
938+ | ** 200** | OK | - |
939+ | ** 404** | Resource not found | - |
940+ | ** 422** | Validation failure | - |
941+ | ** 429** | Too many requests | - |
942+
0 commit comments