Targeting Api Post Api202110External Preferred Line Item Targeting Add To Basket Delete By Line Item Id
POST {{baseUrl}}/2023-10/retail-media/preferred-line-items/:line-item-id/targeting/add-to-basket/delete
This endpoint removes one or more add to basket ids from targeting on the specified line item. The resulting state of the add to basket target is returned.
Request Body
{"data"=>{"type"=>"<string>", "attributes"=>{"productIds"=>["<string>", "<string>"], "categoryIds"=>["<string>", "<string>"]}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"data":{"type":"\u003cstring\u003e","attributes":{"scope":"exclude","productIds":["\u003cstring\u003e","\u003cstring\u003e"],"categoryIds":["\u003cstring\u003e","\u003cstring\u003e"]}},"warnings":[{"traceId":"\u003cstring\u003e","traceIdentifier":"\u003cstring\u003e","type":"access-control","code":"\u003cstring\u003e","instance":"\u003cstring\u003e","title":"\u003cstring\u003e","detail":"\u003cstring\u003e","source":{"occaecat6":"\u003cstring\u003e"},"stackTrace":"\u003cstring\u003e"},{"traceId":"\u003cstring\u003e","traceIdentifier":"\u003cstring\u003e","type":"deprecation","code":"\u003cstring\u003e","instance":"\u003cstring\u003e","title":"\u003cstring\u003e","detail":"\u003cstring\u003e","source":{"magna__ac":"\u003cstring\u003e","Lorem7":"\u003cstring\u003e","Duise":"\u003cstring\u003e"},"stackTrace":"\u003cstring\u003e"}],"errors":[{"traceId":"\u003cstring\u003e","traceIdentifier":"\u003cstring\u003e","type":"unknown","code":"\u003cstring\u003e","instance":"\u003cstring\u003e","title":"\u003cstring\u003e","detail":"\u003cstring\u003e","source":{"eiusmod_b8":"\u003cstring\u003e","labore9":"\u003cstring\u003e","reprehenderitd8":"\u003cstring\u003e","Excepteur_91c":"\u003cstring\u003e"},"stackTrace":"\u003cstring\u003e"},{"traceId":"\u003cstring\u003e","traceIdentifier":"\u003cstring\u003e","type":"deprecation","code":"\u003cstring\u003e","instance":"\u003cstring\u003e","title":"\u003cstring\u003e","detail":"\u003cstring\u003e","source":{"esse_247":"\u003cstring\u003e","cupidatat37":"\u003cstring\u003e","aute_d46":"\u003cstring\u003e"},"stackTrace":"\u003cstring\u003e"}]}