[AdamsNames]

Home
Register
Payment
Edit
Whois
Clients
Bulk
Forms

conedit($contact, $edit, $auth) : Contact editing

Predictably, this follows the model adopted by the domedit procedure above. This procedure takes the contact identifier, the list of changes stored in a hash, and a set of credentials also in a hash.

Only the contact himself is allowed to make changes to his details, and so the role and contact_id members of the credentials hash are ignored.

Arguments to conedit()
ArgumentDescription
contact_idThe contact's identifier
update hash
Key Description
name Contact's name
address Contact's address: line breaks should be encoded with the two character sequence '\', 'n'
email Contact's email address
phone Contact's phone number
fax Contact's fax number
cc Contact's ISO country code
password Contact's password
credentials
Key Description
password Contacts's password
Hash returned by conedit()
Hash KeyDescription
error An array of error messages which may include:
CodeDescription
300Insufficient credentials for edit
305Invalid password
310Invalid argument format
320Contact not found
321Guardian not found
322Contact not found
323Country not valid
400Updates modified before edit
500Fatal error in query
510Fatal error in query

Example

Request

conedit('adams670d', 
        { 'email' => 'test2@adamsnames.tc' }, 
        { 'contact_id' => 'adams670d', 'password' => 'abcdef950425' })
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
  <methodName>conedit</methodName>
  <params>
    <param>
      <value><string>adams670d</string></value>
    </param>
    <param>
      <value>
        <struct>
          <member>
            <name>email</name>
            <value><string>test2@adamsnames.tc</string></value>
          </member>
        </struct>
      </value>
    </param>
    <param>
      <value>
        <struct>
          <member>
            <name>contact_id</name>
            <value><string>adams670d</string></value>
          </member>
          <member>
            <name>password</name>
            <value><string>abcdef950425</string></value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodCall>

Return

{
  'error' => []
}
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>error</name>
            <value>
              <array><data/></array>
            </value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodResponse>

AdamsNames Limited is registered as a Company in England and Wales.
Registration Number: 3714632, VAT Registration Number: GB 731 9129 38.
Registered Office: Reg'd Office: 9 Quy Court, Colliers Lane, Stow-cum-Quy, Cambridge, CB25 9AU, UK
The Webmaster
URL: http://www.adamsnames.com//api/xmlrpc-doc/conedit.html
Last modified: Thu Apr 29 13:05:00 2004