setOrganizationParent

Sets an organization's parent

Client Servlet Server Servlet HTTP Methods Supported Requires Authentication
None. SROrganizationAPI POST Yes.

Server API Syntax

https://secure2.convio.net/organization/site/SROrganizationAPI?method=setOrganizationParent & api_key =value & login_name =value & login_password =value & v =value [ & center_id =value ] [ & response_format =xml |json ] [ & source =value ] [ & sub_source =value ] [ & suppress_response_codes =value ] & parent_org_id =value & org_id =value

Server API Parameters

Common Server Parameters

See topic Common Parameters.

parent_org_id

Required. Parent Org ID

Type xsd:int.

org_id

Required. Org ID

Type xsd:int.

Response

See topic HTTP Status Codes.

XML response
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<getOrganizationParentResponse xmlns="http://convio.com/crm/v1.0">
    <hierarchy>
        <org_id>250</org_id>
        <parent>
            <org_id>100</org_id>
            <name>Test Organization</name>
            <url>http://sample.url</url>
            <category_id>5</category_id>
            <num_employees>10</num_employees>
        </parent>
    </hierarchy>
</getOrganizationParentResponse>


        
JSON response
{"getOrganizationParentResponse":{"hierarchy":{"org_id":"250","parent":{"org_id":"100","name":"Test Organization","category_id":"5","url":"http://sample.url","num_employees":"10"}}}}

        

Leave a Comment

Nickname
Comment
Enter this word: