Solved
Content Fragments API
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:
"additionalContext": {
"errorList": "[{\"type\":\"https://ns.adobe.com/aep/errors/CJMMAS-1099-400\",\"title\":\"The channel value for the html fragment is invalid. Allowed channel value is email.\",\"status\":400,\"report\":{\"tenantInfo\":null,\"additionalContext\":{\"errorLevel\":\"ERROR\",\"variantId\":\"3c5d37df-254c-48c9-93c0-5725d79f7d56\",\"source\":\"FRAGMENT\",\"allowedChannelValue\":\"email\",\"type\":\"html\"}},\"error-chain\":null}]"
}
}