const data2 = { key: "<<redacted>>", data: [ { translation: "ssv", book: "mk", chapter: "1", verses: ["1", "3", "5"] }, { translation: "seb", book: "mk", chapter: "2", verses: ["5-10"] } ] }; fetch('https://api2.biblia.sk/api/text-resource/chcemviac-sk', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify(data2), }) .then(response => response.json()) .then(data => {console.log('Success: ', data);}) .catch((error) => {console.error('Error: ', error);});