- Create/Update a policy. **Note!** Calls to this method will also trigger "*Keep Alive*" for a service which has a
- "*Keep Alive Interval*" registered.
-
- **URL path:**
- /policy?id=<policy-id>&ric=<name-of-ric>&service=<name-of-service>&type=<name-of-policy-type>
-
- **Parameters:**
-
- id: (*Required*)
- The ID of the policy instance.
-
- ric: (*Required*)
- The name of the Near |nbh| RT |nbsp| RIC where the policy will be created.
-
- service: (*Required*)
- The name of the service creating the policy.
-
- type: (*Optional*)
- The name of the policy type.
-
- **Body:** (*Required*)
- A JSON object containing the data specified by the type.
-
- **Responses:**
-
- 200:
- Policy updated.
-
- 201:
- Policy created.
-
- 404:
- Near |nbh| RT |nbsp| RIC or policy type is not found.
-
- 423:
- Near |nbh| RT |nbsp| RIC is locked.
-
- **Examples:**
-
- Call: ::
-
- curl -X PUT "http://localhost:8081/policy?id=Policy%201&ric=ric1&service=Service%201&type=STD_PolicyModelUnconstrained_0.2.0"
- -H "Content-Type: application/json"
- -d "{
- \"scope\": {
- \"ueId\": \"UE 1\",
- \"cellId\": \"Cell 1\"
- },
- \"qosObjectives\": {
- \"gfbr\": 319.5,
- \"mfbr\": 782.75,
- \"priorityLevel\": 268.5,
- \"pdb\": 44.0
- },
- \"qoeObjectives\": {
- \"qoeScore\": 329.0,
- \"initialBuffering\": 27.75,
- \"reBuffFreq\": 539.0,
- \"stallRatio\": 343.0
- },
- \"resources\": []
- }"
+Create/Update a policy. **Note!** Calls to this method will also trigger "*Keep Alive*" for a service which has a
+"*Keep Alive Interval*" registered.
+
+**URL path:**
+ /policy?id=<policy-id>&ric=<name-of-ric>&service=<name-of-service>&type=<name-of-policy-type>
+
+**Parameters:**
+ id: (*Required*)
+ The ID of the policy instance.
+ ric: (*Required*)
+ The name of the Near |nbh| RT |nbsp| RIC where the policy will be created.
+ service: (*Required*)
+ The name of the service creating the policy.
+ type: (*Optional*)
+ The name of the policy type.
+
+**Body:** (*Required*)
+ A JSON object containing the data specified by the type.
+
+**Responses:**
+ 200:
+ Policy updated.
+ 201:
+ Policy created.
+ 404:
+ Near |nbh| RT |nbsp| RIC or policy type is not found.
+ 423:
+ Near |nbh| RT |nbsp| RIC is not operational.
+
+**Examples:**
+ **Call**: ::
+
+ curl -X PUT "http://localhost:8081/policy?id=Policy%201&ric=ric1&service=Service%201&type=STD_PolicyModelUnconstrained_0.2.0"
+ -H "Content-Type: application/json"
+ -d '{
+ "scope": {
+ "ueId": "UE 1",
+ "cellId": "Cell 1"
+ },
+ "qosObjectives": {
+ "gfbr": 319.5,
+ "mfbr": 782.75,
+ "priorityLevel": 268.5,
+ "pdb": 44.0
+ },
+ "qoeObjectives": {
+ "qoeScore": 329.0,
+ "initialBuffering": 27.75,
+ "reBuffFreq": 539.0,
+ "stallRatio": 343.0
+ },
+ "resources": []
+ }'