Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

All the questions related to Item Web APIs directly or indirectly related to Sitecore.

1
vote
1answer
56 views

Share Sitecore content to Native Mobile Apps (IOS swift and Android java)

If we wanted to provide data (get/set operations on content tree, analytics, personalization, tracking data) from Sitecore 9 to native mobile apps (not based on Sitecore Mobile SDK and Xamarin but ...
0
votes
0answers
30 views

Create item through ItemService REST API fails with InternalServerError (500)

I'm trying to create an item through the ItemService RESTful API, but when I call this I get an InternalServerError (500), and in the log file there's this error: ERROR [Sitecore Services]: System....
1
vote
2answers
186 views

Authentication / Login for Custom ServicesApiController

I've created a custom API Controller that inherits from ServicesApiController. I've created also custom route and it all works fine. Something like the following: public class ExampleController : ...
1
vote
1answer
292 views

Getting a list of items from the ItemService API matching a specific field value

I'm trying to get a list of items from Sitecore that match a custom tag field. This is from an external application so I need to use one of the APIs to do this. I've tried using the Sitecore ...
2
votes
2answers
149 views

How to correctly login as Virtual User to use the Sitecore Content Editor? (Avoid Media Library Search redirects)

I have a situation where I need to use VirtualLogin to enable a user to access the sitecore shell and use the Content Editor / Media Library editor. This is the code for the Virtual Login (from many ...
1
vote
2answers
173 views

How to copy item A to item B without loosing the ID of B?

I want to make the item B (destination) identical to item A (source), without changing the ID of B. I tried with the following: var sourceXmlString = source.GetOuterXml(false); var sourceXml = ...
0
votes
0answers
213 views

How to get Sitecore.Data.Items.Item datatype programmatically from WEB API Request?

By passing the following URL, we will get output in JSON format. http://<host_name>/-/item/v1/?sc_itemid={M60ACD61-A6JB-4182-8329-C957982CEC74} 1) How can I programmatically trigger the same ...
5
votes
0answers
165 views

How do you update an attachment in the Media Library using Sitecore's Web API?

I am currently using Sitecore's RESTful ItemService API and CURL to create assets in the Media Library and have that working just fine. However, in some cases, I need to update the attachment (i.e. ...
0
votes
1answer
75 views

Item Web API returning field with empty string

In Sitecore 7.2, I am using the Item Web API to retrieve an item. The thing is, I get some fields as empty, and when I look in the content tree they are not empty, specifically an image type. Any ...
1
vote
1answer
58 views

WebApi queries on nonexistent resource returns 200

I am using the Sitecore 7.2 Item Web API to retrieve some items. Using fast queries I am not able get a "404" in case an item doesn't exist (even if i don't use fast queries, i still don't get 404). ...