Expand my Community achievements bar.

Curl command for deleting orphaned XF offers

Avatar

Level 2

Hi guys ,

I have a requirement to delete experience-fragments from Adobe Target  exported from an AEM instance which has been wiped-out now . But exported XFs are still present as offers in Target dashboard and there is no option in dashboard to delete them . 

I have been following this documentation -- https://developers.adobetarget.com/api/#delete-offer-by-id  ,but url given here is giving 404 and bearer token  I am not able to find it in Adobe Target project . 

Could you please help me on it ?

 

Sincerely ,

Rahul Kumar

3 Replies

Avatar

Community Advisor

Hi @RahulKu8  

The page is working and I can able to delete the offer by Id. 

Did you try this https://www.postman.com/api-evangelist/adobe/request/hl87a8r/delete-offer-by-id  in postman. provide the request headers like token, tenant ID etc 

Hope this helps. 

 

Avatar

Community Advisor

@RahulKu8 bearer token have to generated before even accessing API, here goes the high level steps.

 

1) You have setup developer access/serviceuser access through Adobe I/O in order to interact with experience or creative cloud platforms. Refer the How to Configure Authentication for Adobe Target APIs | Adobe Target for detailed steps before accessing  Target Admin API's (Start using OAuth2 authentication instead JWT which is going to be decommissioned)

2) Once you were to setup developer access and generate bearer token you should be good to proceed further.

 

I hope this is helpful. If you still need help, please let me know what you've tried so far and what you've failed at.

 

~cheers,

NN

 

Avatar

Community Advisor

Hi @RahulKu8  

Agree with @nnakirikanti  you have to generate the bearer token before accessing the API. Links below 

Also here is the updated Target API link for delete a content offer by ID. https://developer.adobe.com/target/administer/admin-api/#tag/Offers/operation/deleteOffer_1_2 

Thanks