Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 4

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

Hello,

 

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": "https://developer.github.com/enterprise/2.16/v3"
}

 

3 Replies
Community Manager
Message 2 of 4

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

Have you tried getting the information via the team ID?

Copilot Lvl 2
Message 3 of 4

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

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.

 

 

Copilot Lvl 2
Message 4 of 4

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

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