Company Contacts

List All Company Contacts


GET http://api.servicem8.com/api_1.0/CompanyContact.json

Response

Status: 200

[[{"company_uuid":"...",
"uuid":"...",
"active":"...",
"first":"...",
"last":"...",
"phone":"...",
"mobile":"...",
"email":"...",
"type":"..."},
{"company_uuid":"...",
"uuid":"...",
"active":"...",
"first":"...",
"last":"...",
"phone":"...",
"mobile":"...",
"email":"...",
"type":"..."}]]

Show a Company Contact


GET http://api.servicem8.com/api_1.0/CompanyContact/{UUID}.json
Returns a single Company Contact.

Response

Status: 200

[{"company_uuid":"...",
"uuid":"...",
"active":"...",
"first":"...",
"last":"...",
"phone":"...",
"mobile":"...",
"email":"...",
"type":"..."}]

Create a Company Contact


POST http://api.servicem8.com/api_1.0/CompanyContact.json
Creates a new Company Contact.

Request

{"first":"New Data Here"}

Response

Status: 200

Update a Company Contact


POST http://api.servicem8.com/api_1.0/CompanyContact/{UUID}.json
Updates an existing Company Contact with new details from the submitted JSON.

Request

{"first":"Updated Data Here"}

Response

Status: 200

Destroy a Company Contact


DELETE http://api.servicem8.com/api_1.0/CompanyContact/{UUID}.json
Deactivate the CompanyContact at the referenced URL.

Response

Status: 200