You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[**add_activation_to_audience**](ActivationsApi.md#add_activation_to_audience) | **POST** /spaces/{spaceId}/audiences/{audienceId}/destination-connections/{connectionId}/activations | Add Activation to Audience
8
8
[**add_destination_to_audience**](ActivationsApi.md#add_destination_to_audience) | **POST** /spaces/{spaceId}/audiences/{audienceId}/destination-connections | Add Destination to Audience
9
+
[**batch_query_activations_for_space**](ActivationsApi.md#batch_query_activations_for_space) | **POST** /spaces/{spaceId}/activations/batch | Batch Query Activations for Space
9
10
[**get_activation_from_audience**](ActivationsApi.md#get_activation_from_audience) | **GET** /spaces/{spaceId}/audiences/{audienceId}/activations/{id} | Get Activation from Audience
10
11
[**list_activations_from_audience**](ActivationsApi.md#list_activations_from_audience) | **GET** /spaces/{spaceId}/audiences/{audienceId}/activations | List Activations from Audience
11
12
[**list_destinations_from_audience**](ActivationsApi.md#list_destinations_from_audience) | **GET** /spaces/{spaceId}/audiences/{audienceId}/destination-connections | List Destinations from Audience
@@ -171,6 +172,80 @@ Name | Type | Description | Notes
171
172
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
Lists Activations in bulk across many Audiences in one call. Intended for bulk reads, for example pulling activation metadata for hundreds of audiences on a schedule, so callers don't need one `listActivationsFromAudience` call per audience. • 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. The rate limit for this endpoint is 60 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
182
+
183
+
### Example
184
+
185
+
* Bearer Authentication (token):
186
+
```python
187
+
import time
188
+
import os
189
+
import segment_public_api
190
+
from segment_public_api.models.batch_query_activations_for_space200_response import BatchQueryActivationsForSpace200Response
191
+
from segment_public_api.models.batch_query_activations_for_space_alpha_input import BatchQueryActivationsForSpaceAlphaInput
192
+
from segment_public_api.rest import ApiException
193
+
from pprint import pprint
194
+
195
+
196
+
197
+
# Configure Bearer authorization: token
198
+
configuration = segment_public_api.Configuration(
199
+
access_token= os.environ["BEARER_TOKEN"]
200
+
)
201
+
# Enter a context with an instance of the API client
202
+
with segment_public_api.ApiClient(configuration) as api_client:
**429** | Too many requests | * Retry-After - Number of whole seconds to wait before retrying. Sent when the request was rejected because the authentication token is rate limited. Prefer this over your own backoff schedule when present. <br> |
245
+
246
+
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
Copy file name to clipboardExpand all lines: segment_public_api/__init__.py
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,15 @@
7
7
8
8
The Segment Public API helps you manage your Segment Workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a Workspace. See the next sections for more information on how to use the Segment Public API.
9
9
10
-
The version of the OpenAPI document: 73.2.0
10
+
The version of the OpenAPI document: 73.3.0
11
11
Contact: friends@segment.com
12
12
Generated by OpenAPI Generator (https://openapi-generator.tech)
0 commit comments