The following macros are not currently supported in the header:
- style
PUT /contacts/:id
This endpoint can be used to update an existing contact. If you don't see the fields you are after, you may need to look at the get affiliation endpoint.
Resource URL
PUT /contacts/:id ANY /contacts/:id?_method=PUT
Parameters
Table of allowed parameters.
firstname | String | Â |
---|---|---|
middlename | string | Â |
surname | string | Â |
preferred_name | string | Â |
username | string | Must be unique. Otherwise you will get invalid_request |
password | string | Â |
title | string | Â |
salutation | string | Â |
comments | string | Â |
status_id | unsigned int | This must point to a valid affiliation status id, otherwise you will get an invalid_request |
standing | string | Must be potential, interested, active or inactive, otherwise you will get an invalid_request. |
Handling the response
Returns the update contact. Please see get contact for details regarding handling of the response.