I have an issue with API. The problem is that API sometimes provides another data than the backend has. For example - I have "Title" in Slice zone which can be only h2 or h3. By default in backend it's h2, but in response sometimes I see it as h1. Problem can be solved by changing heading, saving it, changing back and saving again. But this is not ideal solution.
Does anybody have a clue what's wrong there and how to solve it?
Welcome to the Prismic community.
In fact I will need you repository name in order to be able to investigate this issue, ideally the API will always return the same result, except if maybe you mixing live/draft versions.
Thank you for your answer. Repo name is "Sparwelt Content (sparwelt-content)". Regarding API - yes, ideally it should return same result, but unfortunately in our case it's not.
I apologize for the delay, thanks for sharing the repository name, can you also share with us the id of the document (an API link to the document) and the field that you are suspecting that is changing.
It would great if you can provide us with 2 responses that of the same document & fields that show different data (screenshots would be great).
Frankly, I highly dought that there will be an issue like this, It otherwise we will get many complains from your clients, but let's investigate.
Sorry for the slow reply. Somehow link which was provided above not working anymore, but as far as I understand problem exist on API level and on API level the data is different. Did you already have a chance to check it?