Page tree
Skip to end of metadata
Go to start of metadata

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>

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>
  •