POST api/PAC/WorkerStatus/{workerId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
workerId

string

None.

Body Parameters

WorkerStatusUpdateViewModel
NameDescriptionTypeAdditional information
WorkerId

globally unique identifier

None.

WorkerStatusId

globally unique identifier

None.

Remarks

string

None.

IsSuspendedTemporary

boolean

None.

SuspensionDuration

date

None.

Request Formats

application/json, text/json

Sample:
{
  "WorkerId": "56fb06b5-f13e-4b87-be55-3fd73079abf0",
  "WorkerStatusId": "ac545ef9-1760-4f01-9dde-19098a578a7b",
  "Remarks": "sample string 3",
  "IsSuspendedTemporary": true,
  "SuspensionDuration": "2024-12-28T18:10:01.4040679+00:00"
}

application/xml, text/xml

Sample:
<WorkerStatusUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Worker.ViewModels">
  <IsSuspendedTemporary>true</IsSuspendedTemporary>
  <Remarks>sample string 3</Remarks>
  <SuspensionDuration>2024-12-28T18:10:01.4040679+00:00</SuspensionDuration>
  <WorkerId>56fb06b5-f13e-4b87-be55-3fd73079abf0</WorkerId>
  <WorkerStatusId>ac545ef9-1760-4f01-9dde-19098a578a7b</WorkerStatusId>
</WorkerStatusUpdateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="WorkerId"

56fb06b5-f13e-4b87-be55-3fd73079abf0
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="WorkerStatusId"

ac545ef9-1760-4f01-9dde-19098a578a7b
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Remarks"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IsSuspendedTemporary"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SuspensionDuration"

2024-12-28T18:10:01.4040679+00:00
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, multipart/form-data

Sample:

Sample not available.