PUT Api/Orders/AssignWorker

Ustawia zapisanie pracownika na zmianę

Request Information

URI Parameters

None.

Body Parameters

nowe wartości dla przypisania

Collection of AssignedWorkerDto
NameDescriptionTypeAdditional information
AssignedWorkerId

integer

Required

ProfileId

string

Required

NeedId

integer

Required

AssignmentDate

date

Required

AssignedById

string

Required

IsAssigned

boolean

None.

ContractId

integer

None.

AssignmentStageId

integer

None.

TypeOfAbsenceId

integer

None.

Name

string

None.

Surname

string

None.

Gender

integer

None.

OrganizationalUnitId

integer

None.

Created

boolean

None.

Error

string

None.

OtherShiftId

integer

None.

Available

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "assignedWorkerId": 1,
    "profileId": "sample string 2",
    "needId": 3,
    "assignmentDate": "2024-05-18T06:39:49.6345752+00:00",
    "assignedById": "sample string 5",
    "isAssigned": true,
    "contractId": 1,
    "assignmentStageId": 1,
    "typeOfAbsenceId": 1,
    "name": null,
    "surname": null,
    "gender": null,
    "organizationalUnitId": null,
    "created": null,
    "error": null,
    "otherShiftId": null,
    "available": true
  },
  {
    "assignedWorkerId": 1,
    "profileId": "sample string 2",
    "needId": 3,
    "assignmentDate": "2024-05-18T06:39:49.6345752+00:00",
    "assignedById": "sample string 5",
    "isAssigned": true,
    "contractId": 1,
    "assignmentStageId": 1,
    "typeOfAbsenceId": 1,
    "name": null,
    "surname": null,
    "gender": null,
    "organizationalUnitId": null,
    "created": null,
    "error": null,
    "otherShiftId": null,
    "available": true
  }
]

multipart/form-data

Sample:
[{"assignedWorkerId":1,"profileId":"sample string 2","needId":3,"assignmentDate":"2024-05-18T06:39:49.6345752+00:00","assignedById":"sample string 5","isAssigned":true,"contractId":1,"assignmentStageId":1,"typeOfAbsenceId":1,"name":null,"surname":null,"gender":null,"organizationalUnitId":null,"created":null,"error":null,"otherShiftId":null,"available":true},{"assignedWorkerId":1,"profileId":"sample string 2","needId":3,"assignmentDate":"2024-05-18T06:39:49.6345752+00:00","assignedById":"sample string 5","isAssigned":true,"contractId":1,"assignmentStageId":1,"typeOfAbsenceId":1,"name":null,"surname":null,"gender":null,"organizationalUnitId":null,"created":null,"error":null,"otherShiftId":null,"available":true}]

application/xml, text/xml

Sample:
<ArrayOfAssignedWorkerDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <AssignedWorkerDto>
    <AssignedWorkerId>1</AssignedWorkerId>
    <ProfileId>sample string 2</ProfileId>
    <NeedId>3</NeedId>
    <AssignmentDate />
    <AssignedById>sample string 5</AssignedById>
    <IsAssigned>true</IsAssigned>
    <ContractId>1</ContractId>
    <AssignmentStageId>1</AssignmentStageId>
    <TypeOfAbsenceId>1</TypeOfAbsenceId>
    <Available>true</Available>
  </AssignedWorkerDto>
  <AssignedWorkerDto>
    <AssignedWorkerId>1</AssignedWorkerId>
    <ProfileId>sample string 2</ProfileId>
    <NeedId>3</NeedId>
    <AssignmentDate />
    <AssignedById>sample string 5</AssignedById>
    <IsAssigned>true</IsAssigned>
    <ContractId>1</ContractId>
    <AssignmentStageId>1</AssignmentStageId>
    <TypeOfAbsenceId>1</TypeOfAbsenceId>
    <Available>true</Available>
  </AssignedWorkerDto>
</ArrayOfAssignedWorkerDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

zmieniony obiekt z nowymi danymi

Collection of AssignedWorkerDto
NameDescriptionTypeAdditional information
AssignedWorkerId

integer

Required

ProfileId

string

Required

NeedId

integer

Required

AssignmentDate

date

Required

AssignedById

string

Required

IsAssigned

boolean

None.

ContractId

integer

None.

AssignmentStageId

integer

None.

TypeOfAbsenceId

integer

None.

Name

string

None.

Surname

string

None.

Gender

integer

None.

OrganizationalUnitId

integer

None.

Created

boolean

None.

Error

string

None.

OtherShiftId

integer

None.

Available

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "assignedWorkerId": 1,
    "profileId": "sample string 2",
    "needId": 3,
    "assignmentDate": "2024-05-18T06:39:49.6658374+00:00",
    "assignedById": "sample string 5",
    "isAssigned": true,
    "contractId": 1,
    "assignmentStageId": 1,
    "typeOfAbsenceId": 1,
    "name": null,
    "surname": null,
    "gender": null,
    "organizationalUnitId": null,
    "created": null,
    "error": null,
    "otherShiftId": null,
    "available": true
  },
  {
    "assignedWorkerId": 1,
    "profileId": "sample string 2",
    "needId": 3,
    "assignmentDate": "2024-05-18T06:39:49.6658374+00:00",
    "assignedById": "sample string 5",
    "isAssigned": true,
    "contractId": 1,
    "assignmentStageId": 1,
    "typeOfAbsenceId": 1,
    "name": null,
    "surname": null,
    "gender": null,
    "organizationalUnitId": null,
    "created": null,
    "error": null,
    "otherShiftId": null,
    "available": true
  }
]

multipart/form-data

Sample:
[{"assignedWorkerId":1,"profileId":"sample string 2","needId":3,"assignmentDate":"2024-05-18T06:39:49.6658374+00:00","assignedById":"sample string 5","isAssigned":true,"contractId":1,"assignmentStageId":1,"typeOfAbsenceId":1,"name":null,"surname":null,"gender":null,"organizationalUnitId":null,"created":null,"error":null,"otherShiftId":null,"available":true},{"assignedWorkerId":1,"profileId":"sample string 2","needId":3,"assignmentDate":"2024-05-18T06:39:49.6658374+00:00","assignedById":"sample string 5","isAssigned":true,"contractId":1,"assignmentStageId":1,"typeOfAbsenceId":1,"name":null,"surname":null,"gender":null,"organizationalUnitId":null,"created":null,"error":null,"otherShiftId":null,"available":true}]

application/xml, text/xml

Sample:
<ArrayOfAssignedWorkerDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <AssignedWorkerDto>
    <AssignedWorkerId>1</AssignedWorkerId>
    <ProfileId>sample string 2</ProfileId>
    <NeedId>3</NeedId>
    <AssignmentDate />
    <AssignedById>sample string 5</AssignedById>
    <IsAssigned>true</IsAssigned>
    <ContractId>1</ContractId>
    <AssignmentStageId>1</AssignmentStageId>
    <TypeOfAbsenceId>1</TypeOfAbsenceId>
    <Available>true</Available>
  </AssignedWorkerDto>
  <AssignedWorkerDto>
    <AssignedWorkerId>1</AssignedWorkerId>
    <ProfileId>sample string 2</ProfileId>
    <NeedId>3</NeedId>
    <AssignmentDate />
    <AssignedById>sample string 5</AssignedById>
    <IsAssigned>true</IsAssigned>
    <ContractId>1</ContractId>
    <AssignmentStageId>1</AssignmentStageId>
    <TypeOfAbsenceId>1</TypeOfAbsenceId>
    <Available>true</Available>
  </AssignedWorkerDto>
</ArrayOfAssignedWorkerDto>