POST Workers/Relationship?validateOnly={validateOnly}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
validateOnly

boolean

Default value is False

Body Parameters

WorkerRelationshipDTO
NameDescriptionTypeAdditional information
WorkerRelationshipID

integer

None.

ChildEntityID

integer

None.

ParentEntityID

integer

None.

EntityRelationshipTypeEntryID

integer

None.

RecordState

RecordState

None.

Created

AuditDataDTO

None.

LastUpdated

AuditDataDTO

None.

EntityRelationshipTypeValue

string

None.

WorkerRelationshipDetails

WorkerRelationshipDetailsDTO

None.

ParentEntityType

EntityType

None.

ParentEntityTypeEntryID

integer

None.

ParentEntityTypeEntryValue

string

None.

ParentEntityName

NameDTO

None.

ParentEntityAddresses

AddressesDTO

None.

ParentEntityCommunicationMethods

CommunicationMethodsDTO

None.

Comments

string

None.

Summary

string

None.

Request Formats

application/json, text/json

Sample:
{
  "workerRelationshipID": 1,
  "childEntityID": 2,
  "parentEntityID": 3,
  "entityRelationshipTypeEntryID": 4,
  "recordState": 1,
  "created": {
    "dateUtc": "2024-12-04T08:01:24.7290879+00:00",
    "userName": "sample string 2",
    "summary": "sample string 2 on 12/4/2024 8:01:24 AM"
  },
  "lastUpdated": {
    "dateUtc": "2024-12-04T08:01:24.7290879+00:00",
    "userName": "sample string 2",
    "summary": "sample string 2 on 12/4/2024 8:01:24 AM"
  },
  "entityRelationshipTypeValue": "sample string 5",
  "workerRelationshipDetails": {
    "list": []
  },
  "parentEntityType": 1,
  "parentEntityTypeEntryID": 6,
  "parentEntityTypeEntryValue": "sample string 7",
  "parentEntityName": {
    "lastName": "sample string 1",
    "firstName": "sample string 2",
    "preferredName": "sample string 3",
    "middleName": "sample string 4",
    "prefix": "sample string 5",
    "suffix": "sample string 6",
    "summary": "sample string 1, sample string 2 (sample string 3)"
  },
  "parentEntityAddresses": {
    "list": [],
    "partialData": 1
  },
  "parentEntityCommunicationMethods": {
    "list": [],
    "partialData": 1,
    "phoneNumbers": []
  },
  "comments": "sample string 8",
  "summary": "WorkerRelationshipDTO"
}

application/xml, text/xml

Sample:
<WorkerRelationshipDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProcuraGroup.Models">
  <ChildEntityID>2</ChildEntityID>
  <Comments>sample string 8</Comments>
  <Created>
    <DateUtc>2024-12-04T08:01:24.7290879+00:00</DateUtc>
    <UserName>sample string 2</UserName>
  </Created>
  <EntityRelationshipTypeEntryID>4</EntityRelationshipTypeEntryID>
  <EntityRelationshipTypeValue>sample string 5</EntityRelationshipTypeValue>
  <LastUpdated>
    <DateUtc>2024-12-04T08:01:24.7290879+00:00</DateUtc>
    <UserName>sample string 2</UserName>
  </LastUpdated>
  <ParentEntityAddresses>
    <List />
    <PartialData>FullData</PartialData>
  </ParentEntityAddresses>
  <ParentEntityCommunicationMethods>
    <List />
    <PartialData>FullData</PartialData>
    <PhoneNumbers />
  </ParentEntityCommunicationMethods>
  <ParentEntityID>3</ParentEntityID>
  <ParentEntityName>
    <FirstName>sample string 2</FirstName>
    <LastName>sample string 1</LastName>
    <MiddleName>sample string 4</MiddleName>
    <PreferredName>sample string 3</PreferredName>
    <Prefix>sample string 5</Prefix>
    <Suffix>sample string 6</Suffix>
  </ParentEntityName>
  <ParentEntityType>Organization</ParentEntityType>
  <ParentEntityTypeEntryID>6</ParentEntityTypeEntryID>
  <ParentEntityTypeEntryValue>sample string 7</ParentEntityTypeEntryValue>
  <RecordState>Active</RecordState>
  <WorkerRelationshipDetails>
    <List />
  </WorkerRelationshipDetails>
  <WorkerRelationshipID>1</WorkerRelationshipID>
</WorkerRelationshipDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/x-compressed-json

Sample:
��R�N�0��hO R긡��*ʁC�-o���D�#��~>�_�I+ ������������so�~E}��Y�&f%��	D��JH~�Xa���!c���������:CG�%#�Ac�j~g�ŝ�Fw�m�����%4��C�9F$�hx>�#2���r�zƔS�T&�3V��ţ4�RL����&^@�a�h�����>Hf�"��e�v/�̛M.\�fr�LHS,#��=>m���e�ǟ����9P��ֶٔ������»L��F���9��Kl�ý�xo����6�$������F:���c�5��$J�LN�e.�Z�e�T���s�v����J�����G;�h[+>4������

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.