Update Membership in Sharing Group
/bcws/webresources/v1.0/sharing/members/priority
Request
-
type(required): string
The type of sharing group: charge, discount, product, or profile.
- application/xml
- application/json
object
-
extension: object
extension
The extended attributes.
-
membership(required): array
membership
The list of sharing groups that the member belongs to.
-
orderedBalGroupRef: object
ResourceRef
object
array
-
Array of:
object Membership
The list of sharing groups that the member belongs to.
object
-
id(required): string
The ID.
-
uri: string
The Uniform Resource Identifier (URI) associated with the resource.
object
object
-
extension: object
extension
The extended attributes.
-
membership(required): array
membership
The list of sharing groups that the member belongs to.
-
orderedBalGroupRef: object
ResourceRef
object
array
-
Array of:
object Membership
The list of sharing groups that the member belongs to.
object
-
id(required): string
The ID.
-
uri: string
The Uniform Resource Identifier (URI) associated with the resource.
object
Response
201 Response
500 Response
Examples
Example Adding Members to Multiple Sharing Groups
This example shows how to add members to multiple sharing groups 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/v1.0/sharing/members/priority?type=charge -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 example shows the contents of the updateSharingGroup.json file sent as the request body.
[
{
"membership": [
{
"serviceRef": {
"id": "0.0.0.1+-service-email+265928",
"uri": null
},
"accountRef": {
"id": "0.0.0.1+-account+181438",
"uri":null
},
"groupRef": {
"id": "0.0.0.1+-group-sharing-charges+271857",
"uri": null
}
},
{
"serviceRef": {
"id": "0.0.0.1+-service-email+265928",
"uri":null
},
"accountRef": {
"id": "0.0.0.1+-account+181438",
"uri": null
},
"groupRef": {
"id": "0.0.0.1+-group-sharing-charges+275842",
"uri": null
}
}
],
"orderedBalGroupRef": {
"id": "0.0.0.1+-ordered_balgrp+276610",
"uri": null
}
}
]
Example of Response Body
If successful, the response code 201 is returned with no response body.
Example Modifying Membership Priority in Product Sharing Groups
This example shows how to modify membership priority in product sharing groups by submitting a PUT request on the REST resource using cURL. For more information about cURL, see "Use cURL".
Note:
The sharing groups and ordered balance groups can belong to multiple schemas.
cURL Command
curl -X PUT http://hostname:port/bcws/webresources/version/sharing/members/priority?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 example shows the contents of the updateSharingGroup.json file sent as the request body.
[
{
"orderedBalGroupRef": {
"id": "0.0.0.1+-ordered_balgrp+155130",
"uri": null
},
"membership": [
{
"groupRef": {
"id": "0.0.0.1+-group-sharing-products+155673",
"uri": null
}
},
{
"groupRef": {
"id": "0.0.0.2+-group-sharing-products+153467",
"uri": null
}
}
]
},
{
"orderedBalGroupRef": {
"id": "0.0.0.2+-ordered_balgrp+155156",
"uri": null
},
"membership": [
{
"groupRef": {
"id": "0.0.0.1+-group-sharing-products+155667",
"uri": null
}
},
{
"groupRef": {
"id": "0.0.0.2+-group-sharing-products+153489",
"uri": null
}
}
]
}
]
Example of Response Body
If successful, the response code 201 is returned with no response body.