
Appendix B: Customization
Multi-Tech Systems, Inc.
FaxFinder Admin User Guide
101
Modifying Contacts
A contact can be modified by sending a PUT request to the contact URL found in the contact_url
element of the contact to modify. The message body should contain the updated contact XML element.
HTTP Request line:
POST /ffws/v1/contacts/USERNAME/id HTTP/1.0
HTTP Response Status Codes:
200 OK
Modified successfully.
403 Forbidden
Authenticated user does not have permission to change data associated with
username.
404 Not Found
No user found with that username.
400 Bad Request
The provided XML is not valid.
Example:
POST /ffws/v1/contacts/admin/6 HTTP/1.0
content-type: application/xml
authorization: Basic YWRtaW46YWRtaW4=
<?xml version="1.0" encoding="UTF-8"?>
<contact>
<name>Change name</name>
<fax_number>111-222-4444</fax_number>
<phone_number>218-555-3336</phone_number>
<organization>Some org</organization>
</contact>
-----------------------------------
HTTP/1.1 200 OK
content-type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<response>
<message>Modified</message>
</response>