Creating(POST) a node or entry with start date publishes the node or entry on the start date. Is there a way we can have the node/entry created in just saved state rather than having it in a published state?
Set IsActive=false when posting to service API
var model = new Node
{
Code = "Node_1",
Catalog = "Fashion",
EndDate = DateTime.UtcNow.AddDays(100),
IsActive = false,
MetaClass = "FashionNode",
Name = "Test",
StartDate = DateTime.UtcNow
}
client.PostAsync("/episerverapi/commerce/nodes", new StringContent(JsonConvert.SerializeObject(model), Encoding.UTF8, "application/json")).Result;
-
is-active.png
100 KB Download
Comments
0 comments
Please sign in to leave a comment.