No Code Attached Yet Webservices
avatar buro26-laurens
buro26-laurens
27 May 2026

When trying to delete an article via API it returns 204 No Content

Post: DELETE {{base_url}}/api/index.php/v1/content/articles/:article_id

Expected result is 200

Actual result is 204

I found in libraries/src/MVC/Controller/ApiController.php ~304 that an ID is requested as integer. But passed via the router it probably is cast as string and therefor no ID is passed to the actual delete function.

avatar buro26-laurens buro26-laurens - open - 27 May 2026
avatar buro26-laurens buro26-laurens - change - 27 May 2026
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 27 May 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 May 2026
avatar alikon
alikon - comment - 27 May 2026

what is the status for the article you are deleting ?

avatar buro26-laurens
buro26-laurens - comment - 27 May 2026

Ah! That seems to solve it. When i update the status to -2 and after that try to delete, it works.
Still returns 204 No Content though, but the article is gone.

Is that working as intended?

avatar alikon alikon - change - 27 May 2026
Labels Added: Webservices
avatar alikon alikon - labeled - 27 May 2026
avatar alikon alikon - change - 27 May 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-05-27 10:08:15
Closed_By alikon
avatar alikon alikon - close - 27 May 2026

Add a Comment

Login with GitHub to post a comment