POST v1/contacts/{id}/associate-vendor
Associates an existing contact with an existing vendor. User should know the ContactID and VendorID prior to creating association. if there is an existing asssociation between the contact and vendor, the association will be updated with the information supplied
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
ID for the contact to associate with a vendor |
integer |
Required |
Body Parameters
Association object indicating the VendorID, and other details related to the association
VendorContactAssociationName | Description | Type | Additional information |
---|---|---|---|
Vendor |
ID for the associated vendor |
IdNamePair |
Required |
ContactTitle |
Title assigned to contact for the associated vendor |
string |
None. |
IsPrimary |
Indicate if the contact is primary. If set to true, other primary contact (if any) will be revoked. |
boolean |
None. |
Active |
Indicate if the association is active. Setting false will deactivate the association |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "vendor": { "id": 1, "name": "sample string 2" }, "contactTitle": "sample string 1", "isPrimary": true, "active": true }
application/xml, text/xml
Sample:
<VendorContactAssociation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAPI.Models.CRM"> <Active>true</Active> <ContactTitle>sample string 1</ContactTitle> <IsPrimary>true</IsPrimary> <Vendor xmlns:d2p1="http://schemas.datacontract.org/2004/07/BBM.BLL.Core"> <d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField> <d2p1:_x003C_Name_x003E_k__BackingField>sample string 2</d2p1:_x003C_Name_x003E_k__BackingField> </Vendor> </VendorContactAssociation>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.