piecemeal API
piecemeal’s native API. The web UI uses it, and so can anything else: authenticate with a session cookie (send X-Requested-With: piecemeal on unsafe requests) or an API key as a Bearer token.
Version v1
Base URL
https://piecemeal.example.com/api/piecemeal/v1Admin
Access
- GETList API keys
/api-keys - POSTCreate an API key
/api-keys - DELETEDelete an API key
/api-keys/{id} - GETList audit log entries, newest first
/audit - GETList sessions
/sessions - DELETEEnd a session
/sessions/{id} - GETList users
/users - DELETERemove a user with their sessions and API keys
/users/{id}
Auth
- GETGet the sign-in methods
/auth/config - POSTSign in with a password
/auth/login - POSTSign out
/auth/logout - GETGet who is signed in
/auth/me
Categories and tags
- GETList categories
/categories - DELETEDelete a category
/categories/{name} - PUTCreate or change a category
/categories/{name} - GETList tags
/tags - DELETEDelete a tag
/tags/{name} - PUTCreate a tag
/tags/{name}
Events
System
- GETGet recent log entries
/log - GETGet settings
/settings - PATCHChange settings
/settings - GETGet version and network status
/system - GETGet transfer rates and totals
/transfer - PATCHChange the speed limits
/transfer
RSS
- GETList RSS folders and feeds
/rss - POSTAdd an RSS feed
/rss/feeds - GETGet an RSS feed with its articles
/rss/feeds/{uid} - PATCHChange an RSS feed
/rss/feeds/{uid} - POSTAdd an RSS folder
/rss/folders - DELETERemove an RSS feed, or a folder with everything in it
/rss/items - POSTMark RSS articles read
/rss/read - POSTFetch RSS feeds now
/rss/refresh - GETList RSS download rules
/rss/rules - DELETERemove an RSS download rule
/rss/rules/{name} - PUTCreate or replace an RSS download rule
/rss/rules/{name} - GETList the articles an RSS rule accepts
/rss/rules/{name}/matches - POSTRename an RSS download rule
/rss/rules/{name}/rename
Torrents
- GETList torrents
/torrents - POSTAdd a torrent
/torrents - POSTAct on several torrents
/torrents/actions - DELETERemove a torrent
/torrents/{hash} - GETGet a torrent
/torrents/{hash} - PATCHChange a torrent
/torrents/{hash} - GETList a torrent's files
/torrents/{hash}/files - PATCHSet file priorities
/torrents/{hash}/files - POSTRename a file or folder
/torrents/{hash}/files/rename - GETList a torrent's connected peers
/torrents/{hash}/peers - POSTConnect a torrent to peers
/torrents/{hash}/peers - GETGet a torrent's piece states
/torrents/{hash}/pieces - POSTAnnounce to a torrent's trackers now
/torrents/{hash}/reannounce - POSTVerify a torrent's data
/torrents/{hash}/recheck - POSTStart a torrent
/torrents/{hash}/start - POSTStop a torrent
/torrents/{hash}/stop - GETDownload a torrent's .torrent file
/torrents/{hash}/torrent-file - GETList a torrent's trackers
/torrents/{hash}/trackers - PUTReplace a torrent's trackers
/torrents/{hash}/trackers - GETList a torrent's web seeds
/torrents/{hash}/web-seeds - PUTReplace a torrent's web seeds
/torrents/{hash}/web-seeds