You can change publish settings of your account with the setAccountPublishSettings method.

Parameters

ParameterTypeDescription
credentials (required)credentialsRead the description of the Credentials object.
defaultContentPrivacy(required)stringpublic or private
isPrivateContentViewedOnce(required)boolTrue, if private content items can be viewed only once.
manualUploadEnabled(required)boolTrue, if publishers and administrators can upload content items using the web interface.

 

Return Value

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

ParameterTypeDescription
successboolTrue, if the publish settings have been changed.

 

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>
    <SetAccountPublishSettingsRequest>
      <Credentials>
        <AccountUrl>http://myaccount.ispringlearn.com</AccountUrl>
        <Email>email@email.com</Email>
        <Password>password</Password>
      </Credentials>
      <DefaultContentPrivacy>private</DefaultContentPrivacy>
      <IsPrivateContentViewedOnce>True</IsPrivateContentViewedOnce>
      <ManualUploadEnabled>True</ManualUploadEnabled>
    </SetAccountPublishSettingsRequest>
  </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>
    <SetAccountPublishSettingsResult>
      <Success>True</Success>
    </SetAccountPublishSettingsResult>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>