CONTACT AND GROUP FUNCTIONS
Adding New Contacts
HTTP Request
Line
HTTP Response
Status Codes
Example
1
POST /ffws/v1/contacts/admin HTTP/1.1
2
content-type: application/xml
3
authorization: Basic YWRtaW46YWRtaW4=
4
<?xml
version="1.0" encoding="UTF-8"?>
5
<contact>
6
<name>Test Contact</name>
7
<fax_number>218-555-3335</fax_number>
8
<phone_number>218-555-3336</phone_number>
9
<organization>Some org</organization>
10
</contact>
11
-----------------------------------
12
HTTP/1.1 200 OK
13
content-type: application/xml
14
<?xml
version="1.0" encoding="UTF-8"?>
15
<response>
16
<message>Created</message>
17
<contact>
18
<contact_url>https://192.168.2.1/ffws/v1/contacts/admin/6</contact_url>
19
<name>Test Contact</name>
20
<fax_number>218-555-3335</fax_number>
21
<phone_number>218-555-3336</phone_number>
22
<organization>Some org</organization>
23
</contact>
24
</response>
Editing Contacts
HTTP Request
Line
HTTP Response
Status Codes
15
POST /ffws/v1/contacts/USERNAME HTTP/1.1
200 OK
Created
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.
PUT /ffws/v1/contacts/USERNAME/id HTTP/1.1
200 OK
Modified successfully.
403 Forbidden
Authenticated user does not have permission to change data.
404 Not Found
Contact not found.
400 Bad Request
The provided XML is not valid.
FaxFinder Web Services API Developer Guide