POST associations({associationId})/representatives({startRepresentativeId})/relationships({relationshipType})/representatives({endRepresentativeId})
Method to add a relationship between two representatives
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
associationId | Association of interest |
Define this parameter in the request URI. |
startRepresentativeId | Representative that wants a relationship |
Define this parameter in the request URI. |
relationshipType | Type of relationship |
Define this parameter in the request URI. |
endRepresentativeId | Representative to be on the other end of the relationship |
Define this parameter in the request URI. |
Response Information
Newly added relationship
Response body formats
application/json, text/json
Sample:
{ "StartRepresentativeId": 1, "EndRepresentativeId": 2, "RelationshipType": 64 }
application/xml, text/xml
Sample:
<RepresentativeRelationshipResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MicroNet.WebAPI.Classes.Resources"> <EndRepresentativeId>2</EndRepresentativeId> <RelationshipType>64</RelationshipType> <StartRepresentativeId>1</StartRepresentativeId> </RepresentativeRelationshipResource>