POST api/v1/relatives

Request Information

URI Parameters

None.

Body Parameters

RelativeDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

FirstName

string

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": "11507b6e-060b-4099-9d10-3567242ef1e3",
  "firstName": "sample string 1",
  "lastName": "sample string 2",
  "birthDate": "2025-08-31T12:18:09.7981403+00:00",
  "gender": 0,
  "type": 0,
  "hasActiveCard": true,
  "customerId": "0ddadc16-7f46-420e-a503-e2a760a27bda",
  "relativeFields": {
    "sample string 1": {
      "code": "sample string 1",
      "name": "sample string 2",
      "stringValue": "sample string 3",
      "dateTimeValue": "2025-08-31T12:18:09.7981403+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": "2025-08-31T12:18:09.7981403+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>2025-08-31T12:18:09.7981403+00:00</BirthDate>
  <CustomerId>0ddadc16-7f46-420e-a503-e2a760a27bda</CustomerId>
  <FirstName>sample string 1</FirstName>
  <Gender>Male</Gender>
  <HasActiveCard>true</HasActiveCard>
  <Id>11507b6e-060b-4099-9d10-3567242ef1e3</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>2025-08-31T12:18:09.7981403+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>2025-08-31T12:18:09.7981403+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

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.