Partner API Only
The editCompany() method updates the specified Company object.
The editCompany() method updates the specified Company object.
Input
session_id [xsd:string] (required)
Your API session id.
company [vrtypens:Company] (required)
An object specifying the company’s new data. The id of the company must be provided.
Company fields that cannot be modified via this method are:
Company fields that cannot be modified via this method are:
- status
- creation_date
- hash
Output
[xsd:boolean]
Examples
Perl
$vrapi->editCompany( {
session_id => $sid,
company => {
name => 'VerticalResponse',
address_1 => '501 2nd St, Suite 700',
city => 'San Francisco',
state => 'CA',
postalcode => '94107',
country => 'USA',
url => 'http://www.verticalresponse.com',
support_email => 'api-support@verticalresponse.com',
},
} );
PHP
$vrapi->editCompany( array(
'session_id' => $sid,
'company' => array(
'name' => 'VerticalResponse',
'address_1' => '501 2nd St, Suite 700',
'city' => 'San Francisco',
'state' => 'CA',
'postalcode' => '94107',
'country' => 'USA',
'url' => 'http://www.verticalresponse.com',
'support_email' => 'api-support@verticalresponse.com',
),
) );
Ruby
vr.editCompany({
'session_id' => sid,
'company' => {
'name' => 'VerticalResponse',
'address_1' => '501 2nd St, Suite 700',
'city' => 'San Francisco',
'state' => 'CA',
'postalcode' => '94107',
'country' => 'USA',
'url' => 'http://www.verticalresponse.com',
'support_email' => 'api-support@verticalresponse.com',
},
})
