3

Is there any Rest API in Sitecore which can create, get, update , delete and publish items in web instance and Solr without writing any code

2 Answers 2

3

To create an item:

URL: /item/{path}?database&language

Edit an item:

URL: /item/{id}?database&language&version

Delete an item:

URL: /item/{id}?database&language

Run a Sitecore search:

URL: /item/search?term&pageSize&page&database&language&includeStandardTemplateFields&fields&sorting&facet

Run a stored Sitecore search:

URL: /item/{id}/search?term&pageSize&page&database

For more details you can refer: The RESTful API for the ItemService

0

This article given by Sitecore contains almost all the API calls that can help you to perform all the operations.

https://doc.sitecore.com/xp/en/developers/102/sitecore-experience-manager/the-restful-api-for-the-itemservice.html

For the publishing, I found a good article you follow to publish an item on an API call.

https://www.nishtech.com/Blog/2019/July/SscPublish

Hope this will help you to start.

Thanks

3

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.