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;
Please sign in to leave a comment.