API 1.3 - Response Format Changed on some endpoints using the 'Accept' '*/*' header

Options
scott_schubert
scott_schubert Member, ALL USERS, Employee, Certified Model Builder Posts: 2 Master Anaplanner of the Year

Issue

Following the July 11, 2020 release, the format of the response body of the below is being returned in a different format than before the release. This can lead to unexpected results with the logic of some integrations.

 

Endpoints:

api.anaplan/com/1/3/workspaces

api.anaplan/com/1/3/models

api.anaplan/com/1/3/customers

 

Response format before July 11 release

 

 

[
    {
      "guid": "8a81xxx",
      "name": "My test 1"
    },
    {
      "guid": "8a82xxx",
      "name": "My test 2"
    }
]

 

 

 

Response format after July 11 release

 

 

{
  "Workspace": [
    {
      "guid": "8a81xxx",
      "name": "My test 1"
    },
    {
      "guid": "8a82xxx",
      "name": "My test 2"
    }
  ]
}

 

 

 

Workaround 1

Add the below header to requests to the above endpoints:

'Accept':'application/json'

Workaround 2

Remove the 'Accept' header from requests to the above endpoints

 

If these workarounds are not suitable in your use case, please contact Support at support@anaplan.com.

Tagged: