You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error
{
"message": "Invalid request.\n\nFor 'properties/parent_team_id', "7100545" is not a number.",
"documentation_url": "https://docs.github.com/rest/teams/teams#create-a-team"
}
gh: Invalid request.
For 'properties/parent_team_id', "7100545" is not a number. (HTTP 422)
The text was updated successfully, but these errors were encountered:
Thanks @okapetanios ! Indeed you do have to use -F parent_team_id=7100545 instead of -f parent_team_id=7100545 in order to pass the id as a number instead of a string. I'll see about getting an example added to our docs that shows its use.
Schema Inaccuracy
gh api
--method POST
-H "Accept: application/vnd.github+json"
-H "X-GitHub-Api-Version: 2022-11-28"
/orgs/MYORGANIZATION/teams
-f name="teamname"
-f permission='push'
-f notification_setting='notifications_enabled'
-f privacy='closed'
-f parent_team_id=7100545
I get the following error
{
"message": "Invalid request.\n\nFor 'properties/parent_team_id', "7100545" is not a number.",
"documentation_url": "https://docs.github.com/rest/teams/teams#create-a-team"
}
gh: Invalid request.
For 'properties/parent_team_id', "7100545" is not a number. (HTTP 422)
The text was updated successfully, but these errors were encountered: