POST Profile/contact/{contact_id}
Update a contact on your ScubaTribe profile.
Note: This method will update all fields, and unset those not posted. So to update a single field, it is necessary to first GET the contact, make your changes, then update it.
Url Parameters | |
---|---|
{contact_id} |
The ID of the contact to update |
Request Parameters
Parameter | Description | |
---|---|---|
name * (string) |
|
|
email * (string) |
email address |
|
phone (string) |
|
|
fax (string) |
|
|
skype (string) |
|
Response
Parameter | Description | |
---|---|---|
contact_id (int) |
The contact Id for this contact |
*on success |
status (string) |
Was this a successful request? |
OK or error |
error (array) |
A list of errors |
*on error |
Example JSON response:
On Success: { "contact_id": 434, "status": "OK" } On Error: { "status": "error", "error": [ { "field": "name", "msg": "empty" } ] }