octokit.rest.teams.create seems to ignore parent_team_id parameter #50
-
Hi, I'm lost in a twisty maze of github repos, all slightly different so I'm not sure where's the best place to ask this or file an issue. But anyway, I'm using Octokit with a GitHub app and when I try to create a team with the octokit.rest.teams.create({
org: this.org,
name: name,
description: description,
privacy: 'closed',
parent_team_id: parent_team_id,
}); If there's a better place to ask about this, please point me in the right direction. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
can you try the following please
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 ( |
Beta Was this translation helpful? Give feedback.
-
I'm sad to say you're probably right that it must have been a bug in my code. Because in the course of making a stripped down program to demonstrate the endpoint thing I got to something that works. Unfortunately I didn't commit all my previous non-working versions so I can't figure out what I did wrong before. Anyway, thanks for the answer. And that |
Beta Was this translation helpful? Give feedback.
can you try the following please
.endpoint
suffix and log out the request parameterscurl
or another tool to send requestsI think it's most likely a bug in your code (
parent_team_id
is undefined or invalid) or in GitHub's API.