POST api/PAC/WorkerOccupation/{workerId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
workerId | string |
None. |
Body Parameters
WorkerOccupationCreateUpdateViewModelName | Description | Type | Additional information |
---|---|---|---|
WorkerId | globally unique identifier |
None. |
|
WorkerAssessmentId | globally unique identifier |
None. |
|
OccupationIds | Collection of globally unique identifier |
None. |
|
OtherOccupation | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "WorkerId": "f99f8bd0-fe26-456b-9be8-dfecc1263350", "WorkerAssessmentId": "1b253c92-39be-4b84-8e55-6e7d74d9b69b", "OccupationIds": [ "5ff14197-c3fb-49b1-8eee-d3ccff673159", "3c18ef0c-cc7d-450a-bfae-f08457dfb5b1" ], "OtherOccupation": "sample string 2" }
application/xml, text/xml
Sample:
<WorkerOccupationCreateUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Worker.ViewModels"> <OccupationIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>5ff14197-c3fb-49b1-8eee-d3ccff673159</d2p1:guid> <d2p1:guid>3c18ef0c-cc7d-450a-bfae-f08457dfb5b1</d2p1:guid> </OccupationIds> <OtherOccupation>sample string 2</OtherOccupation> <WorkerAssessmentId>1b253c92-39be-4b84-8e55-6e7d74d9b69b</WorkerAssessmentId> <WorkerId>f99f8bd0-fe26-456b-9be8-dfecc1263350</WorkerId> </WorkerOccupationCreateUpdateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerId" f99f8bd0-fe26-456b-9be8-dfecc1263350 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerAssessmentId" 1b253c92-39be-4b84-8e55-6e7d74d9b69b --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="OccupationIds[0]" 5ff14197-c3fb-49b1-8eee-d3ccff673159 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="OccupationIds[1]" 3c18ef0c-cc7d-450a-bfae-f08457dfb5b1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="OtherOccupation" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, multipart/form-data
Sample:
Sample not available.