POST api/v1/relatives
Request Information
URI Parameters
None.
Body Parameters
RelativeDto| Name | Description | Type | Additional information |
|---|---|---|---|
| FirstName | string |
None. |
|
| Id | globally unique identifier |
None. |
|
| LastName | string |
None. |
|
| BirthDate | date |
None. |
|
| Gender | Gender |
None. |
|
| Type | RelativeType |
None. |
|
| HasActiveCard | boolean |
None. |
|
| CustomerId | globally unique identifier |
None. |
|
| RelativeFields | Dictionary of string [key] and RelativeFieldDto [value] |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": "d7802058-f996-4d87-b64f-18ecabf10f6a",
"firstName": "sample string 1",
"lastName": "sample string 2",
"birthDate": "2026-02-04T03:08:27.390566+00:00",
"gender": 0,
"type": 0,
"hasActiveCard": true,
"customerId": "4fdf21b3-eff4-4076-8724-accaa60de9b3",
"relativeFields": {
"sample string 1": {
"code": "sample string 1",
"name": "sample string 2",
"stringValue": "sample string 3",
"dateTimeValue": "2026-02-04T03:08:27.390566+00:00",
"intValue": 1,
"boolValue": true,
"type": "sample string 4"
},
"sample string 2": {
"code": "sample string 1",
"name": "sample string 2",
"stringValue": "sample string 3",
"dateTimeValue": "2026-02-04T03:08:27.390566+00:00",
"intValue": 1,
"boolValue": true,
"type": "sample string 4"
}
}
}
application/xml, text/xml
Sample:
<RelativeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Domain.Dtos">
<BirthDate>2026-02-04T03:08:27.390566+00:00</BirthDate>
<CustomerId>4fdf21b3-eff4-4076-8724-accaa60de9b3</CustomerId>
<FirstName>sample string 1</FirstName>
<Gender>Male</Gender>
<HasActiveCard>true</HasActiveCard>
<Id>d7802058-f996-4d87-b64f-18ecabf10f6a</Id>
<LastName>sample string 2</LastName>
<RelativeFields xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringRelativeFieldDtouOHOlRpi>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>
<BoolValue>true</BoolValue>
<Code>sample string 1</Code>
<DateTimeValue>2026-02-04T03:08:27.390566+00:00</DateTimeValue>
<IntValue>1</IntValue>
<Name>sample string 2</Name>
<StringValue>sample string 3</StringValue>
<Type>sample string 4</Type>
</d2p1:Value>
</d2p1:KeyValueOfstringRelativeFieldDtouOHOlRpi>
<d2p1:KeyValueOfstringRelativeFieldDtouOHOlRpi>
<d2p1:Key>sample string 2</d2p1:Key>
<d2p1:Value>
<BoolValue>true</BoolValue>
<Code>sample string 1</Code>
<DateTimeValue>2026-02-04T03:08:27.390566+00:00</DateTimeValue>
<IntValue>1</IntValue>
<Name>sample string 2</Name>
<StringValue>sample string 3</StringValue>
<Type>sample string 4</Type>
</d2p1:Value>
</d2p1:KeyValueOfstringRelativeFieldDtouOHOlRpi>
</RelativeFields>
<Type>Son</Type>
</RelativeDto>
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.