#Trying to get correct API call

2 messages · Page 1 of 1 (latest)

mild laurel
#

Hi there!

I don't know if I'm in the right place to ask this, if so I'm sorry. That said, I have a question about an API call I'm trying to make to return only the set of translations of a specific language, in this call, the 'es' one. However, it is returning all languages, I have tried many ways but none of them work. Because it seems that the deep does not arrive where I want it to arrive, that is inside blocks.items.translations.

If anyone has any idea why this error is happening, I would really appreciate your help.

Thank you very much!

This is the API call: https://cms-api/items/pages?fields=blocks.item.translations.*&deep[blocks.item.translations][_filter][languages_code][_eq]=es

And the responde is on the image.

dry nicheBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please make sure your question includes the following:

  • An explanation of exactly what you're trying to achieve.
  • Any and all related code or previous attempts.
  • The exact issue or error you are facing.
  • Any screenshots if applicable.

When you're done with this thread, please close it.

(If you have a support agreement and need help, please contact the core team via email.)