Create or update an array of policy rules

put

https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/policyRules

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: array
Minimum Number of Items: 1
Maximum Number of Items: 50
Show Source
Nested Schema : PolicyRuleOracle
Title: PolicyRuleOracle
Match All
Show Source
  • PolicyRule
    Title: PolicyRule
    Discriminator: { "propertyName":"@type", "mapping":{ "PolicyRule":"#/components/schemas/PolicyRule", "PolicyRuleOracle":"#/components/schemas/PolicyRuleOracle" } }
    The policy resource represents a policy/rule applied to an entity or entity spec.
  • type
Nested Schema : PolicyRule
Type: object
Title: PolicyRule
Discriminator: @type

Discriminator Values

The policy resource represents a policy/rule applied to an entity or entity spec.
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : customAnalyzerRule
Type: array
Show Source
Nested Schema : CustomerProfileSpecificationRef
Type: object
Title: CustomerProfileSpecificationRef
Customer Profile specification reference.
Show Source
Nested Schema : CustomProfileSpecRefOracle
Type: object
Title: CustomProfileSpecRefOracle
Custom Profile specification reference.
Show Source
Nested Schema : PlaSpecificationRef
Type: object
Title: PlaSpecificationRef
A pricing logic algorithm specification reference. A PricingLogicAlgorithmSpec is a detailed description of a tangible or intangible object made available externally in the form of a PricingLogicAlgorithm to customers or other parties playing a party role.
Show Source
Nested Schema : ProductSpecificationRef
Type: object
Title: ProductSpecificationRef
Product specification reference: A ProductSpecification is a detailed description of a tangible or intangible object made available externally in the form of a ProductOffering to customers or other parties playing a party role.
Show Source
Nested Schema : ProjectRef
Type: object
Title: ProjectRef
Project Reference
Show Source
Nested Schema : ServiceSpecificationRefOracle
Title: ServiceSpecificationRefOracle
Match All
Show Source
  • ServiceSpecificationRef
    Title: ServiceSpecificationRef
    Discriminator: { "propertyName":"@type", "mapping":{ "ServiceSpecificationRef":"#/components/schemas/ServiceSpecificationRef", "ServiceSpecificationRefOracle":"#/components/schemas/ServiceSpecificationRefOracle" } }
    Service specification reference: ServiceSpecification(s) required to realize a ProductSpecification.
  • ServiceSpecificationRefOracle-allOf[1]
Nested Schema : specCharUse
Type: array
Show Source
Nested Schema : UsageSpecificationRefOracle
Title: UsageSpecificationRefOracle
Match All
Show Source
  • UsageSpecificationRef
    Title: UsageSpecificationRef
    Discriminator: { "propertyName":"@type", "mapping":{ "UsageSpecificationRef":"#/components/schemas/UsageSpecificationRef", "UsageSpecificationRefOracle":"#/components/schemas/UsageSpecificationRefOracle" } }
    Usage specification reference: A ProductSpecification is a detailed description of a tangible or intangible object made available externally in the form of a ProductOffering to customers or other parties playing a party role.
  • UsageSpecificationRefOracle-allOf[1]
Nested Schema : TargetProductSchema
Type: object
Title: TargetProductSchema
The reference object to the schema and type of target product which is described by product specification
Show Source
Nested Schema : ServiceSpecificationRef
Type: object
Title: ServiceSpecificationRef
Discriminator: @type

Discriminator Values

Service specification reference: ServiceSpecification(s) required to realize a ProductSpecification.
Show Source
Nested Schema : ServiceSpecificationRefOracle-allOf[1]
Type: object
Show Source
Nested Schema : SpecCharUseOracle
Type: object
Title: SpecCharUseOracle
Characteristic used to define Constraints
Show Source
Nested Schema : UsageSpecificationRef
Type: object
Title: UsageSpecificationRef
Discriminator: @type

Discriminator Values

Usage specification reference: A ProductSpecification is a detailed description of a tangible or intangible object made available externally in the form of a ProductOffering to customers or other parties playing a party role.
Show Source
Nested Schema : UsageSpecificationRefOracle-allOf[1]
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Your request is successful and the resources have been created or updated.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : PolicyRuleOracle
Title: PolicyRuleOracle
Match All
Show Source
  • PolicyRule
    Title: PolicyRule
    Discriminator: { "propertyName":"@type", "mapping":{ "PolicyRule":"#/components/schemas/PolicyRule", "PolicyRuleOracle":"#/components/schemas/PolicyRuleOracle" } }
    The policy resource represents a policy/rule applied to an entity or entity spec.
  • type
Nested Schema : PolicyRule
Type: object
Title: PolicyRule
Discriminator: @type

Discriminator Values

The policy resource represents a policy/rule applied to an entity or entity spec.
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : customAnalyzerRule
Type: array
Show Source
Nested Schema : CustomerProfileSpecificationRef
Type: object
Title: CustomerProfileSpecificationRef
Customer Profile specification reference.
Show Source
Nested Schema : CustomProfileSpecRefOracle
Type: object
Title: CustomProfileSpecRefOracle
Custom Profile specification reference.
Show Source
Nested Schema : PlaSpecificationRef
Type: object
Title: PlaSpecificationRef
A pricing logic algorithm specification reference. A PricingLogicAlgorithmSpec is a detailed description of a tangible or intangible object made available externally in the form of a PricingLogicAlgorithm to customers or other parties playing a party role.
Show Source
Nested Schema : ProductSpecificationRef
Type: object
Title: ProductSpecificationRef
Product specification reference: A ProductSpecification is a detailed description of a tangible or intangible object made available externally in the form of a ProductOffering to customers or other parties playing a party role.
Show Source
Nested Schema : ProjectRef
Type: object
Title: ProjectRef
Project Reference
Show Source
Nested Schema : ServiceSpecificationRefOracle
Title: ServiceSpecificationRefOracle
Match All
Show Source
  • ServiceSpecificationRef
    Title: ServiceSpecificationRef
    Discriminator: { "propertyName":"@type", "mapping":{ "ServiceSpecificationRef":"#/components/schemas/ServiceSpecificationRef", "ServiceSpecificationRefOracle":"#/components/schemas/ServiceSpecificationRefOracle" } }
    Service specification reference: ServiceSpecification(s) required to realize a ProductSpecification.
  • ServiceSpecificationRefOracle-allOf[1]
Nested Schema : specCharUse
Type: array
Show Source
Nested Schema : UsageSpecificationRefOracle
Title: UsageSpecificationRefOracle
Match All
Show Source
  • UsageSpecificationRef
    Title: UsageSpecificationRef
    Discriminator: { "propertyName":"@type", "mapping":{ "UsageSpecificationRef":"#/components/schemas/UsageSpecificationRef", "UsageSpecificationRefOracle":"#/components/schemas/UsageSpecificationRefOracle" } }
    Usage specification reference: A ProductSpecification is a detailed description of a tangible or intangible object made available externally in the form of a ProductOffering to customers or other parties playing a party role.
  • UsageSpecificationRefOracle-allOf[1]
Nested Schema : TargetProductSchema
Type: object
Title: TargetProductSchema
The reference object to the schema and type of target product which is described by product specification
Show Source
Nested Schema : ServiceSpecificationRef
Type: object
Title: ServiceSpecificationRef
Discriminator: @type

Discriminator Values

Service specification reference: ServiceSpecification(s) required to realize a ProductSpecification.
Show Source
Nested Schema : ServiceSpecificationRefOracle-allOf[1]
Type: object
Show Source
Nested Schema : SpecCharUseOracle
Type: object
Title: SpecCharUseOracle
Characteristic used to define Constraints
Show Source
Nested Schema : UsageSpecificationRef
Type: object
Title: UsageSpecificationRef
Discriminator: @type

Discriminator Values

Usage specification reference: A ProductSpecification is a detailed description of a tangible or intangible object made available externally in the form of a ProductOffering to customers or other parties playing a party role.
Show Source
Nested Schema : UsageSpecificationRefOracle-allOf[1]
Type: object
Show Source

400 Response

Your request couldn't be processed because it contains missing or invalid information, such as a validation error on an input field, a missing required value, and so forth.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : Discriminator: @type
Type: object
Discriminator: @type

Discriminator Values

401 Response

Your request isn't authorized. The authentication credentials included with this request are missing or invalid.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

404 Response

Your request includes a resource URI that doesn't exist.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

405 Response

HTTP action specified in the request (DELETE, GET, POST, PUT) isn't supported for this request URI.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

500 Response

The server encountered something unexpected that prevented it from completing the request.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source
Back to Top

Examples

The following example shows how to create or update an array of policy rules by submitting a PUT request on the REST resource using cURL.

cURL Command

curl -u username:password -X PUT \ 'https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/policyRules' -H 'Content-Type: application/json' -D @put_policyrules.json | json_pp

Example of Request Body

The following shows an example of the request body in JSON format.

[
    {
        "id": "PR-0557111111-231020251",
        "name": "Test PR-1",
        "@type": "PolicyRuleOracle",
        "project": {
            "id": "ProjectLBOFTNPKWTZ202X",
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/project/ProjectLBOFTNPKWTZ202X",
            "name": "AutoProjectLBOFTNPKWTZ202X",
            "version": "1.0",
            "@referredType": "ProjectOracle"
        },
        "version": "1.0",
        "specCharUse": [
            {
                "name": "Account Type",
                "relationshipType": "AGGREGATION",
                "operator": "EQUALS",
                "charSpecSeq": 0,
                "valueType": "STRING",
                "customProfileSpecification": {
                    "id": "Siebel-Default-DiscMat-CPS",
                    "name": "Siebel Default Discount Matrice CPS",
                    "version": "1.0",
                    "@referredType": "CustomProfileSpecificationOracle",
                    "@type": "CustomProfileSpecificationOracle"
                }
            }
        ],
        "policyActionRelationship": [
            {
                "id": "relX1ss",
                "priority": 1,
                "constraint": {
                    "id": "constrx1ss",
                    "conditionCombLogic": "ALL_OF",
                    "policyCondition": [
                        {
                            "id": "conx1ss",
                            "operator": "EQUALS",
                            "value": "Residential",
                            "statement": "Account Type"
                        }
                    ]
                },
                "policyAction": {
                    "id": "DF-2288701335-1729760653989",
                    "name": "DF-2288701335-1729760653989",
                    "@type": "ProductOfferingPriceRef",
                    "version": "1.0",
                    "actionValueType": "PRODUCT_OFFERING_PRICE"
                }
            }
        ],
        "customProfileSpecification": {
            "id": "Siebel-Default-DiscMat-CPS",
            "name": "Siebel Default Discount Matrice CPS",
            "version": "1.0",
            "@referredType": "CustomProfileSpecificationOracle",
            "@type": "CustomProfileSpecificationOracle"
        },
        "lifecycleStatus": "In design",
        "priority": 0
    },
    {
        "id": "PR-0557222222-231020252",
        "name": "Test PR-2",
        "@type": "PolicyRuleOracle",
        "project": {
            "id": "ProjectLBOFTNPKWTZ202X",
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/project/ProjectLBOFTNPKWTZ202X",
            "name": "AutoProjectLBOFTNPKWTZ202X",
            "version": "1.0",
            "@referredType": "ProjectOracle"
        },
        "version": "1.0",
        "specCharUse": [
            {
                "name": "Account Type",
                "relationshipType": "AGGREGATION",
                "operator": "EQUALS",
                "charSpecSeq": 0,
                "valueType": "STRING",
                "customProfileSpecification": {
                    "id": "Siebel-Default-DiscMat-CPS",
                    "name": "Siebel Default Discount Matrice CPS",
                    "version": "1.0",
                    "@referredType": "CustomProfileSpecificationOracle",
                    "@type": "CustomProfileSpecificationOracle"
                }
            }
        ],
        "policyActionRelationship": [
            {
                "id": "relX1ss",
                "priority": 1,
                "constraint": {
                    "id": "constrx1ss",
                    "conditionCombLogic": "ALL_OF",
                    "policyCondition": [
                        {
                            "id": "conx1ss",
                            "operator": "EQUALS",
                            "value": "Residential",
                            "statement": "Account Type"
                        }
                    ]
                },
                "policyAction": {
                    "id": "DF-2288701335-1729760653989",
                    "name": "DF-2288701335-1729760653989",
                    "@type": "ProductOfferingPriceRef",
                    "version": "1.0",
                    "actionValueType": "PRODUCT_OFFERING_PRICE"
                }
            }
        ],
        "customProfileSpecification": {
            "id": "Siebel-Default-DiscMat-CPS",
            "name": "Siebel Default Discount Matrice CPS",
            "version": "1.0",
            "@referredType": "CustomProfileSpecificationOracle",
            "@type": "CustomProfileSpecificationOracle"
        },
        "lifecycleStatus": "In design",
        "priority": 0
    }
]

Example of Response Body

The following shows an example of the response body in JSON format.

[
    {
        "lastUpdate": "2025-10-23T12:30:48.337Z",
        "lastUpdatedBy": "booth",
        "created": "2025-10-23T12:30:48.000Z",
        "createdBy": "booth",
        "id": "PR-0557111111-231020251",
        "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/policyRules/PR-0557111111-231020251",
        "name": "Test PR-1",
        "@type": "PolicyRuleOracle",
        "project": {
            "id": "ProjectLBOFTNPKWTZ202X",
            "name": "AutoProjectLBOFTNPKWTZ202X",
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/project/ProjectLBOFTNPKWTZ202X",
            "version": "1.0",
            "@referredType": "ProjectOracle"
        },
        "version": "1.0",
        "specCharUse": [
            {
                "name": "Account Type",
                "relationshipType": "AGGREGATION",
                "operator": "EQUALS",
                "charSpecSeq": 0,
                "valueType": "STRING",
                "customProfileSpecification": {
                    "id": "Siebel-Default-DiscMat-CPS",
                    "name": "Siebel Default Discount Matrice CPS",
                    "version": "1.0",
                    "@referredType": "CustomProfileSpecificationOracle",
                    "@type": "CustomProfileSpecificationOracle"
                }
            }
        ],
        "policyActionRelationship": [
            {
                "id": "relX1ss",
                "priority": 1,
                "constraint": {
                    "id": "constrx1ss",
                    "conditionCombLogic": "ALL_OF",
                    "policyCondition": [
                        {
                            "id": "conx1ss",
                            "operator": "EQUALS",
                            "value": "Residential",
                            "statement": "Account Type"
                        }
                    ]
                },
                "policyAction": {
                    "id": "DF-2288701335-1729760653989",
                    "name": "DF-2288701335-1729760653989",
                    "@type": "ProductOfferingPriceRef",
                    "version": "1.0",
                    "actionValueType": "PRODUCT_OFFERING_PRICE"
                }
            }
        ],
        "customProfileSpecification": {
            "id": "Siebel-Default-DiscMat-CPS",
            "name": "Siebel Default Discount Matrice CPS",
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customProfileSpecification/Siebel-Default-DiscMat-CPS",
            "version": "1.0",
            "@referredType": "CustomProfileSpecificationOracle",
            "@type": "CustomProfileSpecificationOracle"
        },
        "lifecycleStatus": "In design",
        "priority": 0
    },
    {
        "lastUpdate": "2025-10-23T12:30:48.395Z",
        "lastUpdatedBy": "booth",
        "created": "2025-10-23T12:30:48.104Z",
        "createdBy": "booth",
        "id": "PR-0557222222-231020252",
        "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/policyRules/PR-0557222222-231020252",
        "name": "Test PR-2",
        "@type": "PolicyRuleOracle",
        "project": {
            "id": "ProjectLBOFTNPKWTZ202X",
            "name": "AutoProjectLBOFTNPKWTZ202X",
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/project/ProjectLBOFTNPKWTZ202X",
            "version": "1.0",
            "@referredType": "ProjectOracle"
        },
        "version": "1.0",
        "specCharUse": [
            {
                "name": "Account Type",
                "relationshipType": "AGGREGATION",
                "operator": "EQUALS",
                "charSpecSeq": 0,
                "valueType": "STRING",
                "customProfileSpecification": {
                    "id": "Siebel-Default-DiscMat-CPS",
                    "name": "Siebel Default Discount Matrice CPS",
                    "version": "1.0",
                    "@referredType": "CustomProfileSpecificationOracle",
                    "@type": "CustomProfileSpecificationOracle"
                }
            }
        ],
        "policyActionRelationship": [
            {
                "id": "relX1ss",
                "priority": 1,
                "constraint": {
                    "id": "constrx1ss",
                    "conditionCombLogic": "ALL_OF",
                    "policyCondition": [
                        {
                            "id": "conx1ss",
                            "operator": "EQUALS",
                            "value": "Residential",
                            "statement": "Account Type"
                        }
                    ]
                },
                "policyAction": {
                    "id": "DF-2288701335-1729760653989",
                    "name": "DF-2288701335-1729760653989",
                    "@type": "ProductOfferingPriceRef",
                    "version": "1.0",
                    "actionValueType": "PRODUCT_OFFERING_PRICE"
                }
            }
        ],
        "customProfileSpecification": {
            "id": "Siebel-Default-DiscMat-CPS",
            "name": "Siebel Default Discount Matrice CPS",
            "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customProfileSpecification/Siebel-Default-DiscMat-CPS",
            "version": "1.0",
            "@referredType": "CustomProfileSpecificationOracle",
            "@type": "CustomProfileSpecificationOracle"
        },
        "lifecycleStatus": "In design",
        "priority": 0
    }
]
Back to Top