Using Microsoft Graph, body, title, etc. seem easy to update, but I can't seem to figure out the right syntax for created date. I'm making a copy of a current page (only way to get lined pages, it seems) and want the created date to reflect when the target created date should be.
Here is the content in OneNote:
<head>
<title>New Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="created" content="2019-07-22T09:00:00.0000000" />
</head>
I've tried
data=json.dumps([
{
"target": "meta: #created",
"action": "replace",
"content": "2019-07-23T09:00:00.0000000"
}
])
and
data=json.dumps([
{
"target": "created",
"action": "replace",
"content": "2019-07-23T09:00:00.0000000"
}
])
but get
{
"error": {
"code": "20134",
"message": "The Patch request message is invalid: The selected target meta: #created is not a valid updateable element.",
"innerError": {
"request-id": "156f1db9-a331-4ee4-96f8-15d90d393f63",
"date": "2019-06-12T12:25:54"
}
}
}
What would be the right syntax?