You can add an organization with the addOrganization method.

Permission to run the request: Account Owner, Administrator.

Parameters

ParameterTypeDescription
credentials (required)credentialsRead the description of the Credentials object.
name (required)stringName of the new organization.
description (optional)stringDescription of the new organization.

Return Value

ParameterTypeDescription
organizationIdintID of created organization

Possible Errors

ErrorDescription
Permission deniedYou have no permissions to add organizations.
Wrong parametersThe system failed to process the request because it did not contain all necessary parameters.

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>
    <AddOrganizationRequest>
      <credentials>
        <accountUrl>http://myaccount.ispringlearn.com</accountUrl>
        <email>email@email.com</email>
        <password>password</password>
      </credentials>
      <name>Name</name>
      <description>Description</description>
    </AddOrganizationRequest>
  </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>
    <AddOrganizationResult>
      <organizationId>2</organizationId>
    </AddOrganizationResult>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML