POST api/DosageForms
Creates a new dosage form or updates an existent dosage form's information.
Request Information
URI Parameters
None.
Body Parameters
DosageFormModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Name of dosage form (Required). |
string |
None. |
| SortOrder |
Indicates the sort order of this dosage form in the list. |
integer |
None. |
| Id |
Unique ID of the model in the portal (Read only). |
globally unique identifier |
None. |
| ExternalId |
Unique ID of the model on integrating system (Required). |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"name": "sample string 1",
"sortOrder": 2,
"id": "03f9110b-1fef-443d-b5c1-8704feaf5fea",
"externalId": "sample string 4"
}
application/xml, text/xml
Sample:
<DosageFormModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.DosageForms"> <ExternalId xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">sample string 4</ExternalId> <Id xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">03f9110b-1fef-443d-b5c1-8704feaf5fea</Id> <Name>sample string 1</Name> <SortOrder>2</SortOrder> </DosageFormModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
DosageFormModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Name of dosage form (Required). |
string |
None. |
| SortOrder |
Indicates the sort order of this dosage form in the list. |
integer |
None. |
| Id |
Unique ID of the model in the portal (Read only). |
globally unique identifier |
None. |
| ExternalId |
Unique ID of the model on integrating system (Required). |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"name": "sample string 1",
"sortOrder": 2,
"id": "f14d83d8-f484-4fbf-be27-ee8426c5385f",
"externalId": "sample string 4"
}
application/xml, text/xml
Sample:
<DosageFormModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models.DosageForms"> <ExternalId xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">sample string 4</ExternalId> <Id xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Api.Models">f14d83d8-f484-4fbf-be27-ee8426c5385f</Id> <Name>sample string 1</Name> <SortOrder>2</SortOrder> </DosageFormModel>