PyGithub / PyGithub/PyGithub

Add / Remove license seats?

Open
#2,240 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.8k
Forks
1.9k
Avg merge
17m
Merged PRs (30d)
2

Description

Trying to automate seat management with Python...the URL for editing seats is https://github.com/organizations/{orgName}/settings/billing/remove_seats, I've spooled through the Github REST API documentation and found references to viewing plans / used seats / available seats usable via the API, or via PyGithub, but a way to edit the plan is eluding me.

I tried mimicking Chrome's behavior with the Requests library, it seems like it should work, but it doesn't.

Is there any way to do this with PyGithub, or does anyone know of a way to do it programmatically in general?

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the GitHub REST API documentation and the PyGithub API surface referenced in the issue. Check whether supported endpoints exist for editing organization license seats, and compare them with the Requests behavior described; done means establishing a specific supported API path or documenting that PyGithub cannot provide one.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, python
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.