Organizations REST API: Inconsistent data format

I’m finding it really frustrating that the Organizations REST API returns a mix of camel and snake case responses, e.g.

{
  "data": [
    {
      "account_id": "<string>",
      "account_type": "atlassian",
      "account_status": "active",
 ...

and

  "data": [
    {
      "accountId": "12345678-1234-1234-1234-123456789012",
      "accountType": "atlassian",
      "accountStatus": "active",
...

This is pretty basic stuff - having coding standards for APIs you’d expect the results from the same API to be the same.

1 Like

@PeterMcNeil2,

The OpenAPI spec doesn’t include the camel case variation, which makes the inconsistency a bug. Could you report it to developer support?

I have on another API a week or so ago, Maybe some training?

just reported again :slight_smile:

see https://jira.atlassian.com/browse/CONFCLOUD-81187 which you can vote on