PTFM-12869 Use new debug API schema

Tests to be written as part of integration and committed separately.