Problem with orgs/:org/teams/:team_slug call


I am trying to retrieve some informations about a specific team in a specific organization via:

$ curl https:// ******* /api/v3/orgs/my_org/teams/team_slug

Team Info

$ curl https:// ******* /api/v3/orgs/my_org/teams
    "name": "test",
    "id": 8,
    "node_id": " *******",
    "slug": "test",
    "description": "",
    "privacy": "closed",
    "url": "https:// ******* /api/v3/teams/8",
    "members_url": "https:// ******* /api/v3/teams/8/members{/member}",
    "repositories_url": "https:// ******* /api/v3/teams/8/repos",
    "permission": "pull"

Actual Result

$ curl https:// ******* /api/v3/orgs/my_org/teams/test
  "message": "Not Found",
  "documentation_url": ""

Have you tried getting the information via the team ID?

I also ran into this issue. The reason it happens is that getting a team by its slug is a new feature that isn’t part of the Enterprise v2.16 API, but it has been added in the Enterprise v2.17 API. So you will need to upgrade to the latest version before that API call will work.

EDIT Double post because the above was marked as spam and then came back.