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.
| Labels |
Removed:
?
|
||
| Labels |
Added:
No Code Attached Yet
|
||
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?
| Labels |
Added:
Webservices
|
||
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-05-27 10:08:15 |
| Closed_By | ⇒ | alikon |
what is the status for the article you are deleting ?