2

Good afternoon, I'm trying to create Item using REST API and branch ID as the Template ID the service returns a 400 "Template is invalid" error. Does anyone know if there is a way to create a new item based off a branch using the REST API?

1 Answer 1

1

For curiosity I had tried this on 10.0.1 instance and can confirm this does not work. While looking at source code responsible for creating Items through REST API/Item Service it seems to specifically call for database.GetTemplate(templateId) and there seems to be no fallback for getting branch item which more likely look similar to this code database.GetItem(branchItem). I would expect this functionality to work with branches and I would advise to open ticket with Sitecore support. Similar question has been asked quite some time ago and would be usuful to get definitive answer for this issue from Sitecore Create Item using REST API and Branch as template

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.