UNO: change page style?

I’m trying to set the first page style to, well… «First page» :relaxed:

But I couldn’t get it work. E.g. supposing the file is the current document, then:

>>> cursor = file.Text.createTextCursor()
>>> cursor.setPropertyValue("PageStyleName", "First Page")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
__main__.PropertyVetoException: Property is read-only: 'PageStyleName

Why is this? What am I supposed to do? I also found that the property appears for enumerating paragraphs, however attempt to change it there ends the same way for me.

[edit: removed redundant tag]

In the end I am again figured it out by myself :relaxed: The page style could be set for a paragraph with the property «PageDescName». So I wrote a function in python — it accepts the opened document as a “file”, and just changes the style name of the very first paragraph. Works like a charm.

def setFirstPage(file):
	"""Sets the first page style to «First Page»"""
	enumeration = file.Text.createEnumeration()
	enumeration.nextElement().PageDescName = 'First Page'