Example cURL to put a receiver on an author instance. 

curl http://localhost:8080/magnoliaAuthor/.rest/nodes/v1/config/modules/publishing-core/config/receivers \
-H "Content-Type: application/json" \
-X PUT -i \
--user superuser:superuser \
--data \
'{
  "name": "magnoliaPublic8090",
  "type": "mgnl:contentNode",
  "path": "/modules/publishing-core/config/receivers/magnoliaPublic8090",
  "properties": [
    {
      "name": "url",
      "type": "String",
      "multiple": false,
      "values": [
        "http:\/\/localhost:8090\/magnoliaPublic"
      ]
    },
    {
      "name": "enabled",
      "type": "String",
      "multiple": false,
      "values": [
        "true"
      ]
    }
   ]
}'
  • No labels