I used Entity API to pull data of particular profile. In this case i am geting list of all segments profile had qualified.
Requirement is to fetch only one Segments ID based on condition.
Example : Pull all attributes value with segment ID for a profile based on Opaque Id
Kindly let me know if this is possible
Entity Api i used :
https://platform.adobe.io/data/core/ups/access/entities
Body :
{
"schema": {
"name": "_xdm.context.profile"
},
"fields": [
"person.name.firstName",
"person.name.lastName",
"personalEmail.address",
"person.birthDate",
"mobilePhone.number",
"homePhone.number",
"segmentMembership",
"membershipDetails.enrollMemberMpi"
],
"identities": [
{
"entityId": "09fea7d8-6671-48bb-9472-30bb7ce84b7e",
"entityIdNS": {
"code": "opaqueId"
}
}
],
"limit": 100,
"orderby": "timestamp",
"withCA": false
}