Curl command for deleting orphaned XF offers | Community
Skip to main content
Level 2
October 10, 2024
Solved

Curl command for deleting orphaned XF offers

  • October 10, 2024
  • 3 replies
  • 1591 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gokul_Agiwal

Hi @newbie34 

I think first you've to get the list of all offers using the api called List Offers ..  

Adobe Target Admin API Target API v1.0 (adobetarget.com) 

in response you can see the Offer ID and Offer name .. based on the response, you can find the name of the offer along with ID that you want to delete it. 

3 replies

Gokul_Agiwal
Community Advisor
Community Advisor
October 10, 2024

Hi @newbie34  

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. 

 

nnakirikanti
Community Advisor
Community Advisor
October 10, 2024

@newbie34 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

 

Gokul_Agiwal
Community Advisor
Community Advisor
October 11, 2024

Hi @newbie34  

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

newbie34Author
Level 2
October 14, 2024

Hi @gokul_agiwal ,

I am trying to follow the instructions given in https://developer.adobe.com/target/administer/admin-api/#tag/Offers/operation/deleteOffer_1_2   in postman , but how can I find offer ID for XFs which has been exported ?

 

Thanks

Gokul_Agiwal
Community Advisor
Gokul_AgiwalCommunity AdvisorAccepted solution
Community Advisor
October 14, 2024

Hi @newbie34 

I think first you've to get the list of all offers using the api called List Offers ..  

Adobe Target Admin API Target API v1.0 (adobetarget.com) 

in response you can see the Offer ID and Offer name .. based on the response, you can find the name of the offer along with ID that you want to delete it.