@libretexts/cxone-expert-node 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -624,22 +624,28 @@ class Pages {
624
624
  });
625
625
  return res.data;
626
626
  }
627
- async postPageProperties(id, funcArgs, reqArgs) {
627
+ async postPageProperties(id, propertyName, propertyValue, funcArgs, reqArgs) {
628
628
  const pageId = this.parsePageId(id);
629
629
  const tld = getTld(this.globals, funcArgs.tld);
630
630
  const requests = new Requests(tld, funcArgs.auth);
631
- const res = await requests.post(`/pages/${pageId}/properties`, "", {
631
+ const res = await requests.post(`/pages/${pageId}/properties`, propertyValue, {
632
+ headers: {
633
+ Slug: propertyName
634
+ },
632
635
  params: {
633
636
  ...reqArgs
634
637
  }
635
638
  });
636
639
  return res.data;
637
640
  }
638
- async putPageProperties(id, funcArgs, reqArgs) {
641
+ async putPageProperties(id, propertyName, propertyValue, funcArgs, reqArgs) {
639
642
  const pageId = this.parsePageId(id);
640
643
  const tld = getTld(this.globals, funcArgs.tld);
641
644
  const requests = new Requests(tld, funcArgs.auth);
642
- const res = await requests.put(`/pages/${pageId}/properties`, "", {
645
+ const res = await requests.put(`/pages/${pageId}/properties`, propertyValue, {
646
+ headers: {
647
+ Slug: propertyName
648
+ },
643
649
  params: {
644
650
  ...reqArgs
645
651
  }