Remove Members from a Group

put

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

Removes one or more members from the specified sharing group.

Request

Path Parameters
Query Parameters
  • The type of sharing group: charge, discount, product, or profile.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : membership
Type: array
The list of sharing groups that the member belongs to.
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : Membership
Type: object
The list of sharing groups that the member belongs to.
Show Source
Request Body - application/xml ()
Root Schema : schema
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : membership
Type: array
The list of sharing groups that the member belongs to.
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : Membership
Type: object
The list of sharing groups that the member belongs to.
Show Source
Back to Top

Response

204 Response

The members were deleted successfully.

400 Response

The request isn't valid.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to remove a member from 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/account/0.0.0.1+-group-sharing-products+473438?type=product -H 'content-type: application/json' -d @removeMemberFromSharingGroup.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.
  • removeMemberFromSharingGroup.json is the JSON file that specifies the update to make.

Example of Request Body

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

{
   "orderedBalGroupRef": null,
   "membership": [
      {
         "serviceRef": null,
         "groupRef": null,
         "accountRef": {
            "id": "0.0.0.2+-account+323490"
         }
      }
   ]
}

Example of Response Body

If successful, the response returns code 204 with no response body.

Back to Top