pimcore - Pimcore REST API:使用块创建对象
问题描述
我正在尝试通过 pimcore rest api 创建一个新对象。
我试图创建的对象包含块。对象已创建,但应出现在块中的内容未创建。
{
"className": "TrainingCourseMaterial",
"parentId": -1,
"key": "Slides",
"published": true,
"data": {
"elements": [{
"type": "block",
"value": [{
"contentlanguage": "de",
"slides": [{
"image__image": 1859,
"image__hotspots": {
"hotspots": [],
"marker": [],
"crop": []
}
},
{
"image__image": 1860,
"image__hotspots": {
"hotspots": [],
"marker": [],
"crop": []
}
},
{
"image__image": 1861,
"image__hotspots": {
"hotspots": [],
"marker": [],
"crop": []
}
},
{
"image__image": 1862,
"image__hotspots": {
"hotspots": [],
"marker": [],
"crop": []
}
},
{
"image__image": 1863,
"image__hotspots": {
"hotspots": [],
"marker": [],
"crop": []
}
},
{
"image__image": 1864,
"image__hotspots": {
"hotspots": [],
"marker": [],
"crop": []
}
},
{
"image__image": 1865,
"image__hotspots": {
"hotspots": [],
"marker": [],
"crop": []
}
},
{
"image__image": 1866,
"image__hotspots": {
"hotspots": [],
"marker": [],
"crop": []
}
},
{
"image__image": 1867,
"image__hotspots": {
"hotspots": [],
"marker": [],
"crop": []
}
},
{
"image__image": 1868,
"image__hotspots": {
"hotspots": [],
"marker": [],
"crop": []
}
},
{
"image__image": 1869,
"image__hotspots": {
"hotspots": [],
"marker": [],
"crop": []
}
}
]
}
],
"name": "SlidesBlock",
"language": null
}]
}
}
不确定这是否可能。最后的手段是使用 admin api。
解决方案
推荐阅读
- azure-cognitive-services - 升级定价层后无法发布第三个知识库
- solidity - Solidity 无效地址错误
- c - C 指针数组地址分配
- c# - 使用工作单元模式的目的是什么?它与实体框架有什么关系?
- python - 使用公式更新单元格值会导致使用 Sheets API 的撇号前缀
- c - 关于 c 程序中的 myfopen()
- android - 如何在 android 上使用 google maps sdk 添加自定义兴趣点
- mysql - 2 非常快速和简单的查询合并在一起时非常慢
- .net - 在 .NET Web API 中实现默认参数绑定行为
- spring - 动态类型种姓弹簧路径变量