Update a constraint

patch

https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/constraint/{id}

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : Discriminator: @type
Type: object
Discriminator: @type

Discriminator Values

Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : Discriminator: @type
Type: object
Discriminator: @type

Discriminator Values

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 : Error
Type: object
Title: Error
Show Source

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 update a constraint by submitting a PATCH request on the REST resource using cURL.

cURL Command

curl -u username:password -X PATCH https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/constraint/Cons_Resell_987 -H 'Content-Type: application/json' -D @update_constraint.json | json_pp

Example of Request Body

The following shows the contents of the request body in JSON format.

{
      "version": "4.0"
    }

Example of Response Body

The following shows the contents of the response body in JSON format.

{
    "@type": "PricingConstraintVariantOracle",
    "@baseType": "Constraint",
    "constraintType": "PRICE",
    "constraintRule": [
        {
            "productOfferingPrice": [
                {
                    "id": "POPUsage001",
                    "name": "POPUsage001",
                    "version": "1.0",
                    "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/productOfferingPrice/POPUsage001",
                    "@referredType": "ProductOfferingPriceOracle"
                }
            ],
            "validFor": {
                "startDateTime": "2017-04-19T16:42:23.0Z"
            },
            "valueRelationship": [
                {
                    "value": "Platinum"
                }
            ],
            "priceTag": "PriceTag01",
            "priority": 1
        },
        {
            "productOfferingPrice": [
                {
                    "id": "POPUsage002",
                    "name": "POPUsage002",
                    "version": "1.0",
                    "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/productOfferingPrice/POPUsage002",
                    "@referredType": "ProductOfferingPriceOracle"
                }
            ],
            "validFor": {
                "startDateTime": "2017-04-19T16:42:23.0Z"
            },
            "valueRelationship": [
                {
                    "value": "Gold"
                }
            ],
            "priceTag": "PriceTag02",
            "priority": 2
        },
        {
            "productOfferingPrice": [
                {
                    "id": "POPUsage003",
                    "name": "POPUsage003",
                    "version": "1.0",
                    "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/productOfferingPrice/POPUsage003",
                    "@referredType": "ProductOfferingPriceOracle"
                }
            ],
            "validFor": {
                "startDateTime": "2017-04-19T16:42:23.0Z"
            },
            "valueRelationship": [
                {
                    "value": "Silver"
                }
            ],
            "priceTag": "PriceTag03",
            "priority": 3
        }
    ],
    "customerProfileSpecification": {
        "@referredType": "CustomerProfileSpecificationOracle",
        "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customerProfileSpecification/TestBRMCustomerProf001",
        "name": "TestBRMCustomerProf001",
        "id": "TestBRMCustomerProf001"
    },
    "usageSpecification": {
        "@referredType": "UsageSpecificationOracle",
        "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/usageManagement/v2/usageSpecification/UsageSpecTelcoGSM001",
        "name": "SG_5GUsageSpec",
        "id": "UsageSpecTelcoGSM001"
    },
    "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/constraint/CustTypeBasedConstraint001ab",
    "lastUpdate": "2020-12-04T07:22:12.000Z",
    "lastUpdatedBy": "booth",
    "createdBy": "booth",
    "created": "2020-12-04T07:22:12.000Z",
    "project": {
        "id": "ExtensionProject",
        "name": "Extension Project"
    },
    "description": "Description of CustTypeBasedConstraint0012",
    "version": "4.0",
    "name": "Re-seller constraint",
    "id": "Cons_Resell_987",
	"lifecycleStatus": "In design"
}
Back to Top