Skip to content

octokit.rest.teams.create seems to ignore parent_team_id parameter #50

Answered by gr2m
gigamonkey asked this question in Q&A
Discussion options

You must be logged in to vote

can you try the following please

  1. Run the code you shared but with an .endpoint suffix and log out the request parameters
  2. Try to reproduce the problem with the given request options using curl or another tool to send requests
const requestOptions = octokit.rest.teams.create.endpoint({
      org: this.org,
      name: name,
      description: description,
      privacy: 'closed',
      parent_team_id: parent_team_id,
});

console.log(requestOptions)

I think it's most likely a bug in your code (parent_team_id is undefined or invalid) or in GitHub's API.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gigamonkey
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants