URL METHOD PARAM
Parameter Type Desciption
wp-json/learnpress/v1/wishlist/toggle POST id integer Course ID

Response

"{
  ""status"": ""success"",
  ""message"": ""This course has been added to your wishlists"",
  ""data"": {
    ""text"": {
      ""add"": ""Add to wishlist"",
      ""remove"": ""Remove from wishlist""
    },
    ""type"": ""add"",
    ""items"": [
      196
    ]
  }
}"