You can update a content item with the updateContentItem method.

Permission to run the request: Account Owner, Administrator, Organization Administrator, Publisher.

 

Parameters

ParameterTypeDescription
credentials (required)credentialsRead the description of the Credentials object.
contentItemId (required)stringID of the content item to be updated.
title (required)stringTitle of the content item.
description (optional)stringDescription of the content item.


Return Value

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

ParameterTypeDescription
successbool'True' if the content item has been updated.


Possible Errors

Error
Description
Unknown content itemThe specified content item was not found.
Wrong parametersThe system failed to process the request as some of the required parameters were missing.
Duplicated titleA content item with the specified title already exists.


Sample Call

<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns="http://ispringlearn.com/go/services/api/soap">
  <SOAP-ENV:Body>
    <UpdateContentItemRequest>
      <credentials>
        <accountUrl>http://myaccount.ispringlearn.com</accountUrl>
        <email>email@email.com</email>
        <password>password</password>
      </credentials>
      <contentItemId>1234</contentItemId>
      <title>title</title>
      <description>description</description>
    </UpdateContentItemRequest>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML

Sample Response

<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns="http://ispringlearn.com/go/services/api/soap">
  <SOAP-ENV:Body>
    <UpdateContentItemResult>
      <success>true</success>
    </UpdateContentItemResult>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML