POST url/GenerateTinyUrl

Request Information

URI Parameters

None.

Body Parameters

TinyURL
NameDescriptionTypeAdditional information
Url

string

None.

QueryString

string

None.

TotalUses

integer

None.

Expires

date

None.

UrlTypeID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Url": "sample string 1",
  "QueryString": "sample string 2",
  "TotalUses": 1,
  "Expires": "2025-07-03T18:34:19.7781613+00:00",
  "UrlTypeID": 1
}

text/html

Sample:
{"Url":"sample string 1","QueryString":"sample string 2","TotalUses":1,"Expires":"2025-07-03T18:34:19.7781613+00:00","UrlTypeID":1}

application/xml, text/xml

Sample:
<TinyURL xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models">
  <Expires>2025-07-03T18:34:19.7781613+00:00</Expires>
  <QueryString>sample string 2</QueryString>
  <TotalUses>1</TotalUses>
  <Url>sample string 1</Url>
  <UrlTypeID>1</UrlTypeID>
</TinyURL>

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

Response Information

Resource Description

string

Response Formats

application/json, text/json, text/html

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>