Adobe Suite Audience metadata templates API

Audience metadata templates allow you to programmatically manage audiences in your destination. For a description of when to use this endpoint, see the overview on [audience metadata management](http://www.adobe.com/go/destination-sdk-audience-metadata-en) in the Destination SDK documentation.

Operations 5

GET /audience-templates Retrieve all audience templates #
POST /audience-templates Create an audience template #
GET /audience-templates/{INSTANCE_ID} Retrieve a specific audience template #
PUT /audience-templates/{INSTANCE_ID} Update an audience template #
DELETE /audience-templates/{INSTANCE_ID} Delete an audience template #

Documentation

📖
Documentation
https://developer.adobe.com/photoshop/api/docs/
📖
Authentication
https://developer.adobe.com/developer-console/docs/guides/authentication/
📖
Documentation
https://developer.adobe.com/lightroom/api/docs/
📖
Documentation
https://developer.adobe.com/illustrator/api/docs/
📖
Documentation
https://developer.adobe.com/indesign/docs/
📖
Documentation
https://developer.adobe.com/document-services/docs/overview/pdf-services-api/
📖
Documentation
https://developer.adobe.com/document-services/docs/overview/pdf-extract-api/
📖
GettingStarted
https://developer.adobe.com/document-services/docs/overview/pdf-extract-api/gettingstarted/
📖
Documentation
https://developer.adobe.com/document-services/docs/overview/pdf-accessibility-auto-tag-api/
📖
Documentation
https://developer.adobe.com/analytics-apis/docs/
📖
APIReference
https://developer.adobe.com/analytics-apis/docs/2.0/
📖
Documentation
https://developer.adobe.com/firefly-services/docs/
📖
APIReference
https://developer.adobe.com/firefly-services/docs/api/
📖
Documentation
https://developer.adobe.com/audio-video-firefly-services/
📖
GettingStarted
https://developer.adobe.com/audio-video-firefly-services/getting-started/
📖
Documentation
https://developer.adobe.com/creative-cloud-libraries/docs/
📖
APIReference
https://developer.adobe.com/creative-cloud-libraries/docs/api/
📖
Documentation
https://developer.adobe.com/express/embed-sdk/docs/guides/
📖
APIReference
https://developer.adobe.com/express/embed-sdk/docs/v4/
📖
GettingStarted
https://developer.adobe.com/express/embed-sdk/docs/guides/quickstart/
📖
Documentation
https://developer.adobe.com/experience-platform-apis/
📖
GettingStarted
https://experienceleague.adobe.com/en/docs/experience-platform/landing/platform-apis/api-guide
📖
Documentation
https://developer.adobe.com/marketo-apis/
📖
Authentication
https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/rest/authentication
📖
Documentation
https://developer.adobe.com/commerce/docs/
📖
GettingStarted
https://developer.adobe.com/commerce/webapi/get-started/
📖
Documentation
https://developer.adobe.com/experience-cloud/cloud-manager/
📖
Documentation
https://developer.adobe.com/journey-optimizer-apis/
📖
Documentation
https://developer.adobe.com/workfront-apis/
📖
Documentation
https://developer.adobe.com/firefly-services/docs/substance3d/
📖
Documentation
https://developer.adobe.com/data-collection-apis/
📖
Documentation
https://developer.adobe.com/adobe-status/
📖
Documentation
https://developer.adobe.com/vip-marketplace/

Specifications

Other Resources

🔗
Pricing
https://developer.adobe.com/document-services/pricing/
🔗
SDKs
https://developer.adobe.com/document-services/docs/overview/pdf-services-api/sdks/
🔗
ReleaseNotes
https://developer.adobe.com/document-services/docs/overview/pdf-services-api/releasenotes
🔗
Guides
https://developer.adobe.com/analytics-apis/docs/2.0/guides/
🔗
Guides
https://developer.adobe.com/firefly-services/docs/guides/
🔗
Usage Notes
https://developer.adobe.com/audio-video-firefly-services/getting_started/usage/
🔗
Overview
https://developer.adobe.com/creative-cloud-libraries/docs/overview/
🔗
Integration Guide
https://developer.adobe.com/creative-cloud-libraries/docs/integrate/
🔗
API Fundamentals
https://experienceleague.adobe.com/en/docs/experience-platform/landing/platform-apis/api-fundamentals
🔗
Developer Guide
https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/home
🔗
REST API
https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/rest/rest-api
🔗
REST API
https://developer.adobe.com/commerce/webapi/rest/
🔗
GraphQL API
https://developer.adobe.com/commerce/webapi/graphql-api/
🔗
REST API Reference
https://developer.adobe.com/commerce/webapi/reference/rest/paas/
🔗
GraphQL
https://raw.githubusercontent.com/api-evangelist/adobe-suite/refs/heads/main/graphql/adobe-suite-graphql.md
🔗
Webhooks
https://developer.adobe.com/experience-cloud/cloud-manager/guides/getting-started/create-event-integration/
🔗
StatusPage
https://status.adobe.com/

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/adobe-suite-audience-metadata-templates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

adobe-suite-audience-metadata-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: "Adobe Experience Platform Destination SDK (also referred to as the *Destination Authoring API*) is a suite of configuration APIs that allow you to configure destination integration patterns for Experience Platform to deliver audience and profile data to your endpoint, based on data and authentication formats of your choice. \n- **Related documentation**:\n    - [Destination SDK overview](http://www.adobe.com/go/destination-sdk-overview-en)\n    - [Getting started](http://www.adobe.com/go/destination-sdk-getting-started-en)\n\n- **Visualize API calls with Postman (a free, third-party software)**:\n    - [Destination Authoring API Postman collection on GitHub](https://github.com/adobe/experience-platform-postman-samples/blob/master/apis/experience-platform/Destination%20Authoring%20API.postman_collection.json)\n    - [Video guide for creating the Postman environment](https://video.tv.adobe.com/v/28832)\n    - [Steps for importing environments and collections in Postman](https://learning.postman.com/docs/getting-started/importing-and-exporting-data/)\n\n- **API paths**:\n    - PLATFORM Gateway URL: https://<span>platform.adobe.io\n    - Base path for this API: /data/core/activation/authoring\n    - Example of a complete path for making a call to \"/destinations\": https://<span>platform.adobe.io/data/core/activation/authoring/destinations\n\n- **Required headers**:\n    - All service calls require the headers `Authorization`, `x-gw-ims-org-id`, and `x-api-key`. For more information on how to obtain these values, see the [authentication tutorial](http://www.adobe.com/go/platform-api-authentication-en).\n    - All resources in Experience Platform are isolated to specific virtual sandboxes. All requests to Platform APIs require the header `x-sandbox-name` whose value is the all-lowercase name of the sandbox the operation will take place in (for example, \"prod\"). See the [sandboxes overview](https://adobe.com/go/sandbox-overview-en) for more information.\n    - All requests with a payload in the request body (such as POST, PUT, and PATCH calls) must include the header `Content-Type` with a value of `application/json`.\n\n- **API error handling**:\n    - Refer to the Experience Platform API troubleshooting guide for [FAQs](https://experienceleague.adobe.com/docs/experience-platform/landing/troubleshooting.html?lang=en#faq), [API status codes](https://experienceleague.adobe.com/docs/experience-platform/landing/troubleshooting.html?lang=en#api-status-codes), and [request header errors](https://experienceleague.adobe.com/docs/experience-platform/landing/troubleshooting.html?lang=en#request-header-errors)."
  version: '1.0'
  title: Destination Authoring Audience metadata templates API
servers:
- url: https://platform.adobe.io/data/core/activation/authoring
  description: Production server
tags:
- name: Audience metadata templates
  description: Audience metadata templates allow you to programmatically manage audiences in your destination. <br><br> For a description of when to use this endpoint, see the overview on [audience metadata management](http://www.adobe.com/go/destination-sdk-audience-metadata-en) in the Destination SDK documentation.
paths:
  /audience-templates:
    get:
      tags:
      - Audience metadata templates
      summary: Retrieve all audience templates
      description: You can retrieve a list of all audience templates for your IMS Organization by making a `GET` request to the `/authoring/audience-templates` endpoint.
      operationId: listAudienceTemplate
      parameters:
      - $ref: '#/components/parameters/authorization'
      - $ref: '#/components/parameters/x-api-key'
      - $ref: '#/components/parameters/x-gw-ims-org-id'
      - $ref: '#/components/parameters/x-sandbox-name'
      responses:
        '200':
          description: A successful response returns HTTP status 200 with a list of audience templates that you have access to, based on the IMS Org ID and sandbox name that you used. One instanceId corresponds to one audience template.
          x-summary: Audience templates retrieved
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/audienceTemplateResponse'
              examples:
                default:
                  value:
                    items:
                    - instanceId: 34ab9cc2-2536-44a5-9dc5-b2fea60b3bd6
                      createdDate: '2021-07-26T19:30:52.012490Z'
                      lastModifiedDate: '2021-07-27T21:25:42.763478Z'
                      metadataTemplate:
                        create:
                          url: https://api.moviestar.com/v1/adaccounts/{{customerData.accountId}}/segments
                          httpMethod: POST
                          headers:
                          - value: application/json
                            header: Content-Type
                          - value: Bearer {{oauth2ServiceAccessToken}}
                            header: Authorization
                          requestBody:
                            json:
                              segments:
                              - name: '{{segment.name}}'
                                description: '{{segment.description}}'
                                source_type: FIRST_PARTY
                                ad_account_id: '{{customerData.accountId}}'
                                retention_in_days: 180
                          responseFields:
                          - value: '{{body.segments[0].segment.id}}'
                            name: externalAudienceId
                          responseErrorFields:
                          - value: '{{root}}'
                            name: message
                        update:
                          url: https://adsapi.moviestar.com/v1/adaccounts/{{customerData.accountId}}/segments
                          httpMethod: PUT
                          headers:
                          - value: application/json
                            header: Content-Type
                          - value: Bearer {{oauth2ServiceAccessToken}}
                            header: Authorization
                          requestBody:
                            json:
                              segments:
                              - id: '{{segment.alias}}'
                                name: '{{segment.name}}'
                                description: '{{segment.description}}'
                          responseFields:
                          - value: '{{body.segments[0].segment.id}}'
                            name: externalAudienceId
                          responseErrorFields:
                          - value: '{{root}}'
                            name: message
                        delete:
                          url: https://adsapi.moviestar.com/v1/segments/{{segment.alias}}
                          httpMethod: DELETE
                          headers:
                          - value: application/json
                            header: Content-Type
                          - value: Bearer {{oauth2ServiceAccessToken}}
                            header: Authorization
                          responseErrorFields:
                          - value: '{{root}}'
                            name: message
                        name: Moviestar destination audience template - Example 1
        '401':
          description: Unauthorized. A mandatory header might be missing from the request or you may be missing permissions to access the resource. Verify your request and try again.
          x-summary: Unauthorized access
        '403':
          description: Forbidden. The requester is not authorized to access the resource or a mandatory header might be missing from the request. Verify your request and try again.
          x-summary: Access forbidden
    post:
      tags:
      - Audience metadata templates
      summary: Create an audience template
      description: You can create a new audience template by making a `POST` request to the `/authoring/audience-templates` endpoint. <br><br> For some destinations created using Destination SDK, you need to create an audience metadata configuration to programmatically create, update, or delete audience metadata in the destination. <br><br> The request creates a new audience template, configured by the parameters provided in the payload. The payload includes all parameters accepted by the `/authoring/audience-templates` endpoint. Note that you do not have to add all parameters on the call and that the template is customizable, according to your API requirements.
      operationId: createAudienceTemplate
      parameters:
      - $ref: '#/components/parameters/authorization'
      - $ref: '#/components/parameters/x-api-key'
      - $ref: '#/components/parameters/x-gw-ims-org-id'
      - $ref: '#/components/parameters/x-sandbox-name'
      requestBody:
        description: The following request creates a new audience template, configured by the parameters provided in the payload. The payload below includes all parameters accepted by the `/authoring/audience-templates` endpoint. Note that you do not have to add all parameters on the call and that the template is customizable, according to your API requirements. <br><br> Example payload with a Test Webhook Audience Template including create, update, delete operations for both audiences and destinations, plus validations. See the full example in the [create audience template documentation](https://experienceleague.adobe.com/docs/experience-platform/destinations/destination-sdk/metadata-api/create-audience-template.html).
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/audienceTemplate'
            examples:
              default:
                value:
                  metadataTemplate:
                    name: Test Webhook Audience Template
                    create:
                      url: https://your-webhook-site/0bd222fa-8ae2-433b-8f0e-f2ce137b0ee4/{{customerData.customerID}}/segments
                      httpMethod: POST
                      headers:
                      - value: application/json
                        header: Content-Type
                      - value: Bearer {{authData.token}}
                        header: Authorization
                      requestBody:
                        json:
                          name: '{{segment.name}}'
                          type: segment
                          metadata:
                            org_id: '{{destination.imsOrgId}}'
                            sandbox: '{{destination.sandboxName}}'
                            destination_id: '{{destination.id}}'
                            destination_name: '{{destination.name}}'
                            segmentEnrichmentAttributes: '{% set columns = [] %}{% for atr in segmentEnrichmentAttributes %}{% set columns = columns|merge([atr.source]) %}{% endfor %}{{ columns | toJson }}'
                          external_id: '{{segment.id}}'
                      responseFields:
                      - value: '{{headers.X-Request-Id}}'
                        name: externalAudienceId
                      responseErrorFields:
                      - value: '{{root}}'
                        name: message
                    update:
                      url: https://your-webhook-site/0bd222fa-8ae2-433b-8f0e-f2ce137b0ee4/{{customerData.customerID}}/segments/{{segment.alias}}
                      httpMethod: PUT
                      headers:
                      - value: application/json
                        header: Content-Type
                      - value: Bearer {{authData.token}}
                        header: Authorization
                      requestBody:
                        json:
                          name: '{{segment.name}}'
                          type: segment
                          metadata:
                            org_id: '{{destination.imsOrgId}}'
                            sandbox: '{{destination.sandboxName}}'
                            destination_id: '{{destination.id}}'
                            destination_name: '{{destination.name}}'
                            segmentEnrichmentAttributes: '{% set columns = [] %}{% for atr in segmentEnrichmentAttributes %}{% set columns = columns|merge([atr.source]) %}{% endfor %}{{ columns | toJson }}'
                          external_id: '{{segment.id}}'
                      responseFields:
                      - value: '{{headers.X-Request-Id}}'
                        name: externalAudienceId
                      responseErrorFields:
                      - value: '{{root}}'
                        name: message
                    delete:
                      url: https://your-webhook-site/0bd222fa-8ae2-433b-8f0e-f2ce137b0ee4/{{customerData.customerID}}/segments/{{segment.alias}}
                      httpMethod: DELETE
                      headers:
                      - value: Bearer {{authData.token}}
                        header: Authorization
                      responseErrorFields:
                      - value: '{{root}}'
                        name: message
                    createDestination:
                      url: https://your-webhook-site/0bd222fa-8ae2-433b-8f0e-f2ce137b0ee4/{{customerData.customerID}}/createDestination
                      httpMethod: POST
                      headers:
                      - value: application/json
                        header: Content-Type
                      - value: Bearer {{authData.token}}
                        header: Authorization
                      requestBody:
                        json:
                          name: '{{destination.name}}'
                          type: destination
                          metadata:
                            org_id: '{{destination.imsOrgId}}'
                            sandbox: '{{destination.sandboxName}}'
                            destination_id: '{{destination.id}}'
                            destination_name: '{{destination.name}}'
                            enrichmentAttributes: '{{destination.enrichmentAttributes}}'
                          external_id: '{{destination.id}}'
                      responseFields:
                      - value: '{{headers.X-Request-Id}}'
                        name: externalAudienceId
                      responseErrorFields:
                      - value: '{{root}}'
                        name: message
                    updateDestination:
                      url: https://your-webhook-site/0bd222fa-8ae2-433b-8f0e-f2ce137b0ee4/{{customerData.customerID}}/updateDestination
                      httpMethod: POST
                      headers:
                      - value: application/json
                        header: Content-Type
                      - value: Bearer {{authData.token}}
                        header: Authorization
                      requestBody:
                        json:
                          name: '{{destination.name}}'
                          type: destination
                          metadata:
                            org_id: '{{destination.imsOrgId}}'
                            sandbox: '{{destination.sandboxName}}'
                            destination_id: '{{destination.id}}'
                            destination_name: '{{destination.name}}'
                            enrichmentAttributes: '{{destination.enrichmentAttributes}}'
                          external_id: '{{destination.id}}'
                      responseFields:
                      - value: '{{headers.X-Request-Id}}'
                        name: externalAudienceId
                      responseErrorFields:
                      - value: '{{root}}'
                        name: message
                    deleteDestination:
                      url: https://your-webhook-site/0bd222fa-8ae2-433b-8f0e-f2ce137b0ee4/{{customerData.customerID}}/deleteDestination
                      httpMethod: DELETE
                      headers:
                      - value: Bearer {{authData.token}}
                        header: Authorization
                      responseErrorFields:
                      - value: '{{root}}'
                        name: message
                      validations:
                      - field: string
                        regex: string
      responses:
        '200':
          description: A successful response returns HTTP status 200 with details of your newly created audience template.
          x-summary: Audience template created
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/audienceTemplateResponse'
        '400':
          description: Bad request. The request payload was incorrectly formatted. Check your payload formatting before trying again.
          x-summary: Bad request due to incorrect payload formatting
        '401':
          description: Unauthorized. A mandatory header might be missing from the request or you may be missing permissions to access the resource. Verify your request before trying again.
          x-summary: Unauthorized access
        '403':
          description: Forbidden. The requester is not authorized to access the resource or a mandatory header might be missing from the request. Verify your request before trying again.
          x-summary: Access forbidden
  /audience-templates/{INSTANCE_ID}:
    get:
      tags:
      - Audience metadata templates
      summary: Retrieve a specific audience template
      description: You can retrieve detailed information about a specific audience template by making a GET request to the `/audience-templates` endpoint and providing the ID of the audience template you want to retrieve.
      operationId: retrieveAudienceTemplate
      parameters:
      - $ref: '#/components/parameters/authorization'
      - $ref: '#/components/parameters/x-api-key'
      - $ref: '#/components/parameters/x-gw-ims-org-id'
      - $ref: '#/components/parameters/x-sandbox-name'
      - name: INSTANCE_ID
        in: path
        description: The ID of the audience template you want to retrieve.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: A successful response returns HTTP status 200 with the details of the audience template corresponding to the INSTANCE_ID provided on the call.
          x-summary: Audience template configuration retrieved
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/audienceTemplateResponse'
              examples:
                default:
                  value:
                    items:
                    - instanceId: 34ab9cc2-2536-44a5-9dc5-b2fea60b3bd6
                      createdDate: '2021-07-26T19:30:52.012490Z'
                      lastModifiedDate: '2021-07-27T21:25:42.763478Z'
                      metadataTemplate:
                        create:
                          url: https://api.moviestar.com/v1/adaccounts/{{customerData.accountId}}/segments
                          httpMethod: POST
                          headers:
                          - value: application/json
                            header: Content-Type
                          - value: Bearer {{oauth2ServiceAccessToken}}
                            header: Authorization
                          requestBody:
                            json:
                              segments:
                              - name: '{{segment.name}}'
                                description: '{{segment.description}}'
                                source_type: FIRST_PARTY
                                ad_account_id: '{{customerData.accountId}}'
                                retention_in_days: 180
                          responseFields:
                          - value: '{{body.segments[0].segment.id}}'
                            name: externalAudienceId
                          responseErrorFields:
                          - value: '{{root}}'
                            name: message
                        update:
                          url: https://adsapi.moviestar.com/v1/adaccounts/{{customerData.accountId}}/segments
                          httpMethod: PUT
                          headers:
                          - value: application/json
                            header: Content-Type
                          - value: Bearer {{oauth2ServiceAccessToken}}
                            header: Authorization
                          requestBody:
                            json:
                              segments:
                              - id: '{{segment.alias}}'
                                name: '{{segment.name}}'
                                description: '{{segment.description}}'
                          responseFields:
                          - value: '{{body.segments[0].segment.id}}'
                            name: externalAudienceId
                          responseErrorFields:
                          - value: '{{root}}'
                            name: message
                        delete:
                          url: https://adsapi.moviestar.com/v1/segments/{{segment.alias}}
                          httpMethod: DELETE
                          headers:
                          - value: application/json
                            header: Content-Type
                          - value: Bearer {{oauth2ServiceAccessToken}}
                            header: Authorization
                          responseErrorFields:
                          - value: '{{root}}'
                            name: message
                        name: Moviestar destination audience template - Example 1
        '400':
          description: Bad request. The request payload was incorrectly formatted. Check your payload formatting before trying again.
          x-summary: Bad request due to incorrect formatting
        '401':
          description: Unauthorized. A mandatory header might be missing from the request or you may be missing permissions to access the resource. Verify your request before trying again.
          x-summary: Unauthorized access
        '403':
          description: Forbidden. The requester is not authorized to access the resource or a mandatory header might be missing from the request. Verify your request before trying again.
          x-summary: Access forbidden
        '404':
          description: Resource not found. Verify that you are using the correct audience template configuration ID before trying again.
          x-summary: Resource not found
    put:
      tags:
      - Audience metadata templates
      summary: Update an audience template
      description: You can update an existing audience template by making a `PUT` request to the `/authoring/audience-templates` endpoint with the updated payload. <br><br> To obtain an existing audience template and its corresponding `{INSTANCE_ID}`, see [Retrieve an audience template](#operation/retrieveAudienceTemplate). <br><br> The request updates an existing audience metadata template, configured by the parameters provided in the payload.
      operationId: updateAudienceTemplate
      parameters:
      - $ref: '#/components/parameters/authorization'
      - $ref: '#/components/parameters/x-api-key'
      - $ref: '#/components/parameters/x-gw-ims-org-id'
      - $ref: '#/components/parameters/x-sandbox-name'
      - name: INSTANCE_ID
        in: path
        description: The ID of the audience template that you want to update. To obtain an existing audience template and its corresponding INSTANCE_ID, see [Retrieve a audience template](#operation/retrieveAudienceTemplate).
        required: true
        schema:
          type: string
      requestBody:
        description: The following request updates an existing audience metadata template, configured by the parameters provided in the payload. See the full example in the [update audience template documentation](https://experienceleague.adobe.com/docs/experience-platform/destinations/destination-sdk/metadata-api/update-audience-template.html).
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/audienceTemplate'
            examples:
              default:
                value:
                  metadataTemplate:
                    name: Test Webhook Audience Template
                    create:
                      url: https://your-webhook-site/0bd222fa-8ae2-433b-8f0e-f2ce137b0ee4/{{customerData.customerID}}/segments
                      httpMethod: POST
                      headers:
                      - value: application/json
                        header: Content-Type
                      - value: Bearer {{authData.token}}
                        header: Authorization
                      requestBody:
                        json:
                          name: '{{segment.name}}'
                          type: segment
                          metadata:
                            org_id: '{{destination.imsOrgId}}'
                            sandbox: '{{destination.sandboxName}}'
                            destination_id: '{{destination.id}}'
                            destination_name: '{{destination.name}}'
                            segmentEnrichmentAttributes: '{% set columns = [] %}{% for atr in segmentEnrichmentAttributes %}{% set columns = columns|merge([atr.source]) %}{% endfor %}{{ columns | toJson }}'
                          external_id: '{{segment.id}}'
                      responseFields:
                      - value: '{{headers.X-Request-Id}}'
                        name: externalAudienceId
                      responseErrorFields:
                      - value: '{{root}}'
                        name: message
                    update:
                      url: https://your-webhook-site/0bd222fa-8ae2-433b-8f0e-f2ce137b0ee4/{{customerData.customerID}}/segments/{{segment.alias}}
                      httpMethod: PUT
                      headers:
                      - value: application/json
                        header: Content-Type
                      - value: Bearer {{authData.token}}
                        header: Authorization
                      requestBody:
                        json:
                          name: '{{segment.name}}'
                          type: segment
                          metadata:
                            org_id: '{{destination.imsOrgId}}'
                            sandbox: '{{destination.sandboxName}}'
                            destination_id: '{{destination.id}}'
                            destination_name: '{{destination.name}}'
                            segmentEnrichmentAttributes: '{% set columns = [] %}{% for atr in segmentEnrichmentAttributes %}{% set columns = columns|merge([atr.source]) %}{% endfor %}{{ columns | toJson }}'
                          external_id: '{{segment.id}}'
                      responseFields:
                      - value: '{{headers.X-Request-Id}}'
                        name: externalAudienceId
                      responseErrorFields:
                      - value: '{{root}}'
                        name: message
                    delete:
                      url: https://your-webhook-site/0bd222fa-8ae2-433b-8f0e-f2ce137b0ee4/{{customerData.customerID}}/segments/{{segment.alias}}
                      httpMethod: DELETE
                      headers:
                      - value: Bearer {{authData.token}}
                        header: Authorization
                      responseErrorFields:
                      - value: '{{root}}'
                        name: message
                    createDestination:
                      url: https://your-webhook-site/0bd222fa-8ae2-433b-8f0e-f2ce137b0ee4/{{customerData.customerID}}/createDestination
                      httpMethod: POST
                      headers:
                      - value: application/json
                        header: Content-Type
                      - value: Bearer {{authData.token}}
                        header: Authorization
                      requestBody:
                        json:
                          name: '{{destination.name}}'
                          type: destination
                          metadata:
                            org_id: '{{destination.imsOrgId}}'
                            sandbox: '{{destination.sandboxName}}'
                            destination_id: '{{destination.id}}'
                            destination_name: '{{destination.name}}'
                            enrichmentAttributes: '{{destination.enrichmentAttributes}}'
                          external_id: '{{destination.id}}'
                      responseFields:
                      - value: '{{headers.X-Request-Id}}'
                        name: externalAudienceId
                      responseErrorFields:
                      - value: '{{root}}'
                        name: message
                    updateDestination:
                      url: https://your-webhook-site/0bd222fa-8ae2-433b-8f0e-f2ce137b0ee4/{{customerData.customerID}}/updateDestination
                      httpMethod: POST
                      headers:
                      - value: application/json
                        header: Content-Type
                      - value: Bearer {{authData.token}}
                        header: Authorization
                      requestBody:
                        json:
                          name: '{{destination.name}}'
                          type: destination
                          metadata:
                            org_id: '{{destination.imsOrgId}}'
                            sandbox: '{{destination.sandboxName}}'
                            destination_id: '{{destination.id}}'
                            destination_name: '{{destination.name}}'
                            enrichmentAttributes: '{{destination.enrichmentAttributes}}'
                          external_id: '{{destination.id}}'
                      responseFields:
                      - value: '{{headers.X-Request-Id}}'
                        name: externalAudienceId
                      responseErrorFields:
                      - value: '{{root}}'
                        name: message
                    deleteDestination:
                      url: https://your-webhook-site/0bd222fa-8ae2-433b-8f0e-f2ce137b0ee4/{{customerData.customerID}}/deleteDestination
                      httpMethod: DELETE
                      headers:
                      - value: Bearer {{authData.token}}
                        header: Authorization
                      responseErrorFields:
                      - value: '{{root}}'
                        name: message
      responses:
        '200':
          description: A successful response returns HTTP status 200 with details of your updated audience template.
          x-summary: Audience template updated
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/audienceTemplateResponse'
        '400':
          description: Bad request. The request payload was incorrectly formatted. Check your payload formatting before trying again.
          x-summary: Bad request due to incorrect formatting
        '401':
          description: Unauthorized. A mandatory header might be missing from the request or you may be missing permissions to access the resource. Verify your request before trying again.
          x-summary: Unauthorized access
        '403':
          description: Forbidden. The requester is not authorized to access the resource or a mandatory header might be missing from the request. Verify your request before trying again.
          x-summary: Access forbidden
        '404':
          description: Resource not found. Verify that you are using the correct audience template configuration ID before trying again.
          x-summary: Resource not found
    delete:
      tags:
      - Audience metadata templates
      summary: Delete an audience template
      description: You can delete an existing audience t

# --- truncated at 32 KB (42 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/adobe-suite/refs/heads/main/openapi/adobe-suite-audience-metadata-templates-api-openapi.yml