Deactivate an Recurring Inapp delivery in ACS instance through API
Hi,
I am trying to deactivate / expire a Recurring Inapp delivery post execution as I need to deactivate a delivery post 20 days it is triggered. The end date column in the Inapp delivery cannot be personalized or have an expression so unable to configure 20 days expiry for each execution. You can do that manually by going to Inapp delivery dashboard and clicking deactivate button for the active executed Inapp delivery however a manual approach for recurring Inapp execution is not a solution as we need to manually deactivate executed Inapp delivery after 20 days of execution.
I tried to mimic the API calls command that happens when you click deactivate button in the Inapp delivery dashboard however I am unable to authenticate it. Could you please let me know how we can authenticate below as Adobe IO bearer token is not authenticating below end point.
End point - https://samplexxxxxx.campaign.adobe.com/rest/head/delivery//@uNRyobux0vL1dudeGgO27ACMp6a9rR-B1fiZeDqcH7dJ6107DBW6UVzlZE_eA89PFnxMeiu54WUDT7Fri3U14oL9K0s/commands/
Body :
{method: "deactivate"}
RST-360011 An error has occurred - please contact your administrator.
XSV-350041 Bearer token of a technical account must be accompanied with a valid service token.
Regards
Shriniwas