Umbraco 15 - Management API, creating new node

Just to confirm, that worked perfectly.

The payload looks like this :

{"id":"df985aee-7b7c-4d2b-a343-67d3e0ab05c2", // Unique Guid for each post
"parent":null,
"documentType":
{"id":"2ecd6511-f8b1-469e-a1ff-cfc141397c7a"},  // UUID of the Doctype
"template":null,
"values":
[
    {
    "editorAlias":"Umbraco.TextBox",
    "alias":"title",
    "culture":null,
    "segment":null,
    "value":"test" // Value for the textbox that's on the DocType
    }
    ],
    "variants":
    [
        {
            "culture":null,
            "segment":null,
            "state":null,
            "name":"Test Blog Post", // Title of the Blog
            "publishDate":null,
            "createDate":null,
            "updateDate":null
            }
            ]
           }

I’ve added a couple of comments to help anyone else that might stumble on this. :slight_smile:

2 Likes