Versions Compared

Key

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

...

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
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>'