Create content items via the API

2025/09/16 9:09 AM

Hello,

I'm building an importer that needs to create reusable content items usiing the API. I'm follwoing the API documentation, https://docs.kentico.com/api/content-management/content-items

I get a runtime error when starting my application locally, Unable to resolve service for type 'CMS.ContentEngine.IContentItemManager' while attempting to activate 'Infrastructure.Repositories.LocationRepository'

In my LocationRepository class I have initialized all of the services outlined in the documentation. I must be missing something in my Program.cs but I can't tell from the documentaation. Has anyone built functionality to create content items via the API?


Environment

  • Xperience by Kentico version: [30.9.0]

  • .NET version: [8|9]

  • Execution environment: [SaaS|Private cloud (Azure/AWS/Virtual machine)]

  • Link to relevant Xperience by Kentico documentation

Tags:
Content types v30.8.0 C#

Answers

To response this discussion, you have to login first.