Updates an existing rate plan.
URL syntax
http://<ccServerURL
>/rest/v1/ratePlans/ratePlan/<id
>
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);