#!/bin/bash
# UpdateProduct -- REST curl example
# Pre-configured for the DM Web Services test environment.
# Replace YOUR_TOKEN below with your Bearer token.

BASE_URL="https://webservices.nebulasuite.net"
TOKEN="YOUR_TOKEN"

curl -X POST "${BASE_URL}/api/client/beyond/v1/shipping/UpdateProduct" \
  -H "Authorization: Bearer ${TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "productSku": "SKU-001",
    "referenceNo": "REF-001",
    "productTitle": "Widget A - Updated",
    "productWeight": 2.8,
    "productNetWeight": 2.4,
    "productLength": 12.0,
    "productWidth": 8.0,
    "productHeight": 4.0,
    "productDeclaredValue": 34.99,
    "productDescription": "Updated description for Widget A",
    "supplierSku": "SUPP-SKU-001"
  }'
