Home > Cloud Cruiser 3 > REST API reference > Rate plans > Update a rate plan

Update a rate plan

Updates an existing rate plan.

URL syntax

http://<ccServerURL
>/rest/v1/ratePlans/ratePlan/<id
>

HTTP method

PUT

Request

URL path parameters (required)

id (type: int )

Content-Type
application/xml
Request body

The rate plan information with any modification. The ratePlan ’s id attribute value is required to be the same as that in the URL path. XML text with root element ratePlan .

Response

Content-Type
application/xml
Response body

The updated rate plan information. XML text with root element ratePlan .

JAXB type
com.cloudcruiser.server.webservices.v1.dto.ratePlan.RatePlan

Example

URL
http://localhost:8080/rest/v1/ratePlans/ratePlan/10400
Request body
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ratePlan xmlns="http://www.cloudcruiser.com/webservices/v1/RatePlan" id="10400">
  <name>testPlan3</name>
  <defaultPlan>false</defaultPlan>
</ratePlan>
Response body
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ratePlan xmlns="http://www.cloudcruiser.com/webservices/v1/RatePlan" id="10400">
<name>testPlan3</name>
<defaultPlan>false</defaultPlan>
</ratePlan>
Java
RatePlan updatedPlan = ratePlanServiceProxy.updateRatePlan(10400);
Last modified

Tags

This page has no custom tags.

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP