Hi Juan.

First thing to check is whether the access right in the rest role are correct. 
By default the command endpoint is not enabled.
Also make sure that the command you want to call is enabled in config (the 
command endpoint being one of the more "powerfull" endpoints requires you to 
configure each command you want to expose).
Then you should make sure that your payload to the endpoint contains all 
required parameters for the actual command. Check the command class to see what 
is necessary:

E.g. ActivationCommand extends BaseRepositoryCommand and requires at least 
something like
[code]{ path:"/", repository: "website", "recursive": "true" }[/code]
I haven't tested this but it should give you an idea... (see 
[url]https://documentation.magnolia-cms.com/display/DOCS/REST+API#RESTAPI-Publishing[/url])

Regards
Philip

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=9376a3e9-34ca-4542-ae82-061a39842701


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to