Skip to content
Discussion options

You must be logged in to vote

This solves my problem, the token needs to be created here: https://github.com/settings/tokens/new.

export now=$(date +%Y-%m-%dT%H:%M:%SZ)
curl -H "Authorization: bearer $TOKEN" -X PUT -H "Accept: application/vnd.github.v3+json" https://api.github.com/notifications -d '{"last_read_at":"'"$now"'"}'

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by aimuz
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
Labels
Bug GitHub or a GitHub feature is not working as intended Notifications Keep track of everything happening across all your projects
2 participants