globe with meridians Language: Deutsch · English

hammer and wrench Nuclet import via REST

Import nuclets automatically via REST – super-user session, maintenance service and shell script.

HOW-TO DEVELOPER UPDATED: JUL 2026 APPLIES TO NUCLOS 4.2026.X

On this page

From Nuclos 4.8.0, a nuclet import can be performed via the REST interface. A super user session is required to send the zipped nuclet to the maintenance service.

Nuclet parameters

The import itself has no settings yet. For nuclet parameters: new ones are imported, changed ones remain unchanged, deleted ones are removed.

Login and import (curl)

curl --fail --cookie-jar cookies.txt -X POST -H "Content-Type: application/json" \
  -d '{"username":"nuclos","password":""}' http://localhost:8082/nuclos-war/rest
curl --fail --cookie cookies.txt -X POST -F "file=@nuclet.zip" \
  http://localhost:8082/nuclos-war/rest/maintenance/nucletimport

A shell script (nucletimport.sh) automates the process; the Nuclos URL can be passed as the first parameter:

./nucletimport.sh http://localhost:8082/nuclos-war

Related pages

gear Example calls via shell


curl.

Open →

  • Keine Stichwörter