POST api/WorkerAssessment/TypeOfDrug/{workerAssessmentId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| workerAssessmentId | string |
None. |
Body Parameters
TypeOfDrugCreateUpdateViewModel| Name | 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": "99db2f79-58bd-4211-82e7-e15a020da6f9",
"DrugTypeIds": [
"bbfb0dff-a94e-48bc-833b-d21b670fe2df",
"a58685d3-76d3-44cd-ab90-42d479a3f474"
],
"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>bbfb0dff-a94e-48bc-833b-d21b670fe2df</d2p1:guid>
<d2p1:guid>a58685d3-76d3-44cd-ab90-42d479a3f474</d2p1:guid>
</DrugTypeIds>
<OtherDrugType>sample string 2</OtherDrugType>
<WorkerAssessmentId>99db2f79-58bd-4211-82e7-e15a020da6f9</WorkerAssessmentId>
</TypeOfDrugCreateUpdateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="WorkerAssessmentId" 99db2f79-58bd-4211-82e7-e15a020da6f9 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DrugTypeIds[0]" bbfb0dff-a94e-48bc-833b-d21b670fe2df --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DrugTypeIds[1]" a58685d3-76d3-44cd-ab90-42d479a3f474 --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.