Hi,
I’m trying to connect to the Management API and create a new node in the backoffice via Postman.
I’ve got postman setup, I can call
umbraco/management/api/v1/document
but I’m getting a mix of errors, probably due to something I’m missing.
{
"documentType": {
"id": "<uuid>"
},
"template": {
"id": "<uuid>"
},
"values": [
{
"alias": "<string>",
"culture": "<string>",
"segment": "<string>",
"value": {
"nullable": true
}
},
{
"alias": "<string>",
"culture": "<string>",
"segment": "<string>",
"value": {
"nullable": true
}
}
],
"variants": [
{
"name": "<string>",
"culture": "<string>",
"segment": "<string>"
},
{
"name": "<string>",
"culture": "<string>",
"segment": "<string>"
}
],
"id": "<uuid>",
"parent": {
"id": "<uuid>"
}
}
This is the template that I have for my Postman Post, now, I’m hoping not all of this is required but also I’m not sure what is required.
My guesses so far are :
"documentType": {
"id": "<uuid>"
},
"template": {
"id": "<uuid>"
},
This is the documentType uuid that I am wanting to create, for example, what ever UUID I have for my document type BlogPost.
The template UUID is the template that is associated with this document type.
values": [
{
"alias": "<string>",
"culture": "<string>",
"segment": "<string>",
"value": {
"nullable": true
}
},
{
"alias": "<string>",
"culture": "<string>",
"segment": "<string>",
"value": {
"nullable": true
}
}
Alias is maybe something like aNewBlogPost
or something similar that would be unique each time a post is created. Culture would be en-US
if that’s the default language setup on the site. Segment, I have no idea.
"variants": [
{
"name": "<string>",
"culture": "<string>",
"segment": "<string>"
},
{
"name": "<string>",
"culture": "<string>",
"segment": "<string>"
}
],
"id": "<uuid>",
"parent": {
"id": "<uuid>"
}
If I don’t have variants, do I even need this info?
Id, is that just a new Guid that is needed for this new node, parent is presumably the parent id where this node is going to be saved?
So my question I guess is, what do I need and not need so that I can create a document in the backoffice via the Management API