PTFM-12869 Use new debug API schema

Tests to be written as part of integration and committed separately.
debug_hold should be an allowed job state for ssh