Help Page Home - ContactAggregate
PUT ContactAggregate/id
Update a contact aggregate. Updates a contact and inserts or updates the associated company and contact manager.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
WsAccessKey | The Web Service access key for this user and file which allows access to the API for the associated file (found in File - Settings). Using OAuth authentication mechanism is the preferred method to allow API access. | string |
Optional. Legacy authentication method and only required if not using OAuth. OAuth is preferred. |
FileId | Specifies the file id of the file to perform the operation upon. | integer |
Required |
id | Id/key of the contact. | integer |
Required |
Body Parameters
ContactAggregateName | Description | Type | Additional information |
---|---|---|---|
Id | Contact's Id in Saasu system. | integer |
None. |
LastUpdatedId | Identifier used for concurrency checking. Required for update. | string |
None. |
Salutation | The salutation or title of the contact. Valid values: Mr., Mrs., Ms., Dr., Prof. | string |
None. |
GivenName | The first or given name of the contact. | string |
None. |
MiddleInitials | The middle initials of the contact. | string |
None. |
FamilyName | The last name or surname of the contact. | string |
None. |
Company | The Organisation or Company that employs the Contact. | Company |
None. |
PositionTitle | Contact's position or role. | string |
None. |
PrimaryPhone | Primary contact number for the contact. | string |
None. |
MobilePhone | The contact's mobile phone number. | string |
None. |
HomePhone | Home contact number for the contact. | string |
None. |
Fax | The contacts fax number. | string |
None. |
EmailAddress | The contact's email address. | string |
None. |
ContactId | Is used as an Account or Contact reference for this person if they are a supplier or customer. This is your reference or their reference depending on how you prefer to use this field. | string |
None. |
ContactManager | This is another Contact record in Saasu and is used to represent the Account Manager, Salesperson or similar for this Contact record. | ContactManager |
None. |
IsPartner | Indicates if the contact is a partner. | boolean |
None. |
IsCustomer | Indicates if the contact is a customer. | boolean |
None. |
IsSupplier | Indicates if the contact is a supplier. | boolean |
None. |
IsContractor | Indicates if the contact is a contractor. This is important if you need to use the taxable payment reporting feature. | boolean |
None. |
PostalAddress | The postal or mailing address for the contact. | Address |
None. |
_links | Hypermedia links. Contains contextual links to possible next actions related to this resource. Only present in responses. This data is not to be sent to the server. | Collection of Link |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 345, "LastUpdatedId": "AAAAAFwWAN2=", "Salutation": "Mr.", "GivenName": "Joe", "MiddleInitials": null, "FamilyName": "Blogs", "Company": { "Id": 578, "Name": "ACME Co", "Abn": "12345618", "LastUpdatedId": "AAAAAFwWAW4=", "LongDescription": "The ACME company Pty Ltd", "TradingName": "ACME 2", "CompanyEmail": "company@email.com", "_links": [] }, "PositionTitle": "BigBoss", "PrimaryPhone": "02 4444 5555", "MobilePhone": null, "HomePhone": "02 4567 7897", "Fax": null, "EmailAddress": null, "ContactId": "1234", "ContactManager": { "Id": 789, "LastUpdatedId": "AAAAAFwWAM7=", "Salutation": "Mrs.", "GivenName": "Joanne", "MiddleInitials": "B", "FamilyName": "Blogs", "PositionTitle": "UberBoss", "_links": [] }, "IsPartner": false, "IsCustomer": false, "IsSupplier": false, "IsContractor": false, "PostalAddress": { "Street": "123 Acme Street", "City": "Sydney", "State": "NSW", "Postcode": "2000", "Country": "Australia" }, "_links": [] }
application/xml, text/xml
Sample:
<ContactAggregatePut xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <_links /> <Id>345</Id> <LastUpdatedId>AAAAAFwWAN2=</LastUpdatedId> <Salutation>Mr.</Salutation> <GivenName>Joe</GivenName> <MiddleInitials xsi:nil="true" /> <FamilyName>Blogs</FamilyName> <Company> <_links /> <Id>578</Id> <Name>ACME Co</Name> <Abn>12345618</Abn> <LastUpdatedId>AAAAAFwWAW4=</LastUpdatedId> <LongDescription>The ACME company Pty Ltd</LongDescription> <TradingName>ACME 2</TradingName> <CompanyEmail>company@email.com</CompanyEmail> </Company> <PositionTitle>BigBoss</PositionTitle> <PrimaryPhone>02 4444 5555</PrimaryPhone> <MobilePhone xsi:nil="true" /> <HomePhone>02 4567 7897</HomePhone> <Fax xsi:nil="true" /> <EmailAddress xsi:nil="true" /> <ContactId>1234</ContactId> <ContactManager> <_links /> <Id>789</Id> <LastUpdatedId>AAAAAFwWAM7=</LastUpdatedId> <Salutation>Mrs.</Salutation> <GivenName>Joanne</GivenName> <MiddleInitials>B</MiddleInitials> <FamilyName>Blogs</FamilyName> <PositionTitle>UberBoss</PositionTitle> </ContactManager> <IsPartner>false</IsPartner> <IsCustomer>false</IsCustomer> <IsSupplier>false</IsSupplier> <IsContractor>false</IsContractor> <PostalAddress> <Street>123 Acme Street</Street> <City>Sydney</City> <State>NSW</State> <Postcode>2000</Postcode> <Country>Australia</Country> </PostalAddress> </ContactAggregatePut>
Response Information
Resource Description
UpdateContactAggregateResultName | Description | Type | Additional information |
---|---|---|---|
UpdatedContactId | The id of the updated contact. | integer |
None. |
LastUpdatedId | The unique id associated with this update. This value is required to be passed in on subsequent updates to prevent concurrency errors. | string |
None. |
LastModified | The date and time this resource was modified in UTC. | date |
None. |
CompanyId | The unique id associated with the Company that was added or updated. | integer |
None. |
CompanyLastUpdatedId | The unique id associated with this update for the Company. This value is required to be passed in on subsequent updates to prevent concurrency errors. | string |
None. |
ContactManagerId | The unique id associated with the Contact Manager that was added or updated. | integer |
None. |
ContactManagerLastUpdatedId | The unique id associated with this update for the Contact Manager. This value is required to be passed in on subsequent updates to prevent concurrency errors. | string |
None. |
_links | Hypermedia links. Contains contextual links to possible next actions related to this resource. Only present in responses. This data is not to be sent to the server. | Collection of Link |
None. |
Response Formats
application/json, text/json
Sample:
{ "UpdatedContactId": 234, "LastUpdatedId": "AAAAAFwWAN8=", "LastModified": "2024-11-20T18:00:07.2775481Z", "CompanyId": 789, "CompanyLastUpdatedId": "AAAAAFwWAX2=", "ContactManagerId": 233, "ContactManagerLastUpdatedId": "AAAAAFwWAS7=", "_links": [ { "rel": "self", "href": "https://api.saasu.com/ContactAggregate/234?FileId=123", "method": "PUT", "title": null }, { "rel": "insert", "href": "https://api.saasu.com/ContactAggregate/?FileId=123", "method": "POST", "title": null }, { "rel": "detail", "href": "https://api.saasu.com/ContactAggregate/234?FileId=123", "method": "GET", "title": null }, { "rel": "related", "href": "https://api.saasu.com/Contact/234?FileId=123", "method": "GET", "title": "Contact" } ] }
application/xml, text/xml
Sample:
<UpdateContactAggregateResult xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <_links> <Link> <rel>self</rel> <href>https://api.saasu.com/ContactAggregate/234?FileId=123</href> <method>PUT</method> </Link> <Link> <rel>insert</rel> <href>https://api.saasu.com/ContactAggregate/?FileId=123</href> <method>POST</method> </Link> <Link> <rel>detail</rel> <href>https://api.saasu.com/ContactAggregate/234?FileId=123</href> <method>GET</method> </Link> <Link> <rel>related</rel> <href>https://api.saasu.com/Contact/234?FileId=123</href> <method>GET</method> <title>Contact</title> </Link> </_links> <UpdatedContactId>234</UpdatedContactId> <LastUpdatedId>AAAAAFwWAN8=</LastUpdatedId> <LastModified>2024-11-20T18:00:07.2775481Z</LastModified> <CompanyId>789</CompanyId> <CompanyLastUpdatedId>AAAAAFwWAX2=</CompanyLastUpdatedId> <ContactManagerId>233</ContactManagerId> <ContactManagerLastUpdatedId>AAAAAFwWAS7=</ContactManagerLastUpdatedId> </UpdateContactAggregateResult>