Im trying to the create cross-channel fragment by using APIs, but Im getting this error
Body:
{
"name": "Cyber Monday Sale - Header !!",
"description": "Cyber Monday Sale - Header Banner!!",
"type": "html",
"channels": [
"shared"
],
"source": {
"origin": "ajo",
"metadata": {}
},
"fragment": {
"content": "<div> Hi {{profile.person.name}} its a great day to shop !! </div>",
"editorContext": {}
}
}
Response:
Solved! Go to Solution.
Views
Replies
Total Likes
Hey @Anuhya-Y
Here is the correct body to create Cross-Channel Fragments
{
"name": "Cyber Monday Sale - Header !!",
"description": "Cyber Monday Sale - Header Banner!!",
"type": "expression",
"source": {
"origin": "ajo",
"metadata": { }
},
"fragment": {
"expression": "Hi {{profile.person.name}} its a great day to shop !!"
},
"subType": "html",
"channels": [
"shared"
]
}Also, the Adobe API Documentation was updated
change channel to "email" and try
Views
Replies
Total Likes
If I do this, it will generate a fragment that only works for emails and not cross-channel
Views
Replies
Total Likes
Do you see a way to create cross-channel fragments from UI?
Views
Replies
Total Likes
If I change the type to expression it also doesn't work in the API.
Views
Replies
Total Likes
@riballor The document mentions that fragments are available only for email channel. as of now. However, the API indicates that they support other channels as well. I suggest raising an Adobe support ticket to clarify this discrepancy
Views
Replies
Total Likes
Hey @Anuhya-Y
Here is the correct body to create Cross-Channel Fragments
{
"name": "Cyber Monday Sale - Header !!",
"description": "Cyber Monday Sale - Header Banner!!",
"type": "expression",
"source": {
"origin": "ajo",
"metadata": { }
},
"fragment": {
"expression": "Hi {{profile.person.name}} its a great day to shop !!"
},
"subType": "html",
"channels": [
"shared"
]
}Also, the Adobe API Documentation was updated
Views
Likes
Replies