Update Shared Services for a Member

put

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

Updates the shared services for a member in a sharing group.

Request

Path Parameters
Query Parameters
  • The type of sharing group to which the member belongs: charge, discount, product, or profile.
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 : members
Type: array
The list of members in the sharing group.
Show Source
Nested Schema : Members
Type: object
The list of members in 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 : members
Type: array
The list of members in the sharing group.
Show Source
Nested Schema : Members
Type: object
The list of members in the sharing group.
Show Source
Back to Top

Response

200 Response

The shared services were updated successfully.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to add a new service to be shared in 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/members/0.0.0.2+-group-sharing-products+473438?type=product -H 'content-type: application/json' -d @updateSharedServices.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.
  • updateSharedServices.json is the JSON file that specifies the update to make.

Example of Request Body

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

{
   "members": [
      {
         "serviceRef": {
            "id": "0.0.0.2+-service-ip+321762"
         },
         "markAsDelete": false,
         "index": -1
      }
   ],
   "accountRef": {
      "id": "0.0.0.2+-account+323490"
   }
}

Example of Response Body

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

Back to Top