Expand my Community achievements bar.

SOLVED

Target API returns "Unsupported.Feature" error

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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



 

View solution in original post

9 Replies

Avatar

Level 10

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

Avatar

Level 2

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

Avatar

Employee

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"}]}

Avatar

Level 2

Hi Parit!

No idea? Do you need more informations?

Avatar

Level 10

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

Avatar

Correct answer by
Level 10

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



 

Avatar

Level 2

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

Avatar

Level 10

Hi Marc,

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

Thanks & Regards

Parit Mittal