postExecUpload method

Future<void> postExecUpload()

Upload a file into an execution session

Takes a multipart upload and writes the file into the session's sandbox, so a later run can read it. Answers the session id and the identifier the file is addressed by; session_id in the form joins an existing session instead of opening one. The body is multipart/form-data, which is why this is not a typed operation: every non-empty typed body is decoded as JSON.

Implementation

Future<void> postExecUpload() async {
  final response = await postExecUploadWithHttpInfo();
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}