Updating a Content Item

You can update a content item with the updateContentItem method.

Parameters

Parameter Type Description
credentials (required) credentials Read the description of the Credentials object.
contentItemId (required) string ID of the content item to be updated.
title (required) string Title for the content item.
description (optional) string Description of the content item.

Return Value

After the request has been completed, the system returns an object with the following properties:

Parameter Type Description
success bool True, if the content item has been updated.

Possible Errors

Error Description
unknown content item Content item with a given ID hasn't been found.
duplicated title Content item with a given title already exists.

Sample Call

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <UpdateContentItemRequest xmlns="http://www.articulate-online.com/services/api/1.0/">
      <Credentials>
        <AccountUrl>http://myaccount.ispringonline.com</EmailAddress>
        <Email>email@email.com</Password>
        <Password>password</Password>
      </Credentials>
      <ContentItemId>1234</ContentItemId>
      <Title>title</title>
      <Description>description</Description>
    </UpdateContentItemRequest>
  </soap:Body>
</soap:Envelope>

Sample Response

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <UpdateContentItemResult xmlns="http://www.articulate-online.com/services/api/1.0/">
      <Success>True</Success>
    </UpdateContentItemResult>
  </soap:Body>
</soap:Envelope>