API talk:Undelete
Add topicAppearance
Latest comment: 9 months ago by Sreejithk2000 in topic fileids
list=deletedrevs
[edit]This page should describe revision (un)deletion. The viewing functionality should be moved to the query pages, with an appropriate reference from here. --Yurik 20:21, 5 September 2007 (UTC)
- Will split off tomorrow, 11 PM over here. --Catrope 20:55, 5 September 2007 (UTC)
fileids
[edit]This api takes fileids as parameter to restore an File page, but I do not see any api which can return the fileid of an existing media uploaded. Can we add it to the help page? --Sreejithk2000 (talk) 05:42, 5 February 2024 (UTC)
- Hi @Sreejithk2000, Does this API query provide the revision ID that you need: commons:Special:ApiSandbox#action=query&format=json&prop=revisions&titles=File:Human_evolution_scheme.svg&formatversion=2&rvlimit=10? APaskulin (WMF) (talk) 23:53, 22 March 2024 (UTC)
- This api will return revision IDs, but it wont return file ids if the revision is a file upload. Also, see the response in commons Commons:Commons:Village_pump/Technical/Archive/2024/02#Api_that_returns_the_file_ids --Sreejithk2000 (talk) 05:14, 24 March 2024 (UTC)