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:
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
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
조회 수
답글
좋아요 수
If I do this, it will generate a fragment that only works for emails and not cross-channel
조회 수
답글
좋아요 수
Do you see a way to create cross-channel fragments from UI?
조회 수
답글
좋아요 수
If I change the type to expression it also doesn't work in the API.
조회 수
답글
좋아요 수
@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
조회 수
답글
좋아요 수
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