Target API returns "Unsupported.Feature" error | Community
Skip to main content
marc_blecher
October 18, 2016
Solved

Target API returns "Unsupported.Feature" error

  • October 18, 2016
  • 8 replies
  • 3203 views

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.
Best answer by ParitMittal

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



 

8 replies

ParitMittal
October 19, 2016

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

August 3, 2021
are there updated versions of these links?
marc_blecher
October 20, 2016

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

abhayat8799898
Adobe Employee
Adobe Employee
October 25, 2016

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"}]}
marc_blecher
October 25, 2016

Hi Parit!

No idea? Do you need more informations?

ParitMittal
October 25, 2016

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

ParitMittal
ParitMittalAccepted solution
October 27, 2016

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



 

marc_blecher
October 28, 2016

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

ParitMittal
November 2, 2016

Hi Marc,

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

Thanks & Regards

Parit Mittal