Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Publish (activate) the page /travel/hello.

curl http://localhost:8080/magnoliaAuthor/.rest/commands/v2/website/activate \ -H "Content-Type: application/xml" \ -X POST --user superuser:superuser \ --data \ '<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <parameters> <repository>hello</repository> <path>/travel/hello</path> <recursive>false</recursive> </parameters>'
Localtab Group
Localtab
titlePost JSON
Code Block
languagejs
curl http://localhost:8080/magnoliaAuthor/.rest/commands/v2/website/activate \
  -H "Content-Type: application/json" \
  -X POST --user superuser:superuser \
  --data \
'{
  "repository": "website",
  "path": "/travel/hello",
  "recursive": "false"
}'
Localtab
titlePost XML
Code Block

Note that you cannot send the request as XML, you only can receive the response in XML with the Accept header.