Update a Profile

put

/bcws/webresources/v1.0/profiles

Updates the specified profile.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/xml ()
Root Schema : Discriminator: @class
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Request Body - application/json ()
Root Schema : Discriminator: @class
Type: object
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Back to Top

Response

200 Response

The profile was updated successfully.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to update a profile 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/profiles' -H 'content-type: application/json' -d @updateProfile.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.
  • updateProfile.json is the JSON file that specifies the profile details to update.

Example of Request Body

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

{
    "@class": "com.oracle.communications.brm.cc.model.ProfileServExtrating",
    "id": {
        "id": "0.0.0.1+-profile-serv_extrating+233232",
        "uri": null
    },
    "accountObj": {
        "id": "0.0.0.1+-account+228862",
        "uri": null
    },
    "serviceObj": {
        "id": "0.0.0.1+-service-ip+228481",
        "uri": null
    },
    "name": "HOME_REGION",
    "selected": false,   
    "dataArray": [
        {
            "name": "1",
            "validTo": "1610455414000",
            "validFrom": "1609850614000",
            "value": "1234"
        },
        {
          "name": "2",
          "validTo": "1610455414000",
          "validFrom": "1609850614000",
          "value": "123456"
        }
    ],
    "extrating": {
        "label": "Official",
        "referenceCount": 1,
        "status": 3
    }
}

Example of Response Body

If successful, the response code 200 is returned with no response body.

Back to Top