title: Creating a CourseWork with scheduled_time/scheduledTime returns an Internal Error
body: <p>I'm trying to create a Google Classroom CourseWork via their API. Specifically, this call: <a href="https://developers.google.com/classroom/reference/rest/v1/courses.courseWork/create" rel="nofollow noreferrer">https://developers.google.com/classroom/reference/rest/v1/courses.courseWork/create</a></p>
  <p>I'm using the Google Ruby API gem to do so.</p>
  <p>Every time I try to create a CourseWork with scheduledTime, I get back an Internal Server Error.</p>
  <p>Example request:</p>
  <pre><code>Sending HTTP post https://classroom.googleapis.com/v1/courses/5022964882/courseWork?
  {&quot;description&quot;:null,&quot;dueDate&quot;:null,&quot;dueTime&quot;:null,&quot;materials&quot;:[{&quot;link&quot;:{&quot;url&quot;:&quot;https://google-c.gc.localhost.mine.com:3000/scores/view/f78df89b0f92be257f004501b7c4958216f2167b&quot;}}],&quot;maxPoints&quot;:null,&quot;scheduledTime&quot;:{&quot;seconds&quot;:1601913540000,&quot;nanos&quot;:0},&quot;state&quot;:&quot;DRAFT&quot;,&quot;title&quot;:&quot;test2&quot;,&quot;workType&quot;:&quot;ASSIGNMENT&quot;}
  </code></pre>
  <p>And response:</p>
  <pre><code>#&lt;HTTP::Message:0x00007f7fb2fdeee8 @http_header=#&lt;HTTP::Message::Headers:0x00007f7fb2fdeec0 @http_version=&quot;1.1&quot;, @body_size=0, @chunked=false, @request_method=&quot;POST&quot;, @request_uri=#&lt;Addressable::URI:0x3fbfd97efd78 URI:https://classroom.googleapis.com/v1/courses/5022964882/courseWork?&gt;, @request_query=nil, @request_absolute_uri=nil, @status_code=500, @reason_phrase=&quot;Internal Server Error&quot;, @body_type=nil, @body_charset=nil, @body_date=nil, @body_encoding=#&lt;Encoding:UTF-8&gt;, @is_request=false, @header_item=[[&quot;Vary&quot;, &quot;Origin&quot;], [&quot;Vary&quot;, &quot;X-Origin&quot;], [&quot;Vary&quot;, &quot;Referer&quot;], [&quot;Content-Type&quot;, &quot;application/json; charset=UTF-8&quot;], [&quot;Content-Encoding&quot;, &quot;gzip&quot;], [&quot;Date&quot;, &quot;Mon, 26 Oct 2020 15:36:14 GMT&quot;], [&quot;Server&quot;, &quot;ESF&quot;], [&quot;Cache-Control&quot;, &quot;private&quot;], [&quot;X-XSS-Protection&quot;, &quot;0&quot;], [&quot;X-Frame-Options&quot;, &quot;SAMEORIGIN&quot;], [&quot;X-Content-Type-Options&quot;, &quot;nosniff&quot;], [&quot;Alt-Svc&quot;, &quot;h3-Q050=\&quot;:443\&quot;; ma=2592000,h3-29=\&quot;:443\&quot;; ma=2592000,h3-T051=\&quot;:443\&quot;; ma=2592000,h3-T050=\&quot;:443\&quot;; ma=2592000,h3-Q046=\&quot;:443\&quot;; ma=2592000,h3-Q043=\&quot;:443\&quot;; ma=2592000,quic=\&quot;:443\&quot;; ma=2592000; v=\&quot;46,43\&quot;&quot;], [&quot;Transfer-Encoding&quot;, &quot;chunked&quot;]], @dumped=false&gt;, @peer_cert=#&lt;OpenSSL::X509::Certificate: subject=#&lt;OpenSSL::X509::Name CN=upload.video.google.com,O=Google LLC,L=Mountain View,ST=California,C=US&gt;, issuer=#&lt;OpenSSL::X509::Name CN=GTS CA 1O1,O=Google Trust Services,C=US&gt;, serial=#&lt;OpenSSL::BN:0x00007f7fb2fce818&gt;, not_before=2020-10-06 06:40:00 UTC, not_after=2020-12-29 06:40:00 UTC&gt;, @http_body=#&lt;HTTP::Message::Body:0x00007f7fb2fdee48 @body=&quot;{\n  \&quot;error\&quot;: {\n    \&quot;code\&quot;: 500,\n    \&quot;message\&quot;: \&quot;Internal error encountered.\&quot;,\n    \&quot;errors\&quot;: [\n      {\n        \&quot;message\&quot;: \&quot;Internal error encountered.\&quot;,\n        \&quot;domain\&quot;: \&quot;global\&quot;,\n        \&quot;reason\&quot;: \&quot;backendError\&quot;\n      }\n    ],\n    \&quot;status\&quot;: \&quot;INTERNAL\&quot;\n  }\n}\n&quot;, @size=0, @positions=nil, @chunk_size=nil&gt;, @previous=nil&gt;
  </code></pre>
  <p>It only seems to be scheduledTime that has this problem - if I drop that field from the request, everything else creates just fine.</p>