New in 0.2.x
The following endpoint will be released in version 0.2.x (part of the mobile application API update). Please check the version here before attempting to use this endpoint.
Resource URL
Create a new affiliation object.
PUT /affiliations/:id ANY /affiliations/:id?_method=PUT
Parameters
Table of allowed parameters.
company | unsigned int | Must point to a valid company. |
---|---|---|
contact | unsigned int | Must point to a valid contact. If the contact doesn't have a default affiliation, it will automatically set it to the newly created affiliation. |
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 | |
fax | string | |
string | Must be a valid email address | |
position | string | e.g, CEO or software engineer |
status | 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 created milestone. Please see get affiliation for details regarding handling of the response.