POST api/dmsdocumenttype2mimetype/preparenew
Request Information
URI Parameters
None.
Body Parameters
Collection of KeyValue| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
|
| Value | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Value": "sample string 2"
},
{
"Id": 1,
"Value": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfKeyValue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
<KeyValue>
<Id>1</Id>
<Value>sample string 2</Value>
</KeyValue>
<KeyValue>
<Id>1</Id>
<Value>sample string 2</Value>
</KeyValue>
</ArrayOfKeyValue>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
DmsDocumentType2MimeType| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
|
| RowGuid | globally unique identifier |
Required |
|
| DocumentTypeId | integer |
Required |
|
| MimeTypeId | integer |
Required |
|
| Active | boolean |
Required |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"RowGuid": "5a56822e-84e9-4d55-a2d3-66c4a2e05348",
"DocumentTypeId": 3,
"MimeTypeId": 4,
"Active": true
}
application/xml, text/xml
Sample:
<DmsDocumentType2MimeType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.Tools.Dms.Models"> <Active>true</Active> <DocumentTypeId>3</DocumentTypeId> <Id>1</Id> <MimeTypeId>4</MimeTypeId> <RowGuid>5a56822e-84e9-4d55-a2d3-66c4a2e05348</RowGuid> </DmsDocumentType2MimeType>