Hi, I have a collection where the records have an array of attached files. I found that if I send a put to the content api “https://site-api.datocms.com/items/167588323”, it will replace the whole array I send with the old one, is there a way to just add the new attached files to the already existing array instead or am I doing this the right and only way? Thanks.
{
"data":{
"id":"167588323",
"type":"item",
"attributes":{
"body":"test",
"title":"test",
"distributorid":999998,
"author":"test",
"audience":[
"132964517",
"60954060"
],
"attachedfiles":[
{
"upload_id":"66508869",
"FileName":"bg.png",
"MimeType":"image/png",
"Url":"https://www.datocms-assets.com/65985/1691077851-bg.png",
"Title":null,
"Format":"png",
"created_at":"0001-01-01T00:00:00",
"updated_at":"0001-01-01T00:00:00",
"Content":null,
"file_length":0,
"DistributorNumber":0
},
{
"upload_id":"66508870",
"FileName":"logobar.png",
"MimeType":"image/png",
"Url":"https://www.datocms-assets.com/65985/1691077868-logobar.png",
"Title":null,
"Format":"png",
"created_at":"0001-01-01T00:00:00",
"updated_at":"0001-01-01T00:00:00",
"Content":null,
"file_length":0,
"DistributorNumber":0
}
]
},
"relationships":{
"item_type":{
"data":{
"id":"632150",
"type":"item_type"
}
}
}
}
}