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

Delete LineItem

Functional Overview

This function may be used to delete an assignment within Turnitin. When an assignment is deleted in Turnitin, the submissions associated with the assignment are no longer accessible. Submissions sare not removed from the Turnitin database

deleteLineItem

This function takes an assignment ID and deletes the corresponding assignment from Turnitin. If the assignment ID is not found or does not belong to this account and API product then an error is returned, if the assignment ID is found and does belong to this account and API product then the assignment is deleted and a success response returned.

Parameters

Required:
sourceId
//string. max size xxx. unique identifier for assignment
Optional:
none
//

Outputs

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/oms1p0/deleteLineItem"
  Content-length: 590
  Source: 12
  Authorization: OAuth oauth_nonce="33ca24bfd325bb2aec7142cf521c9efd1ae9c90a",
       oauth_timestamp="1337860017",
       oauth_consumer_key="49201",
       oauth_signature_method="HMAC-SHA1",
       oauth_version="1.0",
       oauth_body_hash="DGjq5r29xCzkvgn2RCSoXASYooM%3D",
       oauth_signature="uC02BqN%2Fv5pK%2F13kRmXNlxcfAVU%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/oms1p0/wsdl11/sync/imsoms_v1p0">
  <SOAP-ENV:Header>
      <ns1:imsx_syncRequestHeaderInfo>
          <ns1:imsx_version>V1.0</ns1:imsx_version>
          <ns1:imsx_messageIdentifier>9a02bce3-8943-41a3-a396-43e73a82fc76</ns1:imsx_messageIdentifier>
      </ns1:imsx_syncRequestHeaderInfo>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
      <ns1:deleteLineItemRequest>
          <ns1:sourcedId>20028415</ns1:sourcedId>
      </ns1:deleteLineItemRequest>
  </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/oms1p0/wsdl11/sync/imsoms_v1p0">
      <tns:imsx_version>V1.0</tns:imsx_version>
      <tns:imsx_messageIdentifier>80BF9214-A595-11E1-AFE8-ACB9EFE76FDE</tns:imsx_messageIdentifier>
      <tns:imsx_statusInfo>
          <tns:imsx_codeMajor>success</tns:imsx_codeMajor>
          <tns:imsx_severity>status</tns:imsx_severity>
          <tns:imsx_messageRefIdentifier>9a02bce3-8943-41a3-a396-43e73a82fc76</tns:imsx_messageRefIdentifier>
          <tns:imsx_description>Assignment LineItem successfully deleted.</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:deleteLineItemResponse xmlns:tns="http://www.imsglobal.org/services/lis/oms1p0/wsdl11/sync/imsoms_v1p0"/>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>