POST api/Media/AddNewMedia?Token={Token}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Token

string

Required

Body Parameters

Docvault
NameDescriptionTypeAdditional information
Id

integer

None.

Userid

integer

None.

Documentname

string

None.

Keywords

string

None.

Expirydate

date

None.

Type

signed byte

None.

Fileurl

string

None.

Addeddate

date

None.

Isreminder

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Userid": 2,
  "Documentname": "sample string 3",
  "Keywords": "sample string 4",
  "Expirydate": "2025-09-17T01:39:22.0981167-07:00",
  "Type": 64,
  "Fileurl": "sample string 5",
  "Addeddate": "2025-09-17T01:39:22.0991211-07:00",
  "Isreminder": 6
}

application/xml, text/xml

Sample:
<Docvault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/docvaultApi.Models">
  <Addeddate>2025-09-17T01:39:22.0991211-07:00</Addeddate>
  <Documentname>sample string 3</Documentname>
  <Expirydate>2025-09-17T01:39:22.0981167-07:00</Expirydate>
  <Fileurl>sample string 5</Fileurl>
  <Id>1</Id>
  <Isreminder>6</Isreminder>
  <Keywords>sample string 4</Keywords>
  <Type>64</Type>
  <Userid>2</Userid>
</Docvault>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Docvault'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.