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": "9f2814c3-2f85-49bc-a675-61a5aeae4077",
"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">9f2814c3-2f85-49bc-a675-61a5aeae4077</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": "4571ba9a-0fc6-4613-a77b-f3de0a4e7a23",
"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">4571ba9a-0fc6-4613-a77b-f3de0a4e7a23</Id> <Name>sample string 1</Name> <SortOrder>2</SortOrder> </DosageFormModel>