This API is under construction. Some of the details documented here may change.

Update CourseSection

Functional Overview

This function may be used to update a class that exists within Turnitin.

updateCourseSection

This function takes a request containing a class's Turnitin Class ID, title, class end date and updates the Turnitin class associated with this Turnitin account based on the Class ID in the request. If the Class ID is not associated with this Turnitin account or a class with this Class ID is not found then an error is returned in the SOAP response.

If a class with this Turnitin Class ID and associated with this Turnitin account is found then the class's data is updated with the data sent in the request.

Parameters

Required:
sourceId
//string. max size xxx. unique identifier for class
title
//string. max size xxx. title of class
timeFrame
//date. format xxxx. end date of class
Optional:
none
//

Outputs

sourceId
//integer. max size xxx. unique identifier for class
title
//string. max size xxx. title of class
timeFrame
//date. format xxxx. end date of class
codeMajor
//string. max size xxx. returns "success" or "Failure"
codeMinor
//string. max siz xxx. returns "success", "partial success", "error"
description
//string. max siz xxx. description of successful action completed OR error encountered

Error Codes & Text

CodeText
XXX "description"
XXX "description"
XXX "description"

  Content-type: text/xml;charset="utf-8"
  Accept: text/xml
  Cache-Control: no-cache
  Pragma: no-cache
  SOAPAction: "http://www.imsglobal.org/soap/lis/cmsv1p0/updateCourseSection"
  Content-length: 946
  Source: 12
  Authorization: OAuth oauth_nonce="e296af7ef560e5d399de29ca5030f4e166c68764",
       oauth_timestamp="1337786267",
       oauth_consumer_key="49201",
       oauth_signature_method="HMAC-SHA1",
       oauth_version="1.0",
       oauth_body_hash="mTW905UXr3O9Lpe4v9mz0MVk%2FiA%3D",
       oauth_signature="Gz6htW%2F2Egkp0jMewXkjVAhZZ3E%3D"

  <?xml version="1.0" encoding="UTF-8"?>
  <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.imsglobal.org/services/lis/cmsv1p0/wsdl11/sync/imscms_v1p0">
  <SOAP-ENV:Header>
      <ns1:imsx_syncRequestHeaderInfo>
          <ns1:imsx_version>V1.0</ns1:imsx_version>
          <ns1:imsx_messageIdentifier>7638f3bf-2d89-4df5-bce3-140344d9b292</ns1:imsx_messageIdentifier>
      </ns1:imsx_syncRequestHeaderInfo>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
      <ns1:updateCourseSectionRequest>
          <ns1:sourcedId>20005488</ns1:sourcedId>
          <ns1:courseSectionRecord>
              <ns1:sourcedGUID>
                  <ns1:sourcedId>20005488</ns1:sourcedId>
              </ns1:sourcedGUID>
              <ns1:courseSection>
                  <ns1:title>
                      <ns1:language>en-US</ns1:language>
                      <ns1:textString>Demo Class 1337786264</ns1:textString>
                  </ns1:title>
                  <ns1:timeFrame>
                      <ns1:end>2012-05-25T03:17:47Z</ns1:end>
                  </ns1:timeFrame>
              </ns1:courseSection>
          </ns1:courseSectionRecord>
      </ns1:updateCourseSectionRequest>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>
  <?xml version="1.0" encoding="UTF-8"?>
  <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Header>
      <tns:imsx_syncResponseHeaderInfo xmlns:tns="http://www.imsglobal.org/services/lis/cmsv1p0/wsdl11/sync/imscms_v1p0">
      <tns:imsx_version>V1.0</tns:imsx_version>
      <tns:imsx_messageIdentifier>A746321E-A4E9-11E1-BD36-3CF1EFE76FDE</tns:imsx_messageIdentifier>
      <tns:imsx_statusInfo>
          <tns:imsx_codeMajor>success</tns:imsx_codeMajor>
          <tns:imsx_severity>status</tns:imsx_severity>
          <tns:imsx_messageRefIdentifier>7638f3bf-2d89-4df5-bce3-140344d9b292</tns:imsx_messageRefIdentifier>
          <tns:imsx_description>Turnitin class updated.</tns:imsx_description>
          <tns:imsx_codeMinor>
              <tns:imsx_codeMinorField>
                  <tns:imsx_codeMinorFieldName>TargetEndSystem</tns:imsx_codeMinorFieldName>
                  <tns:imsx_codeMinorFieldValue>fullsuccess</tns:imsx_codeMinorFieldValue>
              </tns:imsx_codeMinorField>
          </tns:imsx_codeMinor>
      </tns:imsx_statusInfo>
  </tns:imsx_syncResponseHeaderInfo>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
      <tns:updateCourseSectionResponse xmlns:tns="http://www.imsglobal.org/services/lis/cmsv1p0/wsdl11/sync/imscms_v1p0"/>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>