Create a Profile

post

/bcws/webresources/v1.0/profiles

Creates 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

Supported Media Types

201 Response

The profile was created successfully.
Body ()
Root Schema : resource
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : ResourceRef
Type: object
Show Source

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to create an account profile by submitting a POST request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X POST 'http://hostname:port/bcws/webresources/version/profiles' -H 'content-type: application/json' -d @createProfile.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.
  • createProfile.json is the JSON file that specifies the details of the profile.

Example of Request Body

This example shows the contents of the createProfile.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+65205",
        "uri": null
    },
    "serviceObj": {
        "id": "0.0.0.1+-service-ip+63861",
        "uri": null
    },
    "name": "HOME_REGION",
    "selected": false,
    "dataArray": [
        {
            "name": "Validity Range 1",
            "validTo": "1610455414000",
            "validFrom": "1609850614000",
            "value": "1234"
        },
        {
            "name": "Validity Range 2",
            "validTo": "1610455414000",
            "validFrom": "1609850614000",
            "value": "123456"
        }
    ],
    "extrating": {
        "label": "Official",
        "referenceCount": 1,
        "status": 3
    }
}

Example of Response Body

This example shows the contents of the response body in JSON format.

{
    "extension": null,
    "reference": { 
        "id": "0.0.0.1+-profile-serv_extrating+217925",
        "uri": "http://hostname:port/bcws/webresources/v1.0/profiles/0.0.0.1+-profile-serv_extrating+217925"
    }
}
Back to Top