## Clear StackState configuration
curl -X POST -f "http://<HOST>:7071/clear"
## Import without authentication
curl -X POST -d @./export.stj \
-H 'Content-Type: application/json;charset=UTF-8' \
"http://<host>:7070/api/import?timeoutSeconds=15"
## Import with authentication
# Obtain session from cookie AkkaHttpPac4jSession
# Obtain token from cookie pac4jCsrfToken
-H "Authorization: ApiToken <token>" <stackstate-api-endpoint> \
-H "Content-Type: application/x-www-form-urlencoded" \
"http://<host>:7070/loginCallback"
export SESSION="<MY_SESSION>"; export TOKEN="<MY_TOKEN>"; \
curl -X POST -d @export.stj \
-H 'Content-Type: application/json;charset=UTF-8' \
-H Cookie:AkkaHttpPac4jSession=$SESSION \
-H X-Sts-Token:$TOKEN "http://<HOST>:7070/api/import?timeoutSeconds=15"