POST api/FamilyRelationships
Creates a new family relationship or update an existent family relationship's information.
Request Information
URI Parameters
None.
Body Parameters
FamilyRelationshipModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Name of the family relationship (Required). |
string |
None. |
| SortOrder |
Sort order of the family relationship. |
integer |
None. |
| IsDefault |
Indicates whether the family relationship is default or not. |
boolean |
None. |
| Id |
Unique ID of the model in the portal (Read only). |
globally unique identifier |
None. |
| ExternalId |
Unique ID of the model on integrating system (Required). |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"name": "sample string 1",
"sortOrder": 2,
"isDefault": true,
"id": "0e3b31d2-e5ea-4b1a-aeae-aa1d01077ad3",
"externalId": "sample string 5"
}
application/xml, text/xml
Sample:
<FamilyRelationshipModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.FamilyRelationships"> <ExternalId xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">sample string 5</ExternalId> <Id xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">0e3b31d2-e5ea-4b1a-aeae-aa1d01077ad3</Id> <IsDefault>true</IsDefault> <Name>sample string 1</Name> <SortOrder>2</SortOrder> </FamilyRelationshipModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
FamilyRelationshipModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Name of the family relationship (Required). |
string |
None. |
| SortOrder |
Sort order of the family relationship. |
integer |
None. |
| IsDefault |
Indicates whether the family relationship is default or not. |
boolean |
None. |
| Id |
Unique ID of the model in the portal (Read only). |
globally unique identifier |
None. |
| ExternalId |
Unique ID of the model on integrating system (Required). |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"name": "sample string 1",
"sortOrder": 2,
"isDefault": true,
"id": "b7e71b35-750a-4c52-b8d4-07c2a975b3db",
"externalId": "sample string 5"
}
application/xml, text/xml
Sample:
<FamilyRelationshipModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.FamilyRelationships"> <ExternalId xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">sample string 5</ExternalId> <Id xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">b7e71b35-750a-4c52-b8d4-07c2a975b3db</Id> <IsDefault>true</IsDefault> <Name>sample string 1</Name> <SortOrder>2</SortOrder> </FamilyRelationshipModel>