Contacts - Update Contact Information
PUT yourdomain.com/api/contacts/:id
Header
Field | Type | Description |
---|---|---|
Authorization | String |
Basic Access Authentication token |
Parameter
Field | Type | Description |
---|---|---|
id | Number |
Mandatory Customer Contact id. |
firstname | String |
Mandatory First Name |
lastname | String |
Mandatory Last Name |
String |
Mandatory E-mail |
|
title (optional) | String |
Optional Position |
phonenumber (optional) | String |
Optional Phone Number |
direction (optional) | String |
Optional Direction (rtl or ltr) Default value: |
password (optional) | String |
Optional password (only required if you pass send_set_password_email parameter) |
is_primary (optional) | String |
Optional Primary Contact (set on or don't pass it) Default value: |
donotsendwelcomeemail (optional) | String |
Optional Do Not Send Welcome Email (set on or don't pass it) |
send_set_password_email (optional) | String |
Optional Send Set Password Email (set on or don't pass it) |
permissions (optional) | Array |
Optional Permissions for this contact(["1", "2", "3", "4", "5", "6" ]) |
invoice_emails (optional) | String |
Optional E-Mail Notification for Invoices (set value same as name or don't pass it) Default value: |
estimate_emails (optional) | String |
Optional E-Mail Notification for Estimate (set value same as name or don't pass it) Default value: |
credit_note_emails (optional) | String |
Optional E-Mail Notification for Credit Note (set value same as name or don't pass it) Default value: |
project_emails (optional) | String |
Optional E-Mail Notification for Project (set value same as name or don't pass it) Default value: |
ticket_emails (optional) | String |
Optional E-Mail Notification for Tickets (set value same as name or don't pass it) Default value: |
task_emails (optional) | String |
Optional E-Mail Notification for Task (set value same as name or don't pass it) Default value: |
contract_emails (optional) | String |
Optional E-Mail Notification for Contract (set value same as name or don't pass it) Default value: |
Success 200
Field | Type | Description |
---|---|---|
status | Boolean |
Request status |
message | String |
Contact updated successful |
Error 4xx
Name | Type | Description |
---|---|---|
String |
This Email is already exists |
|
status | Boolean |
Request status |
message | String |
Contact add fail |
HTTP/1.1 200 OK
{
"status": true,
"message": "Contact Updated Successfully"
}
HTTP/1.1 409 Conflict
{
"status": false,
"error": {
"email":"This Email is already exists"
},
"message": "This Email is already exists"
}