Adobe Target API error - VersionConflict.Resource - Cannot delete activity with options in this version of API | Community
Skip to main content
New Participant
November 3, 2020
Solved

Adobe Target API error - VersionConflict.Resource - Cannot delete activity with options in this version of API

  • November 3, 2020
  • 2 replies
  • 1619 views

Hello!

I've been trying to do a cleanup in our Dell Target activities. Here's the request I'm doing:

                       var options = {
                            url: 'https://mc.adobe.io/{tenant}/target/activities/xt/' + activity.id,
                            method: 'DELETE',
                            headers: {
                                'Content-Type': 'application/vnd.adobe.target.v3+json',
                                'Authorization': 'Bearer ' + bearerToken + '',
                                'cache-control': 'no-cache',
                                'X-Api-Key': clientId
                            }
                        };
This is the response I'm getting:
ERROR: Check the log for more info: {"httpStatus":409,"requestId":"{hidden for security reasons}","requestTime":"2020-11-03T18:51:47.053Z","errors":[{"errorCode":"VersionConflict.Resource","message":"Cannot delete activity with options in this version of API"}]}
 
I'm not sending any options. This is happening on over 300 activities. Could you help me out figuring out how to do it?
I'm able to remove offers and audiences just fine. Only activities is not working.
 
Thank you in advance!
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 karandhawan

@paulakfleck Can you please try to add the below header in the API and then check

 

Accept: application/vnd.adobe.target.v3+json

 

Regards,

Karan 

2 replies

karandhawanAccepted solution
Employee
November 26, 2020

@paulakfleck Can you please try to add the below header in the API and then check

 

Accept: application/vnd.adobe.target.v3+json

 

Regards,

Karan 

New Participant
November 5, 2020

Does application/vnd.adobe.target.v2+json work?