Adobe Target API issues - InvalidProperty.Json/Unrecognized property name

nicolec5631060

01-09-2020

Issue 1: Tried to do a POST via postman to confirm the error we see in AEM: https://mc.adobe.io/<<tenant ID>>/target/activities/xt?includeMarketingCloudMetadata=true
with request body as mentioned in api doc https://developers.adobetarget.com/api/#create-xt-activity

 

Method: POST

 

Headers [{"key":"Content-Type","value":"application/vnd.adobe.target.v3+json","description":"","type":"text","enabled":true}]
X-Api-Key
Authorization

Body: Contains the following as per documentation

 "analytics": {
        "reportSuite": "test",
        "dataCollectionHost":"test"
    },
Response:
{
    "httpStatus"400,
    "requestId""EB0NTYFri7wQlsI1ZeYXQocX9CJx58Lj",
    "requestTime""2020-09-01T12:18:18.280Z",
    "errors": [
        {
            "errorCode""InvalidProperty.Json",
            "message""Invalid Json. Unrecognized property name 'reportSuite'. Location: line - 73, column - 25.",
            "meta": {
                "propertyName""reportSuite",
                "line"73,
                "column"25
            }
        }
    ]
}

On debugging further it was noted that when you search for the activity by the ID , it contains the "reportSuite" propertyname/ key.

Issue 2: we see  that the response for getting an XT activity by an ID gives us  "offerLocations", in the response but the same key/parameter name is not accepted when one tries to create an activity, The parameter or key name accepted is "
optionLocations".
{
            "experienceLocalId"4,
            "name""Experience B",
            "visitorPercentage"50,
            "offerLocations": [
                {
                    "locationLocalId"0,
                    "offerId"705595
                }
            ]
        }

Accepted Solutions (0)

Answers (0)