API: job resource bug fixes