Hi,
as written in the subject, creating an article via the API with a POST on on the /content/article endpoint does not work.
Status 200
404 File not found
PHP 7.4
Joomla 4.0.6
GET-Requests against the API are working perfect.
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
I did, but then I receive the next error:
{
"errors": [
{
"title": "Field required: Title\nField required: Category"
}
]
}
I think this does still not work as it should...
Well its the correct post URL for now. I have not implemented the API myself yet but you can have a look at the tests how it should work: https://github.com/joomla/joomla-cms/blob/4.1-dev/tests/Codeception/api/com_content/ContentCest.php
Please read the doc for required properties. You are missing catid
.
https://docs.joomla.org/J4.x:Joomla_Core_APIs#Create_Article
Hi Quy,
no, I don't forgot the cadid
Please check the screenshot.
Hi @brianteeman - I used another canid as you might see in the screenshot. canid 11 is valid on my page.
Please enclose the value with double quotes: "Titel"
Labels |
Added:
Documentation Required
|
Labels |
Added:
Information Required
Removed: Documentation Required |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-02-08 18:51:59 |
Closed_By | ⇒ | Quy |
Closing as this is an entry error.
Please try to post against: /v1/content/articles (adding an "s" to article)
https://github.com/alexandreelise/j4x-api-collection/blob/master/j4x-api-complete-collection.postman_collection.json#L1509-L1535