# Set PETROSUPPORT_BASE_URL, PETROSUPPORT_TOKEN and PETROSUPPORT_IDEMPOTENCY_KEY. # The base URL includes /api/partner/v1. Use a fresh key for each new operation. curl --fail-with-body --max-time 20 \ "$PETROSUPPORT_BASE_URL/incidents" \ -H "Authorization: Bearer $PETROSUPPORT_TOKEN" \ -H "Idempotency-Key: $PETROSUPPORT_IDEMPOTENCY_KEY" \ -H 'Content-Type: application/json' \ --data-binary '{"title":"Fleet roadside incident","priority":"high","requested_by":"11111111-1111-4111-a111-111111111111","latitude":-1.292100000000000026290081223123706877231597900390625,"longitude":36.821899999999999408828443847596645355224609375,"services":["recovery"],"external_reference":"FLEET-INC-001"}'