pool.v0.trr379.de-knowledge/code/post_record

15 lines
254 B
Bash
Executable file

#!/bin/bash
set -u -e
scope="$1"
class="$2"
api="https://pool.v0.trr379.de/api"
curl \
--fail-with-body \
-X 'POST' \
-H "X-DumpThings-Token: ${DUMPTHINGS_TOKEN}" \
-H "Content-Type: application/json" \
-d @- \
"${api}/${scope}/record/${class}"