You can add an organization with the addOrganization method.
Permission to run the request: Account Owner, Administrator.
Parameters
Parameter | Type | Description |
---|
credentials (required) | credentials | Read the description of the Credentials object. |
name (required) | string | Name of the new organization. |
description (optional) | string | Description of the new organization. |
Return Value
Parameter | Type | Description |
---|
organizationId | int | ID of created organization |
Possible Errors
Error | Description |
---|
Permission denied | You have no permissions to add organizations. |
Wrong parameters | The 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