This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

API Documentation mistake

I wanted to ask if this is an API mistake or something I'm overlooking here

This is the endpoint docs.pingdom.com/.../

This is the example response: 

```

{
"team": [
{
  "id": 1,
  "name": "Team Rocket",
  "members": [
    {
      "id": 1,
      "name": "John Doe",
      "type": "user"
    }, 
    { 
      "id": 4,
      "name": "Sidekick Jimmy",
      "type": "contact"
    }
   ]
}
]}

```

As you can see, it appears to contain a Team object which is an array of objects. However, the actual response is a Team object, not an array: 

```

```
{"team":{"id":123,"name":"Team 1","members":[{"id":123,"name":"xxxxx","type":"user"}]}}

```

Small thing, but I believe if this is a mistake, it should be updated in the documentation. 

Parents Reply Children
No Data