Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Only available in v0.2.x

The following endpoint is currently unavailable. It will be released in version 1.2.x with the mobile applications.

Resource URL

Create a new affiliation object.

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

Parameters

Table of allowed parameters.

companyunsigned intMust point to a valid company. 
contactunsigned intMust 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_idunsigned intMust point to a valid country
physical_address_idunsigned intPhysical address. Must point to a valid address
postal_address_idunsigned intPostal address. Must point to a valid address.
phonestring 
faxstring 
emailstringMust be a valid email address
positionstringe.g, CEO or software engineer
statusunsigned intThe affiliations status id. Must point to a valid affiliation status
standingstringe.g, active, inactive
communicationstringMust be yes or no.
invoice_methodstringe.g, email, fax or postal

Handling the response

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

  • No labels