putSession = (idOrSlug, options = {}) => {
  if (!idOrSlug) {
    throw new Error('No slug/id supplied')
  }
  if (!(options.json || {}).codeLanguage) {
    throw new Error('CodeLanguage required to post interactive submission')
  }
  if (!(options.json || {}).submission) {
    throw new Error('Need to post a submission')
  }

  return fetchJson(`/db/interactive/${idOrSlug}/submission`, {
    method: 'POST',

    ...options
  })
}
Puts an interactive session into the database
@param {string} idOrSlug - Interactive id or slug
@param {Object} options.json.submission - Interactive submissions
@param {'javascript'|'python'} options.json.codeLanguage - session language