POST api/WorkerAssessment/TypeOfDrug/{workerAssessmentId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
workerAssessmentId | string |
None. |
Body Parameters
TypeOfDrugCreateUpdateViewModelName | Description | Type | Additional information |
---|---|---|---|
WorkerAssessmentId | globally unique identifier |
None. |
|
DrugTypeIds | Collection of globally unique identifier |
None. |
|
OtherDrugType | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "WorkerAssessmentId": "64d421ff-ebee-4142-9f12-4a0cc75e0c22", "DrugTypeIds": [ "c1f69e61-f261-485f-b5b6-2b49419eb23e", "42374a62-4e58-40f0-9095-592cd64a757b" ], "OtherDrugType": "sample string 2" }
application/xml, text/xml
Sample:
<TypeOfDrugCreateUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas.Worker.ViewModels"> <DrugTypeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>c1f69e61-f261-485f-b5b6-2b49419eb23e</d2p1:guid> <d2p1:guid>42374a62-4e58-40f0-9095-592cd64a757b</d2p1:guid> </DrugTypeIds> <OtherDrugType>sample string 2</OtherDrugType> <WorkerAssessmentId>64d421ff-ebee-4142-9f12-4a0cc75e0c22</WorkerAssessmentId> </TypeOfDrugCreateUpdateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerAssessmentId" 64d421ff-ebee-4142-9f12-4a0cc75e0c22 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DrugTypeIds[0]" c1f69e61-f261-485f-b5b6-2b49419eb23e --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DrugTypeIds[1]" 42374a62-4e58-40f0-9095-592cd64a757b --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="OtherDrugType" 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.