How to create segment via api in adobe experience platform? | Community
Skip to main content
February 15, 2022
Solved

How to create segment via api in adobe experience platform?

  • February 15, 2022
  • 3 replies
  • 1662 views

Hi Team,

 

I have a csv file which has the parameters of a segment (name, from instance, to instance) in dev sandbox, I need to create the same segment in prod sandbox using this parameter file.

 

How can I create a segment via postman api using this file? Also need to iterate through the file in case there are more than 1 segments which needs to be created.

 

In short, how do i copy segment from one sandbox to another?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by adobechat

Hi,

 

First you need to set up postman for AEP by going to Adobe I/O and setting it up, full details in github link below

https://github.com/adobe/experience-platform-postman-samples 

 

Then once you are ready, you can use this API for segment creation

https://experienceleague.adobe.com/docs/experience-platform/segmentation/api/segment-definitions.html?lang=en#create 

 

Happy Config !  😀

3 replies

adobechat
adobechatAccepted solution
Level 5
February 15, 2022

Hi,

 

First you need to set up postman for AEP by going to Adobe I/O and setting it up, full details in github link below

https://github.com/adobe/experience-platform-postman-samples 

 

Then once you are ready, you can use this API for segment creation

https://experienceleague.adobe.com/docs/experience-platform/segmentation/api/segment-definitions.html?lang=en#create 

 

Happy Config !  😀

Gokul_Agiwal
Community Advisor
Community Advisor
February 15, 2022

Hi @user05602 

 

Segmentation Service API helpful in creating a new segment definition. 

https://developer.adobe.com/experience-platform-apis/references/segmentation/

Kishore_Reddy
Community Advisor
Community Advisor
March 5, 2022

Hey @user05602 

 

You can use below documents:

 

1. Detailed guide for Segmentation API

2. Github repo for Segmentation API

3. If you use Postman to run APIs, this reference could help

 

Thanks,

Kishore