Page MenuHomePhabricator

API that supports deletion by id
Closed, InvalidPublic

Description

Currently the delete api requires the user to specify the namespace. A better version may only require the id for the deletion.

Event Timeline

Currently the delete api requires the user to specify the namespace. A better version may only require the id for the deletion.

Does it?

https://en.wikipedia.org/w/api.php?action=help&modules=delete doesn't mention namespace, but you can pass pageid?

Anomie subscribed.

The namespace is part of the title, so if you're using the title parameter then the namespace is required. There's no sane way around this.

When using pageid, there's not even any place to supply a namespace.