paperless/tests/test-post-saved-view.sh
2023-01-20 15:21:01 +01:00

11 lines
237 B
Bash
Executable File

#!/bin/sh
. ./credentials
curl --silent -X POST "${URL}/api/saved_views/" \
-H 'Content-Type: application/json' \
-H "Authorization: ${AUTH}" \
-d '{"id":0,"name":"autoview","username":"admin","password":"admin"}'
# | jq '.'