Function ocypod::handlers::job::update

source ·
pub fn update(
    (path, json): (Path<u64>, Json<UpdateRequest>),
    state: State<ApplicationState>
) -> Box<dyn Future<Item = HttpResponse, Error = Error>>
Expand description

Handles PATCH /job/{job_id} requests. This endpoint allows a job’s status and/or output to be updated via a JSON request.

Returns

  • 204 - update successfully performed
  • 400 - bad request, could not perform update with given JSON request
  • 404 - not found error if no job with given job_id is found