POST api/Cache

Request Information

URI Parameters

None.

Body Parameters

CacheItem
NameDescriptionTypeAdditional information
IsExpired

boolean

None.

CacheId

integer

None.

ItemKey

string

None.

ItemJson

string

None.

ItemUrl

string

None.

ItemType

string

None.

Markets

string

None.

Institutions

string

None.

Products

string

None.

ExpiresUtc

date

None.

LastAccessed

date

None.

LastUpdated

date

None.

TranslateSpanish

boolean

None.

AllProducts

boolean

None.

ExpireApiCacheOnly

boolean

None.

ItemImage

Image

None.

InstitutionID

integer

None.

Request Formats

application/json

Sample:
{
  "CacheId": 1,
  "ItemKey": "sample string 2",
  "ItemJson": "sample string 3",
  "ItemUrl": "sample string 4",
  "ItemType": "sample string 5",
  "Markets": "sample string 6",
  "Institutions": "sample string 7",
  "Products": "sample string 8",
  "ExpiresUtc": "2025-04-11T21:24:43.8800266+00:00",
  "LastAccessed": "2025-04-11T21:24:43.8800266+00:00",
  "LastUpdated": "2025-04-11T21:24:43.8800266+00:00",
  "TranslateSpanish": true,
  "AllProducts": true,
  "ExpireApiCacheOnly": true,
  "ItemImage": null,
  "InstitutionID": 1,
  "IsExpired": false
}

text/json

Sample:
{
  "CacheId": 1,
  "ItemKey": "sample string 2",
  "ItemJson": "sample string 3",
  "ItemUrl": "sample string 4",
  "ItemType": "sample string 5",
  "Markets": "sample string 6",
  "Institutions": "sample string 7",
  "Products": "sample string 8",
  "ExpiresUtc": "2025-04-11T21:24:43.8800266+00:00",
  "LastAccessed": "2025-04-11T21:24:43.8800266+00:00",
  "LastUpdated": "2025-04-11T21:24:43.8800266+00:00",
  "TranslateSpanish": true,
  "AllProducts": true,
  "ExpireApiCacheOnly": true,
  "ItemImage": null,
  "InstitutionID": 1,
  "IsExpired": true
}

application/xml, text/xml

Sample:
<CacheItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICacheLibrary">
  <AllProducts>true</AllProducts>
  <CacheId>1</CacheId>
  <ExpireApiCacheOnly>true</ExpireApiCacheOnly>
  <ExpiresUtc>2025-04-11T21:24:43.8800266+00:00</ExpiresUtc>
  <InstitutionID>1</InstitutionID>
  <Institutions>sample string 7</Institutions>
  <ItemImage xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Drawing" i:nil="true" />
  <ItemJson>sample string 3</ItemJson>
  <ItemKey>sample string 2</ItemKey>
  <ItemType>sample string 5</ItemType>
  <ItemUrl>sample string 4</ItemUrl>
  <LastAccessed>2025-04-11T21:24:43.8800266+00:00</LastAccessed>
  <LastUpdated>2025-04-11T21:24:43.8800266+00:00</LastUpdated>
  <Markets>sample string 6</Markets>
  <Products>sample string 8</Products>
  <TranslateSpanish>true</TranslateSpanish>
</CacheItem>

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 'CacheItem'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.