| Auszug |
|---|
|
Nuclos nuclet import REST: 4.8.0, super user, maintenance, nucletimport.sh, curl, zip, nuclet parameters. |
Language: Deutsch · English
Nuclet import via REST
Import nuclets automatically via REST – super-user session, maintenance service and shell script.
| Status |
|---|
| colour | Green |
|---|
| title | Updated: Jul 2026 |
|---|
|
| Status |
|---|
| colour | Grey |
|---|
| title | applies to Nuclos 4.2026.x |
|---|
|
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.
| Info |
|---|
|
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)
| Codeblock |
|---|
|
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:
| Codeblock |
|---|
|
./nucletimport.sh http://localhost:8082/nuclos-war |
Related pages
Example calls via shell
curl.
Open →