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
- application/xml
- application/json
The updates to make to the account profile.
Root Schema : Discriminator: @class
Type:
Show Source
object
-
accountObj: object
ResourceRef
-
creationDate: string
(date-time)
The date and time the profile was created.
-
effectiveDate: string
(date-time)
The date and time the profile is effective from.
-
extension: object
extension
The extended attributes.
-
id: object
ResourceRef
-
multiValued: boolean
Whether the profile has multiple values (true) or not (false).
-
name: string
The name of the profile.
-
parentName: string
The name of the parent profile.
-
selected: boolean
Whether the profile is selected (true) or not (false).
-
serviceObj: object
ResourceRef
Nested Schema : ResourceRef
Type:
Show Source
object
-
id(required): string
The ID.
-
uri: string
The Uniform Resource Identifier (URI) associated with the resource.
Nested Schema : extension
Type:
object
The extended attributes.
The updates to make to the account profile.
Root Schema : Discriminator: @class
Type:
Show Source
object
-
accountObj: object
ResourceRef
-
creationDate: string
(date-time)
The date and time the profile was created.
-
effectiveDate: string
(date-time)
The date and time the profile is effective from.
-
extension: object
extension
The extended attributes.
-
id: object
ResourceRef
-
multiValued: boolean
Whether the profile has multiple values (true) or not (false).
-
name: string
The name of the profile.
-
parentName: string
The name of the parent profile.
-
selected: boolean
Whether the profile is selected (true) or not (false).
-
serviceObj: object
ResourceRef
Nested Schema : ResourceRef
Type:
Show Source
object
-
id(required): string
The ID.
-
uri: string
The Uniform Resource Identifier (URI) associated with the resource.
Nested Schema : extension
Type:
object
The extended attributes.
Response
200 Response
The profile was updated successfully.
500 Response
An internal server error occurred.
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.