Skip to content

Instantly share code, notes, and snippets.

@ywindish
Created December 7, 2021 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ywindish/f457a5cd6ec39b2e1cabf5f5c3479ceb to your computer and use it in GitHub Desktop.
Save ywindish/f457a5cd6ec39b2e1cabf5f5c3479ceb to your computer and use it in GitHub Desktop.
curl で Mastodon の予約投稿を削除する
  • mastodon.example は適当な Mastodon サーバ
  • xxxxx はAPIアクセストークン

予約投稿のリストを得る

curl https://mastodon.example/api/v1/scheduled_statuses -H 'Authorization: Bearer xxxxx`

指定したIDの予約投稿を消す (仮に 123 とする)

curl -X DELETE https://mastodon.example/api/v1/scheduled_statuses/123 -H 'Authorization: Bearer xxxxx`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment