Schemaorg cannot be update via API REST because plugin checks that you are on admin site or not.
Update Schemaorg plugin check as
++ if ((!$app->isClient('administrator') & !$app->isClient('api') ) || !$this->isSupported($context))
instead of checking only admin site.
Would help a lot automation process..
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
Information Required
|
Hi @McTuska,
I tested the Joomla REST API at
/api/index.php/v1/content/articles/id
using aPATCH
request with a valid Bearer token and content-typeapplication/json
. The article was successfully updated via API, and the changes were reflected on the frontend.So far, I haven’t encountered any issue updating via REST.
Your proposed solution:
actually prevents both
administrator
andapi
clients from proceeding, which means only frontend (site
) requests would be allowed. This defeats the purpose of enabling updates through the REST API.Could you clarify what issue you're facing exactly? As of now, the current logic seems to be working as expected for API requests.