POST Member/SaveAffiliation

Request Information

URI Parameters

None.

Body Parameters

Affiliation
NameDescriptionTypeAdditional information
CompanyPBEntityKey

integer

Required

Range: inclusive between 1 and 2147483647

CompanyName

string

None.

PBAffiliationKey

integer

None.

ParentPBEntityKey

integer

Required

Range: inclusive between 1 and 2147483647

ChildPBEntityKey

integer

Required

ChildName

string

None.

ParentName

string

None.

ResetWaitingPeriod

boolean

None.

IsActive

boolean

None.

InEffect

date

Required

OutOfEffect

date

None.

WhoLastChanged

string

None.

WhenLastChanged

date

None.

TerminationDate

date

None.

EarliestAffiliationDate

date

None.

NewHireEligible

boolean

None.

NewHireLifeEventId

integer

None.

IsPending

boolean

None.

LastChanged

string

None.

HIPAADescription

string

None.

OriginalHash

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyPBEntityKey": 1,
  "CompanyName": "sample string 2",
  "PBAffiliationKey": 3,
  "ParentPBEntityKey": 4,
  "ChildPBEntityKey": 5,
  "ChildName": "sample string 6",
  "ParentName": "sample string 7",
  "ResetWaitingPeriod": true,
  "IsActive": true,
  "InEffect": "2025-01-09T13:28:38.4318707-06:00",
  "OutOfEffect": "2025-01-09T13:28:38.4318707-06:00",
  "WhoLastChanged": "sample string 11",
  "WhenLastChanged": "2025-01-09T13:28:38.4318707-06:00",
  "TerminationDate": "2025-01-09T13:28:38.4318707-06:00",
  "EarliestAffiliationDate": "2025-01-09T13:28:38.4318707-06:00",
  "NewHireEligible": true,
  "NewHireLifeEventId": 14,
  "IsPending": true,
  "LastChanged": "sample string 11 - 01/09/2025",
  "HIPAADescription": "sample string 16",
  "OriginalHash": 17
}

application/xml, text/xml

Sample:
<Affiliation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VHCSAPIModels.Models">
  <OriginalHash>17</OriginalHash>
  <ChildName>sample string 6</ChildName>
  <ChildPBEntityKey>5</ChildPBEntityKey>
  <CompanyName>sample string 2</CompanyName>
  <CompanyPBEntityKey>1</CompanyPBEntityKey>
  <EarliestAffiliationDate>2025-01-09T13:28:38.4318707-06:00</EarliestAffiliationDate>
  <HIPAADescription>sample string 16</HIPAADescription>
  <InEffect>2025-01-09T13:28:38.4318707-06:00</InEffect>
  <IsActive>true</IsActive>
  <IsPending>true</IsPending>
  <NewHireEligible>true</NewHireEligible>
  <NewHireLifeEventId>14</NewHireLifeEventId>
  <OutOfEffect>2025-01-09T13:28:38.4318707-06:00</OutOfEffect>
  <PBAffiliationKey>3</PBAffiliationKey>
  <ParentName>sample string 7</ParentName>
  <ParentPBEntityKey>4</ParentPBEntityKey>
  <ResetWaitingPeriod>true</ResetWaitingPeriod>
  <TerminationDate>2025-01-09T13:28:38.4318707-06:00</TerminationDate>
  <WhenLastChanged>2025-01-09T13:28:38.4318707-06:00</WhenLastChanged>
  <WhoLastChanged>sample string 11</WhoLastChanged>
</Affiliation>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Affiliation'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.