2026-10-10 13:45:11 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
BASE_URL=$1
|
|
|
|
|
FIELD=$2
|
|
|
|
|
curl -sf -X POST "${BASE_URL}/api/v1/field/spool/${FIELD}" \
|
|
|
|
|
-H "Content-Type: application/json" \
|
|
|
|
|
-d "{\"name\": \"Pressure Advance\", \"field_type\": \"float\", \"default_value\": \"0\"}" \
|
|
|
|
|
> /tmp/pa_setup_result 2>&1
|