User tests: Successful: Unsuccessful:
If there is a required custom field for a specific category, then API requests do fail when articles want to be created in other categories. It reports that the field is missing even the field is only required for articles in other categories.
curl --location --request POST 'https://[your J4 website]/api/index.php/v1/content/articles' \
--header 'Content-Type: application/json' \
--header 'X-Joomla-Token: [your user token]' \
--data-raw '{"title":"Test","catid":2,"introtext":"","language":"*"}'
Error that the required field is missing.
Article is created in the new category with the title test.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Labels |
Added:
?
?
|
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-01-25 00:44:01 |
Closed_By | ⇒ | bembelimen |
Thx
I have tested this item✅ successfully on 83a962b
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36538.