Update a Sharing Group

put

/bcws/webresources/v1.0/sharing/{id}

Updates the specified charge sharing group or discount sharing group or product sharing group.

Both the id parameter and type query parameter are required.

Request

Path Parameters
Query Parameters
  • The type of sharing group: charge, discount, product, or profile.

    This query parameter is required.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : ownership
Type: array
The list of owners for the sharing group.
Show Source
Nested Schema : Ownership
Type: object
The list of owners for the sharing group.
Show Source
Request Body - application/xml ()
Root Schema : schema
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : ownership
Type: array
The list of owners for the sharing group.
Show Source
Nested Schema : Ownership
Type: object
The list of owners for the sharing group.
Show Source
Back to Top

Response

201 Response

The sharing group was updated successfully.

400 Response

The request isn't valid.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to update a product sharing group by submitting a PUT request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X PUT http://hostname:port/bcws/webresources/version/sharing/0.0.0.1+-group-sharing-products+221231?type=product -H 'content-type: application/json' -d @updateSharingGroup.json

where:

  • hostname is the URL for the Billing Care REST server.
  • port is the port for the Billing Care REST server.
  • version is the version of the API you're using, such as v1.0.
  • updateSharingGroup.json is the JSON file that specifies the update to make.

Example of Request Body

This shows an example of the contents of the updateSharingGroup.json file sent as the request body.

{
   "groupName": "vpn-sharing-group-update",
   "ownership": [
      {
         "sharingRef": {
            "id": "0.0.0.1+-product+48642",
            "uri": null
         },
         "offeringRef": {
            "id": "0.0.0.1+-purchased_product+154290",
            "uri": null
         },
         "index": -1,
         "markAsDelete":false
      }
   ]
}

Example of Response Body

If successful, the response returns code 200 set to true with no response body.

Back to Top