POST api/FormTypes
Request Information
URI Parameters
None.
Body Parameters
FormType| Name | Description | Type | Additional information |
|---|---|---|---|
| FormTypeId | integer |
None. |
|
| Name | string |
Required |
|
| IsActive | boolean |
Required |
|
| FormTypeCategoryId | integer |
None. |
|
| FormTypeCategory | FormTypeCategory |
None. |
|
| FileAttachmentId | integer |
None. |
|
| AttachedDocument | Collection of byte |
None. |
|
| AzureAttachedDocument | string |
None. |
|
| AzureAttachedDocumentUrl | string |
None. |
|
| MimeType | string |
None. |
|
| FileSize | integer |
None. |
|
| FileName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"formTypeId": 1,
"name": "sample string 2",
"isActive": true,
"formTypeCategoryId": 1,
"formTypeCategory": {
"formTypeCategoryId": 1,
"name": "sample string 2",
"isActive": true
},
"fileAttachmentId": 1,
"attachedDocument": "QEA=",
"azureAttachedDocument": "sample string 4",
"azureAttachedDocumentUrl": "sample string 5",
"mimeType": "sample string 6",
"fileSize": 1,
"fileName": "sample string 7"
}
text/html
Sample:
{"formTypeId":1,"name":"sample string 2","isActive":true,"formTypeCategoryId":1,"formTypeCategory":{"formTypeCategoryId":1,"name":"sample string 2","isActive":true},"fileAttachmentId":1,"attachedDocument":"QEA=","azureAttachedDocument":"sample string 4","azureAttachedDocumentUrl":"sample string 5","mimeType":"sample string 6","fileSize":1,"fileName":"sample string 7"}
application/xml, text/xml
Sample:
<FormType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UrgentCareExtra.Data.Models">
<AttachedDocument>QEA=</AttachedDocument>
<AzureAttachedDocument>sample string 4</AzureAttachedDocument>
<AzureAttachedDocumentUrl>sample string 5</AzureAttachedDocumentUrl>
<FileAttachmentId>1</FileAttachmentId>
<FileName>sample string 7</FileName>
<FileSize>1</FileSize>
<FormTypeCategory>
<FormTypeCategoryId>1</FormTypeCategoryId>
<IsActive>true</IsActive>
<Name>sample string 2</Name>
</FormTypeCategory>
<FormTypeCategoryId>1</FormTypeCategoryId>
<FormTypeId>1</FormTypeId>
<IsActive>true</IsActive>
<MimeType>sample string 6</MimeType>
<Name>sample string 2</Name>
</FormType>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.