You can update the list of tags of a content item with the setContentItemTags 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 you want to update tags of.
tags (required)string[]List of tags for the given content item.


Return Value

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

ParameterTypeDescription
successbool'True' if tags of the given content item have been updated.


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>
    <SetContentItemTagsRequest>
      <credentials>
        <accountUrl>http://myaccount.ispringlearn.com</accountUrl>
        <email>email@email.com</email>
        <password>password</password>
      </credentials>
      <contentItemId>1234</ContentItemId>
      <tags>
       <tag>tag1</tag>
       <tag>tag2</tag>
      </tags>
    </SetContentItemTagsRequest>
  </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>
    <SetContentItemTagsResult>
      <success>true</success>
    </SetContentItemTagsResult>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML