PUT api/BestBets/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

BestBetModel
NameDescriptionTypeAdditional information
id

string

None.

phrases

string

Required

Matching regular expression pattern: [^-'&](?:\w|[\-\&'\s,])+

target_description

string

None.

target_type

string

None.

target_key

string

None.

tags

Collection of string

None.

date_added

date

None.

best_bet_has_own_style

boolean

None.

best_bet_target_title

string

None.

best_bet_target_description

string

None.

best_bet_target_url

string

None.

best_bet_target_document_title

string

None.

best_bet_target_document_description

string

None.

best_bet_target_document_status

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "phrases": "sample string 2",
  "target_description": "sample string 3",
  "target_type": "sample string 4",
  "target_key": "sample string 5",
  "tags": [
    "sample string 1",
    "sample string 2"
  ],
  "date_added": "2022-08-08T00:45:50.1875413+02:00",
  "best_bet_has_own_style": true,
  "best_bet_target_title": "sample string 8",
  "best_bet_target_description": "sample string 9",
  "best_bet_target_url": "sample string 10",
  "best_bet_target_document_title": "sample string 11",
  "best_bet_target_document_description": "sample string 12",
  "best_bet_target_document_status": 13
}

application/xml, text/xml

Sample:
<BestBetModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EPiServer.Find.UI.Models">
  <BestBetHasOwnStyle>true</BestBetHasOwnStyle>
  <BestBetTargetDescription>sample string 9</BestBetTargetDescription>
  <BestBetTargetDocumentDescription>sample string 12</BestBetTargetDocumentDescription>
  <BestBetTargetDocumentStatus>13</BestBetTargetDocumentStatus>
  <BestBetTargetDocumentTitle>sample string 11</BestBetTargetDocumentTitle>
  <BestBetTargetTitle>sample string 8</BestBetTargetTitle>
  <BestBetTargetUrl>sample string 10</BestBetTargetUrl>
  <DateAdded>2022-08-08T00:45:50.1875413+02:00</DateAdded>
  <Id>sample string 1</Id>
  <Phrases>sample string 2</Phrases>
  <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Tags>
  <TargetDescription>sample string 3</TargetDescription>
  <TargetKey>sample string 5</TargetKey>
  <TargetType>sample string 4</TargetType>
</BestBetModel>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.