original_docstring: Ingests a new version of a model to DAFNI
  
      Args:
          jwt (str): JWT
          upload_id (str): Upload ID
          version_message (str): Message to be attached to this version
          model_id (str): ID of existing parent model if it exists
  
      Returns:
          dict: JSON from response returned in post request
      
docstring: Ingests a new version of a model to DAFNI
docstring_tokens: Ingests a new version of a model to DAFNI
code: def model_version_ingest(
      jwt: str, upload_id: str, version_message: str, model_id: str = None
  ) -> dict:
      """Ingests a new version of a model to DAFNI
  
      Args:
          jwt (str): JWT
          upload_id (str): Upload ID
          version_message (str): Message to be attached to this version
          model_id (str): ID of existing parent model if it exists
  
      Returns:
          dict: JSON from response returned in post request
      """
      if model_id:
          url = (
              MODELS_API_URL + "/models/" + model_id + "/upload/" + upload_id + "/ingest/"
          )
      else:
          url = MODELS_API_URL + "/models/upload/" + upload_id + "/ingest/"
      data = {"version_message": version_message}
      return dafni_post_request(url, jwt, data)
code_tokens: def model_version_ingest ( jwt : str , upload_id : str , version_message : str , model_id : str = None ) -> dict : if model_id : url = ( MODELS_API_URL + "/models/" + model_id + "/upload/" + upload_id + "/ingest/" ) else : url = MODELS_API_URL + "/models/upload/" + upload_id + "/ingest/" data = { "version_message" : version_message } return dafni_post_request ( url , jwt , data )
short_docstring: Ingests a new version of a model to DAFNI
short_docstring_tokens: Ingests a new version of a model to DAFNI
comment: """Ingests a new version of a model to DAFNI
  
      Args:
          jwt (str): JWT
          upload_id (str): Upload ID
          version_message (str): Message to be attached to this version
          model_id (str): ID of existing parent model if it exists
  
      Returns:
          dict: JSON from response returned in post request
      """