const options = {
method: 'POST',
headers: {'x-chroma-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
custom_id: '<string>',
metadata: {},
object_key: '<string>',
ref_identifier: {sha: '<string>'},
target_collection_name: '<string>'
})
};
fetch('https://sync.trychroma.com/api/v1/sources/{source_id}/invocations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));