REST API Post Request Localization

Hello,
This is my JSON string for the post request:
{
“data”:
{
“titel”: “Ingwer-Kürbis-Suppe”,
“_id”: “ffcf37953462337796000279”,
“text”: “Hokkaido-Kürbis-Suppe mit Ingwer und unserer Gemüsebouillon”,
“preis1”: “11.00”,
“preis2”: “8.50”,
“_modified”: 1698178260,
“_mby”: null

}
}

How do I query the English title and text?
Thanks for the support!

Hi!

Can you post your query, and provide more details about what you want to achieve?

Hello, this is my query:

async function update(elem){
const response = await fetch(‘https://****./cockpit/api/content/item/suppen’, {
method: ‘post’,
headers: { ‘Content-Type’: ‘application/json’,
},
body: JSON.stringify(elem)
});

I have localized the content on cockpit in two languages, English and German. All my attempts to update the content lead to this error: {“error”: “Item data is missing”}.

Can you try the following code?

async function update(elem) {
    const response = await fetch('https://****./cockpit/api/content/item/suppen', {
        method: 'post',
        headers: {
            'Content-Type': 'application/json',
        },
        body: JSON.stringify({
            data: elem
        })
    });
}