Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 1

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

Hi,

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

 

Returns only my subscriptions and not my organisation's.

 

I was not able to find anything in the API documentation on how to achieve what I need.

My goal is to list subscriptions and to change the notification setting from "watching" to "releases only".

 

Thanks for any help.

r