PUT api/Plan/{id}

Updates an existing plan

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Name of plan to update

string

Required

Body Parameters

Updated plan details

Plan
NameDescriptionTypeAdditional information
BundleID

integer

None.

PlanName

string

None.

Interval

TimeInterval

None.

IntervalCount

integer

None.

Currency

string

None.

Amount

decimal number

None.

ExternalIdentifier

string

None.

ExternalIdentifier2

string

None.

Request Formats

application/json, text/json

Sample:
{
  "BundleID": 1,
  "PlanName": "sample string 2",
  "Interval": "Hour",
  "IntervalCount": 3,
  "Currency": "sample string 4",
  "Amount": 5.0,
  "ExternalIdentifier": "sample string 6",
  "ExternalIdentifier2": "sample string 7"
}

application/xml, text/xml

Sample:
<Plan xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yummy.Portal.Models">
  <Amount>5</Amount>
  <BundleID>1</BundleID>
  <Currency>sample string 4</Currency>
  <ExternalIdentifier>sample string 6</ExternalIdentifier>
  <ExternalIdentifier2>sample string 7</ExternalIdentifier2>
  <Interval>Hour</Interval>
  <IntervalCount>3</IntervalCount>
  <PlanName>sample string 2</PlanName>
</Plan>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Http Status Code

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.