How can I activate/publish products and variants via AdminWebApi? I’ve tried adding the following to the Fields in an update to both products and variants, but nothing seems to work:
“_active”: {
“": true
},
“_startDateTimeUtc”: {
"”: “2024-05-03T14:07:30.071Z”
},
“_endDateTimeUtc”: {
“*”: “2024-05-03T14:07:30.071Z”
},
Litium version: 8.14.4
Anyone have any idea about this?
Hi Stephen, I havent tried it my self but publishing is handled via channel links on the variant so perhapps you can use /Litium/api/admin/products/variants/{systemId} and add more channellinks.
“channelLinks”: [
{
“channelSystemId”: “3fa85f64-5717-4562-b3fc-2c963f66afa6”,
“endDateTimeUtc”: “2024-05-13T07:59:49.575Z”,
“startDateTimeUtc”: “2024-05-13T07:59:49.575Z”
}
]
Good idea, I’ll give that a try!
That worked! I totally missed that <insert_facepalm>