const response = await fetch(base_url + "/courses", { method: "POST", headers: { Authorization: authorization, "Content-Type": "application/json", "Idempotency-Key": "your-lms-content-version-id" }, body: JSON.stringify({ filename: "training.zip", size: file_size, shareable: false }) }); const course = await response.json(); if (!response.ok) throw new Error(course.error); console.log(course.course_id, course.upload.upload_id, course.upload.part_size);