Skip to content

List user's subscriptions in an organization he is member of #24538

Discussion options

You must be logged in to vote
biro70:

I’d like to list the organisation subscriptions I am a member of and change their notification settings programmatically.

~$ curl -s -H "Authorization: token ${token}" \
"https://api.github.com/users/${user}/subscriptions?type=all" | jq -c .[] | wc -l
3

👋 Hey @biro70! That’s interesting behavior to report. Would you mind also sharing the response that you get for that request?

When I run that request for your account, I’m able to see a subscription to an organization-owned repositories:

curl -v -H "Authorization: token $TOKEN" "https://api.github.com/users/biro70/subscriptions?per_page=100"

[
// ...
{
"id": 239826107,
"node_id": "MDEwOlJlcG9zaXRvcnkyMzk4MjYxMDc=",
"name": "i…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
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