PUT affiliations/:id
The following macros are not currently supported in the header:
  • style

PUT affiliations/:id

 

The following endpoint can be used to update an existing affiliation. An affiliation is a link between a contact and company. You cannot use this endpoint to update the contact or company the affiliation relates to, in such circumstances you should delete the existing affiliation and create a new one. See delete affiliation and create affiliation for more information on these two steps.

Resource URL

PUT /affiliations/:id ANY /affiliations/:id?_method=PUT

Parameters

Table of allowed parameters.

country_id

unsigned int

Must point to a valid country

physical_address_id

unsigned int

Physical address. Must point to a valid address

postal_address_id

unsigned int

Postal address. Must point to a valid address.

phone

string

The contact's phone number in relation to the affiliated company. e.,g this may be their work number.

fax

string

The contact's fax in relation to the affiliation company. e.g, this may be their work fax number.

email

string

Must be a valid email address

position

string

e.g, CEO, software engineer or volunteer fire fighter.

status_id

unsigned int

The affiliations status id. Must point to a valid affiliation status

standing

string

e.g, active, inactive

communication

string

Must be yes or no.

invoice_method

string

e.g, email, fax or postal

Handling the response

Returns the updated affiliation. Please see get affiliation for details regarding handling of the response.