Skip to main content
marc_blecher
Level 2
Oct 18, 2016 9:58 AM UTC
Solved

Target API returns "Unsupported.Feature" error

Hello,

I'm trying to get detail data of an ab activity via the API using the following methode:

Get AB activity by id
get: /{tenant}/target/activities/ab/{id}

The API works well for other method calls but for this one it returns the following error:

{"httpStatus":406,"errors":[{"errorCode":"Unsupported.Feature","message":"Unsupported features detected"}]}

Can you help me with this issue?

Regards
Marc

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ParitMittal
ParitMittalAccepted solution
Level 10
Oct 27, 2016 5:56 AM UTC

Hi Marc / Abhaya,

The only reason that Actiivity cannot be fetched through the Honeybee API (the API calls going through adobe.io) is because it uses selectors or clickTrackSelectors. The Activity seems to have been created in Target Standard and you are trying to fetch it through honeybee APIs. Since the Activity structure is based on an internal implementation detail (selectors), that we don't want to expose to the outside world, the API throws an UnsupportedOperationException.
Please only fetch those activity that you have created through the API.

Thanks & Regards

Parit Mittal



 

9 replies

ParitMittal
Level 10
Oct 19, 2016 10:50 AM UTC

Hi Marc ,

The httpStatus code "406" signifies That  the requested representation is not supported, i.e. anything besides JSON.

Hence to fetch the current definition of a AB activity if it is found as referenced by the id the request should be like :

curl -X GET -H "Content-Type: application/vnd.adobe.target.v1+json" -H "X-Api-Key: " -H "Authorization: Bearer " -H "Cache-Control: no-cache" https://mc.adobe.io/your-tenant/target/activities/ab/8778/

Please see the following links for more information : 

https://www.adobe.io/products/target/docs/getting-started

https://www.adobe.io/products/target/docs/reference/abxt#ActivityList

Thanks & Regards

Parit Mittal

Translate
Level 2
Aug 3, 2021 9:56 PM UTC
are there updated versions of these links?
Translate
marc_blecher
Level 2
Oct 20, 2016 9:25 AM UTC

Hi Parit,

what else could be the reason of this error? Because what you describe is exacly what I'm doing.

Here a more detailed example:

First of all I reading all ab activities

curl -X GET -H "Content-Type: application/vnd.adobe.target.v1+json" -H "X-Api-Key: XYZ" -H "Authorization: Bearer XYZ" -H "Cache-Control: no-cache" https://mc.adobe.io/XYZ/target/activities/?type=ab

This works well. Then I try to receive more details about a particular activity:

curl -X GET -H "Content-Type: application/vnd.adobe.target.v1+json" -H "X-Api-Key: XYZ" -H "Authorization: Bearer XYZ" -H "Cache-Control: no-cache" https://mc.adobe.io/XYZ/target/activities/ab/1234/

The response is then:

{"httpStatus":406,"requestId":"1ZMEXBjUfLWrjqR2ds4amKYosSPCMhok","requestTime":"2016-10-20T09:04:15.723Z","errors":[{"errorCode":"Unsupported.Feature","message":"Unsupported features detected"}]}

Regards
Marc

Translate
abhayat8799898
Adobe Employee
Adobe Employee
Oct 25, 2016 7:22 AM UTC

Hi Parit,

I am getting the exact same error as described by Marc.

The Request is in below format

curl -X GET -H "Content-Type: application/vnd.adobe.target.v1+json" -H "X-Api-Key: " -H "Authorization: Bearer " -H "Cache-Control: no-cache" https://mc.adobe.io/<tenant>/target/activities/ab/<ActivityID>/

And the response is

{"httpStatus":406,"requestId":"xs5GW5DZpYwOOWkhQSEhKKUdRSg5GH9u","requestTime":"2016-10-25T07:18:41.612Z","errors":[{"errorCode":"Unsupported.Feature","message":"Unsupported features detected"}]}
Translate
marc_blecher
Level 2
Oct 25, 2016 7:47 AM UTC

Hi Parit!

No idea? Do you need more informations?

Translate
ParitMittal
Level 10
Oct 25, 2016 1:31 PM UTC

Hi Mark ,

I have reached out to the concerned team and looking for their response for the same .

I will get back to you on this ASAP.

Thanks & Regards 

Parit Mittal

Translate
ParitMittal
ParitMittalAccepted solution
Level 10
Oct 27, 2016 5:56 AM UTC

Hi Marc / Abhaya,

The only reason that Actiivity cannot be fetched through the Honeybee API (the API calls going through adobe.io) is because it uses selectors or clickTrackSelectors. The Activity seems to have been created in Target Standard and you are trying to fetch it through honeybee APIs. Since the Activity structure is based on an internal implementation detail (selectors), that we don't want to expose to the outside world, the API throws an UnsupportedOperationException.
Please only fetch those activity that you have created through the API.

Thanks & Regards

Parit Mittal



 

Translate
marc_blecher
Level 2
Oct 28, 2016 9:36 AM UTC

So I would strongly suggest to mention this restriction in the documentation. :(

Translate
ParitMittal
Level 10
Nov 2, 2016 9:24 AM UTC

Hi Marc,

Yes, I have forwarded the same to the concerned team. Thanks for the feedback .

Thanks & Regards

Parit Mittal

Translate