You can update a content item with the updateContentItem method.
Permission to run the request: Account Owner, Administrator, Organization Administrator, Publisher.
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 of 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
| |
---|
Unknown content item | The specified content item was not found. |
Wrong parameters | The system failed to process the request as some of the required parameters were missing. |
Duplicated title | A 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