POST Api/Contracts/{generateAttachements}

Dodaje asynchronicznie nowy obiekt Contract do bazy danych

Request Information

URI Parameters

NameDescriptionTypeAdditional information
generateAttachements

boolean

Default value is False

Body Parameters

nowy obiekt

ContractDto
NameDescriptionTypeAdditional information
ContractId

integer

None.

ProfileId

string

Required

OrganizationalUnitId

integer

None.

OrganizationalUnitName

string

None.

EmployerId

integer

Required

EmployerName

string

None.

TypeOfContractId

integer

Required

StartDate

date

Required

EndDate

date

None.

WorkPositionId

integer

None.

FileLocation

string

None.

PartTime

decimal number

Required

WorkingTimeStandardId

integer

None.

IsOnline

boolean

None.

Content

string

None.

ContractTemplateId

integer

None.

SignedByWorker

boolean

None.

SignedByEmployer

boolean

None.

WorkStartDate

date

None.

WorkEndDate

date

None.

RecruitmentProjectId

integer

None.

ContractNumber

string

None.

Year

integer

None.

Month

integer

None.

Number

integer

None.

Exported

boolean

None.

ContractStatusId

integer

None.

SigningDate

date

None.

Name

string

None.

Surname

string

None.

Email

string

None.

Phone

string

None.

Level

integer

None.

Rating

decimal number

None.

WorkerOrgUnitId

integer

None.

Under26YearOld

boolean

None.

TypeOfIdentityId

integer

None.

ExportId

string

None.

IdentitySeries

string

None.

IdentityNumber

string

None.

AssignedContractAttributes

Collection of AssignedContractAttributeDto

None.

WorkPositionName

string

None.

RecruitmentProjectName

string

None.

ReasonOfResignationIds

Collection of integer

None.

TypeOfResignationId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "contractId": 1,
  "profileId": "sample string 2",
  "organizationalUnitId": 1,
  "organizationalUnitName": "sample string 3",
  "employerId": 4,
  "employerName": "sample string 5",
  "typeOfContractId": 6,
  "startDate": "2024-05-18T08:06:40.3168272+00:00",
  "endDate": "2024-05-18T08:06:40.3168272+00:00",
  "workPositionId": 1,
  "fileLocation": "sample string 8",
  "partTime": 9.0,
  "workingTimeStandardId": 1,
  "isOnline": true,
  "content": "sample string 11",
  "contractTemplateId": 1,
  "signedByWorker": true,
  "signedByEmployer": true,
  "workStartDate": "2024-05-18T08:06:40.3168272+00:00",
  "workEndDate": "2024-05-18T08:06:40.3168272+00:00",
  "recruitmentProjectId": 1,
  "contractNumber": "sample string 14",
  "year": 1,
  "month": 1,
  "number": 1,
  "exported": true,
  "contractStatusId": 1,
  "signingDate": "2024-05-18T08:06:40.3168272+00:00",
  "name": "sample string 16",
  "surname": "sample string 17",
  "email": "sample string 18",
  "phone": "sample string 19",
  "level": 1,
  "rating": 1.0,
  "workerOrgUnitId": 1,
  "under26YearOld": true,
  "typeOfIdentityId": 1,
  "exportId": "sample string 20",
  "identitySeries": "sample string 21",
  "identityNumber": "sample string 22",
  "assignedContractAttributes": [
    {
      "assignedContractAttributeId": 1,
      "typeOfContractAttributeId": 2,
      "contractId": 3,
      "value": "sample string 4"
    },
    {
      "assignedContractAttributeId": 1,
      "typeOfContractAttributeId": 2,
      "contractId": 3,
      "value": "sample string 4"
    }
  ],
  "workPositionName": "sample string 23",
  "recruitmentProjectName": "sample string 24",
  "reasonOfResignationIds": [
    1,
    2
  ],
  "typeOfResignationId": 1
}

multipart/form-data

Sample:
{"contractId":1,"profileId":"sample string 2","organizationalUnitId":1,"organizationalUnitName":"sample string 3","employerId":4,"employerName":"sample string 5","typeOfContractId":6,"startDate":"2024-05-18T08:06:40.3168272+00:00","endDate":"2024-05-18T08:06:40.3168272+00:00","workPositionId":1,"fileLocation":"sample string 8","partTime":9.0,"workingTimeStandardId":1,"isOnline":true,"content":"sample string 11","contractTemplateId":1,"signedByWorker":true,"signedByEmployer":true,"workStartDate":"2024-05-18T08:06:40.3168272+00:00","workEndDate":"2024-05-18T08:06:40.3168272+00:00","recruitmentProjectId":1,"contractNumber":"sample string 14","year":1,"month":1,"number":1,"exported":true,"contractStatusId":1,"signingDate":"2024-05-18T08:06:40.3168272+00:00","name":"sample string 16","surname":"sample string 17","email":"sample string 18","phone":"sample string 19","level":1,"rating":1.0,"workerOrgUnitId":1,"under26YearOld":true,"typeOfIdentityId":1,"exportId":"sample string 20","identitySeries":"sample string 21","identityNumber":"sample string 22","assignedContractAttributes":[{"assignedContractAttributeId":1,"typeOfContractAttributeId":2,"contractId":3,"value":"sample string 4"},{"assignedContractAttributeId":1,"typeOfContractAttributeId":2,"contractId":3,"value":"sample string 4"}],"workPositionName":"sample string 23","recruitmentProjectName":"sample string 24","reasonOfResignationIds":[1,2],"typeOfResignationId":1}

application/xml, text/xml

Sample:
<ContractDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ContractId>1</ContractId>
  <ProfileId>sample string 2</ProfileId>
  <OrganizationalUnitId>1</OrganizationalUnitId>
  <OrganizationalUnitName>sample string 3</OrganizationalUnitName>
  <EmployerId>4</EmployerId>
  <EmployerName>sample string 5</EmployerName>
  <TypeOfContractId>6</TypeOfContractId>
  <StartDate />
  <EndDate />
  <WorkPositionId>1</WorkPositionId>
  <FileLocation>sample string 8</FileLocation>
  <PartTime>9</PartTime>
  <WorkingTimeStandardId>1</WorkingTimeStandardId>
  <IsOnline>true</IsOnline>
  <Content>sample string 11</Content>
  <ContractTemplateId>1</ContractTemplateId>
  <SignedByWorker>true</SignedByWorker>
  <SignedByEmployer>true</SignedByEmployer>
  <WorkStartDate />
  <WorkEndDate />
  <RecruitmentProjectId>1</RecruitmentProjectId>
  <ContractNumber>sample string 14</ContractNumber>
  <Year>1</Year>
  <Month>1</Month>
  <Number>1</Number>
  <Exported>true</Exported>
  <ContractStatusId>1</ContractStatusId>
  <SigningDate />
  <Name>sample string 16</Name>
  <Surname>sample string 17</Surname>
  <Email>sample string 18</Email>
  <Phone>sample string 19</Phone>
  <Level>1</Level>
  <Rating>1</Rating>
  <WorkerOrgUnitId>1</WorkerOrgUnitId>
  <Under26YearOld>true</Under26YearOld>
  <TypeOfIdentityId>1</TypeOfIdentityId>
  <ExportId>sample string 20</ExportId>
  <IdentitySeries>sample string 21</IdentitySeries>
  <IdentityNumber>sample string 22</IdentityNumber>
  <AssignedContractAttributes>
    <AssignedContractAttributeDto>
      <AssignedContractAttributeId>1</AssignedContractAttributeId>
      <TypeOfContractAttributeId>2</TypeOfContractAttributeId>
      <ContractId>3</ContractId>
      <Value>sample string 4</Value>
    </AssignedContractAttributeDto>
    <AssignedContractAttributeDto>
      <AssignedContractAttributeId>1</AssignedContractAttributeId>
      <TypeOfContractAttributeId>2</TypeOfContractAttributeId>
      <ContractId>3</ContractId>
      <Value>sample string 4</Value>
    </AssignedContractAttributeDto>
  </AssignedContractAttributes>
  <WorkPositionName>sample string 23</WorkPositionName>
  <RecruitmentProjectName>sample string 24</RecruitmentProjectName>
  <ReasonOfResignationIds>
    <int>1</int>
    <int>2</int>
  </ReasonOfResignationIds>
  <TypeOfResignationId>1</TypeOfResignationId>
</ContractDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

identyfikator nowo dodanego obiektu

ContractDto
NameDescriptionTypeAdditional information
ContractId

integer

None.

ProfileId

string

Required

OrganizationalUnitId

integer

None.

OrganizationalUnitName

string

None.

EmployerId

integer

Required

EmployerName

string

None.

TypeOfContractId

integer

Required

StartDate

date

Required

EndDate

date

None.

WorkPositionId

integer

None.

FileLocation

string

None.

PartTime

decimal number

Required

WorkingTimeStandardId

integer

None.

IsOnline

boolean

None.

Content

string

None.

ContractTemplateId

integer

None.

SignedByWorker

boolean

None.

SignedByEmployer

boolean

None.

WorkStartDate

date

None.

WorkEndDate

date

None.

RecruitmentProjectId

integer

None.

ContractNumber

string

None.

Year

integer

None.

Month

integer

None.

Number

integer

None.

Exported

boolean

None.

ContractStatusId

integer

None.

SigningDate

date

None.

Name

string

None.

Surname

string

None.

Email

string

None.

Phone

string

None.

Level

integer

None.

Rating

decimal number

None.

WorkerOrgUnitId

integer

None.

Under26YearOld

boolean

None.

TypeOfIdentityId

integer

None.

ExportId

string

None.

IdentitySeries

string

None.

IdentityNumber

string

None.

AssignedContractAttributes

Collection of AssignedContractAttributeDto

None.

WorkPositionName

string

None.

RecruitmentProjectName

string

None.

ReasonOfResignationIds

Collection of integer

None.

TypeOfResignationId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "contractId": 1,
  "profileId": "sample string 2",
  "organizationalUnitId": 1,
  "organizationalUnitName": "sample string 3",
  "employerId": 4,
  "employerName": "sample string 5",
  "typeOfContractId": 6,
  "startDate": "2024-05-18T08:06:40.3324124+00:00",
  "endDate": "2024-05-18T08:06:40.3324124+00:00",
  "workPositionId": 1,
  "fileLocation": "sample string 8",
  "partTime": 9.0,
  "workingTimeStandardId": 1,
  "isOnline": true,
  "content": "sample string 11",
  "contractTemplateId": 1,
  "signedByWorker": true,
  "signedByEmployer": true,
  "workStartDate": "2024-05-18T08:06:40.3324124+00:00",
  "workEndDate": "2024-05-18T08:06:40.3324124+00:00",
  "recruitmentProjectId": 1,
  "contractNumber": "sample string 14",
  "year": 1,
  "month": 1,
  "number": 1,
  "exported": true,
  "contractStatusId": 1,
  "signingDate": "2024-05-18T08:06:40.3324124+00:00",
  "name": "sample string 16",
  "surname": "sample string 17",
  "email": "sample string 18",
  "phone": "sample string 19",
  "level": 1,
  "rating": 1.0,
  "workerOrgUnitId": 1,
  "under26YearOld": true,
  "typeOfIdentityId": 1,
  "exportId": "sample string 20",
  "identitySeries": "sample string 21",
  "identityNumber": "sample string 22",
  "assignedContractAttributes": [
    {
      "assignedContractAttributeId": 1,
      "typeOfContractAttributeId": 2,
      "contractId": 3,
      "value": "sample string 4"
    },
    {
      "assignedContractAttributeId": 1,
      "typeOfContractAttributeId": 2,
      "contractId": 3,
      "value": "sample string 4"
    }
  ],
  "workPositionName": "sample string 23",
  "recruitmentProjectName": "sample string 24",
  "reasonOfResignationIds": [
    1,
    2
  ],
  "typeOfResignationId": 1
}

multipart/form-data

Sample:
{"contractId":1,"profileId":"sample string 2","organizationalUnitId":1,"organizationalUnitName":"sample string 3","employerId":4,"employerName":"sample string 5","typeOfContractId":6,"startDate":"2024-05-18T08:06:40.3324124+00:00","endDate":"2024-05-18T08:06:40.3324124+00:00","workPositionId":1,"fileLocation":"sample string 8","partTime":9.0,"workingTimeStandardId":1,"isOnline":true,"content":"sample string 11","contractTemplateId":1,"signedByWorker":true,"signedByEmployer":true,"workStartDate":"2024-05-18T08:06:40.3324124+00:00","workEndDate":"2024-05-18T08:06:40.3324124+00:00","recruitmentProjectId":1,"contractNumber":"sample string 14","year":1,"month":1,"number":1,"exported":true,"contractStatusId":1,"signingDate":"2024-05-18T08:06:40.3324124+00:00","name":"sample string 16","surname":"sample string 17","email":"sample string 18","phone":"sample string 19","level":1,"rating":1.0,"workerOrgUnitId":1,"under26YearOld":true,"typeOfIdentityId":1,"exportId":"sample string 20","identitySeries":"sample string 21","identityNumber":"sample string 22","assignedContractAttributes":[{"assignedContractAttributeId":1,"typeOfContractAttributeId":2,"contractId":3,"value":"sample string 4"},{"assignedContractAttributeId":1,"typeOfContractAttributeId":2,"contractId":3,"value":"sample string 4"}],"workPositionName":"sample string 23","recruitmentProjectName":"sample string 24","reasonOfResignationIds":[1,2],"typeOfResignationId":1}

application/xml, text/xml

Sample:
<ContractDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ContractId>1</ContractId>
  <ProfileId>sample string 2</ProfileId>
  <OrganizationalUnitId>1</OrganizationalUnitId>
  <OrganizationalUnitName>sample string 3</OrganizationalUnitName>
  <EmployerId>4</EmployerId>
  <EmployerName>sample string 5</EmployerName>
  <TypeOfContractId>6</TypeOfContractId>
  <StartDate />
  <EndDate />
  <WorkPositionId>1</WorkPositionId>
  <FileLocation>sample string 8</FileLocation>
  <PartTime>9</PartTime>
  <WorkingTimeStandardId>1</WorkingTimeStandardId>
  <IsOnline>true</IsOnline>
  <Content>sample string 11</Content>
  <ContractTemplateId>1</ContractTemplateId>
  <SignedByWorker>true</SignedByWorker>
  <SignedByEmployer>true</SignedByEmployer>
  <WorkStartDate />
  <WorkEndDate />
  <RecruitmentProjectId>1</RecruitmentProjectId>
  <ContractNumber>sample string 14</ContractNumber>
  <Year>1</Year>
  <Month>1</Month>
  <Number>1</Number>
  <Exported>true</Exported>
  <ContractStatusId>1</ContractStatusId>
  <SigningDate />
  <Name>sample string 16</Name>
  <Surname>sample string 17</Surname>
  <Email>sample string 18</Email>
  <Phone>sample string 19</Phone>
  <Level>1</Level>
  <Rating>1</Rating>
  <WorkerOrgUnitId>1</WorkerOrgUnitId>
  <Under26YearOld>true</Under26YearOld>
  <TypeOfIdentityId>1</TypeOfIdentityId>
  <ExportId>sample string 20</ExportId>
  <IdentitySeries>sample string 21</IdentitySeries>
  <IdentityNumber>sample string 22</IdentityNumber>
  <AssignedContractAttributes>
    <AssignedContractAttributeDto>
      <AssignedContractAttributeId>1</AssignedContractAttributeId>
      <TypeOfContractAttributeId>2</TypeOfContractAttributeId>
      <ContractId>3</ContractId>
      <Value>sample string 4</Value>
    </AssignedContractAttributeDto>
    <AssignedContractAttributeDto>
      <AssignedContractAttributeId>1</AssignedContractAttributeId>
      <TypeOfContractAttributeId>2</TypeOfContractAttributeId>
      <ContractId>3</ContractId>
      <Value>sample string 4</Value>
    </AssignedContractAttributeDto>
  </AssignedContractAttributes>
  <WorkPositionName>sample string 23</WorkPositionName>
  <RecruitmentProjectName>sample string 24</RecruitmentProjectName>
  <ReasonOfResignationIds>
    <int>1</int>
    <int>2</int>
  </ReasonOfResignationIds>
  <TypeOfResignationId>1</TypeOfResignationId>
</ContractDto>