uploadMetadataDescriptionFn = function() {
let description = `
# My Dataset
**by Jane Doe**
Description of the Dataset in Markdown. This can contain [links](https://en.wikipedia.org/wiki/Hyperlink) and **formatting**.
`;
let metadata = {
author: "Jane Doe",
location: "Basel, Switzerland"
};
let datasetInfo = {
name: "My dataset",
description: description,
metadata: metadata
};
let fetchOptions = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `bearer ${token}`
},
body: JSON.stringify(datasetInfo)
};
return fetch(
`${baseUrl}/datasets/${datasetid}/in-progress`,
fetchOptions
).then(response => response.json());
}