Rest-API - added set job retries functionality

Added the ability for the API user to set a job's retry value.