unable to set d3d11_esselation_mode via python


I tried to set d3d11_tessellation_mode for materials via Python.
In a simple test, with a material’s reference path saved in mat_asset, I tried

tesse_mode = mat_asset.set_editor_property("d3d11_tessellation_mode", 2)

LogPython: Error: TypeError: Material: Failed to convert type ‘int’ to property ‘D3D11TessellationMode’ (ByteProperty) for attribute ‘d3d11_tessellation_mode’ on ‘Material’
LogPython: Error: TypeError: NativizeProperty: Cannot nativize ‘int’ as ‘D3D11TessellationMode’ (ByteProperty)

I also tried

mat_asset.d3d11_tesselation_mode = 2

LogPython: Error: Exception: Material: Property ‘D3D11TessellationMode’ for attribute ‘d3d11_tessellation_mode’ on ‘Material’ is read-only and cannot be set

Is it because it’s a read-only attribute?

Is there a way to modify this value via python so I can modify for all materials in the level at once?