def METHOD_NAME(self):
    """
    Creates an API with and inline OpenAPI and updates its DefinitionBody basePath
    """
    self.create_and_verify_stack("single/basic_api_inline_openapi")
    first_dep_ids = self.get_stack_deployment_ids()
    self.assertEqual(len(first_dep_ids), 1)
    body = self.get_template_resource_property("MyApi", "DefinitionBody")
    body["basePath"] = "/newDemo"
    self.set_template_resource_property("MyApi", "DefinitionBody", body)
    self.update_stack()
    second_dep_ids = self.get_stack_deployment_ids()
    self.assertEqual(len(second_dep_ids), 1)
    self.assertEqual(len(set(first_dep_ids).intersection(second_dep_ids)), 0)