const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({app_id: 'app_abc123', config_version: 'v1'})
};
fetch('https://adp.laiye.com/open/agentic_doc_processor/{tenant_name}/v1/app-manage/version/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));