*/
public void updateSubscription(JsonJavaObject subscriptionObject) throws BssException {
try {
String subscriptionId = getSubscriptionId(subscriptionObject);
String serviceUrl = BssUrls.API_RESOURCE_SUBSCRIPTION_SUBSCRIPTIONID.format(this, new NamedUrlPart("subscriptionId", subscriptionId));
Response response = updateData(serviceUrl, null, JsonHeader, subscriptionObject, null);
// expect a 204
int statusCode = response.getResponse().getStatusLine().getStatusCode();
if (statusCode != 204) {
throw new BssException(response, "Error updating subscription {0} causd by {1}", subscriptionObject, statusCode);
}
} catch (Exception e) {
throw new BssException(e, "Error updating subscription {0} caused by {1}", subscriptionObject, e.getMessage());