Question
Unable Create Content Fragment using post request for Data Type JsonObject
I am trying to create a content fragment using the post request using /api/assets, it is working fine for all the other Content Fragment Data Type but not for the Data Type JsonObject.
Below is the request i am trying and it is not working. But if i pass a single object in my jsonArray, my content fragment is getting created.
Please let me know if there is any other way other than creating a content model and referencing it.
http://localhost:4502/api/assets/project/content-fragments/en_GB/myModel/tesModel
{
"properties":{
"cq:model":"/conf/cuk/settings/dam/cfm/models/myModel",
"elements": {
"jsonObject" : {
"value" : [
{
"name" : "Name 1"
},
{
"name" : "Name 2"
}
],
":type" : "string"
}
}
}
}