Create or update an array of constraint
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/constraints
Request
There are no request parameters for this operation.
- application/json
array
1
50
-
Array of:
PricingConstraintVariantOracle
Title:
PricingConstraintVariantOracle
PricingConstraintVariantOracle
-
object
Constraint
Title:
Constraint
Discriminator:{ "propertyName":"@type", "mapping":{ "Constraint":"#/components/schemas/Constraint", "PricingConstraintVariantOracle":"#/components/schemas/PricingConstraintVariantOracle", "PricelistConstraintOracle":"#/components/schemas/PricelistConstraintOracle" } }
The Constraint resource represents a policy/rule applied to an entity or entity spec. -
object
PricingConstraintVariantOracle-allOf[1]
object
Constraint
Discriminator Values
-
@baseType: string
Immediate base (class) type of the Constraint
-
@schemaLocation: string
A link to the schema describing this Constraintg
-
@type: string
Class type of the Constraint
-
description: string
Description of the Constraint
-
href: string
Hyperlink reference to the target constraint
-
id: string
Maximum Length:
30
reference id to the target constraint -
lastUpdate: string
(date-time)
Date and time of the last update
-
lifecycleStatus: string
Used to indicate the current lifecycle status
-
name(required): string
Name given to the constraint
-
validFor: object
TimePeriod
Title:
TimePeriod
The period for which the productOffering is valid -
version: string
constraint version
object
-
applicationName: string
name of the external application
-
constraintRule: array
constraintRule
-
constraintType: string
Price type of the Constraint
-
created: string
(date-time)
Date and time of creation
-
createdBy: string
name of the person who created
-
customerProfileSpecification: object
CustomerProfileSpecificationRef
Title:
CustomerProfileSpecificationRef
Customer Profile specification reference. -
customProfileSpecification: object
CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference. -
evaluateAll: boolean
indicates if all rule needs to be applied
-
externalId: string
id of the external application
-
lastUpdatedBy: string
name of the person who updated
-
plaSpecification: object
PlaSpecificationRef
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. -
productSpecification: object
ProductSpecificationRef
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. -
project: object
ProjectRef
Title:
ProjectRef
Project Reference -
serviceSpecification:
ServiceSpecificationRefOracle
Title:
ServiceSpecificationRefOracle
-
specCharUse: array
specCharUse
-
standardZone: object
CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference. -
usageSpecification:
UsageSpecificationRefOracle
Title:
UsageSpecificationRefOracle
-
valueMap: object
CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference. -
versionState: number
Version state of the Price Constraint
array
-
Array of:
object ConstraintRuleOracle
Title:
ConstraintRuleOracle
Rules applied over a characteristic
object
CustomerProfileSpecificationRef
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
(Class) type of the referred Usage Specification.
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of ServiceSpecificationRef.
-
href: string
Reference of the usage specification.
-
id(required): string
Unique identifier of the usage specification.
-
name: string
Name of the usage specification.
-
version: string
Version of the usage specification.
-
versionState: number
To hold the version state for the reference
object
CustomProfileSpecRefOracle
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
(Class) type of the referred custom Specification.
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of customSpecificationRef.
-
href: string
Reference of the custom specification.
-
id(required): string
Unique identifier of the custom specification.
-
name: string
Name of the custom specification.
-
version: string
Version of the custom specification.
-
versionState: number
To hold the version state for the reference
object
PlaSpecificationRef
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
class type of referred pricing logic algorithm Specification.
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of PLASpecification.
-
href: string
Reference of the pricing logic algorithm specification.
-
id(required): string
Unique identifier of the pricing logic algorithm specification.
-
name: string
Name of the pricing logic algorithm specification.
-
version: string
Version of the pricing logic algorithm specification.
-
versionState: number
To hold the version state for the reference
object
ProductSpecificationRef
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
class type of referred Product Specification
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of ProductSpecificationRef.
-
href: string
Reference of the product specification
-
id(required): string
Unique identifier of the product specification
-
name: string
Name of the product specification
-
targetProductSchema: object
TargetProductSchema
Title:
TargetProductSchema
The reference object to the schema and type of target product which is described by product specification -
version: string
Version of the product specification
-
versionState: number
To hold the version state for the reference
object
ProjectRef
-
href: string
Unique reference of the project
-
id(required): string
Unique identifier of the project
-
name: string
Name of the project
-
version: string
Version of the project
ServiceSpecificationRefOracle
-
object
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. -
object
ServiceSpecificationRefOracle-allOf[1]
array
-
Array of:
object SpecCharUseOracle
Title:
SpecCharUseOracle
Characteristic used to define Constraints
UsageSpecificationRefOracle
-
object
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. -
object
UsageSpecificationRefOracle-allOf[1]
object
ConstraintRuleOracle
-
impactCategory: string
Impact category for Constraint rule. Read only field.
-
priceTag: string
Price tag for Constraint rule
-
priority: number
Order of constraint
-
productOfferingPrice: array
productOfferingPrice
-
validFor: object
TimePeriodOracle
Title:
TimePeriodOracle
Validity period of the related party -
valueRelationship(required): array
valueRelationship
array
-
Array of:
object ProductOfferingPriceRef
Title:
ProductOfferingPriceRef
ProductPriceOffering reference. An amount, usually of money, that is asked for or allowed when a ProductOffering is bought, rented, or leased
object
TimePeriodOracle
-
endDateTime: string
(date-time)
An instant of time, ending at the TimePeriod.
-
startDateTime: string
(date-time)
An instant of time, starting at the TimePeriod
array
-
Array of:
object ValueRelationshipOracle
Title:
ValueRelationshipOracle
Represent the value of a characteristic forming the constraint rule
object
ProductOfferingPriceRef
-
@baseType: string
When sub-classing, this defines the super-class
-
@referredType: string
The actual type of the target instance when needed for disambiguation.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
href: string
Reference of the related entity.
-
id(required): string
Unique identifier of a related entity.
-
name: string
Name of the related entity.
-
refId: string
Unique identifier of the reference object.
-
refName: string
Name of the reference object.
-
versionState: number
To hold the version state of reference
object
ValueRelationshipOracle
-
unitOfMeasure: string
A length, surface, volume, dry measure, liquid measure, money, weight, time, and the like. In general, a determinate quantity or magnitude of the kind designated, taken as a standard of comparison for others of the same kind, in assigning to them numerical values, as 1 foot, 1 yard, 1 mile, 1 square foot.
-
value(required):
value
Value representing a Relationship attribute
object
array
object
TargetProductSchema
-
@schemaLocation(required): string
This field provides a link to the schema describing the target product
-
@type(required): string
class type of the target product
object
ServiceSpecificationRef
Discriminator Values
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
the class type of associated service specification
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of ServiceSpecificationRef.
-
href: string
Reference of the serviceSpecification
-
id(required): string
Unique identifier of the service specification
-
name: string
Name of the requiredServiceSpecification
-
targetServiceSchema: object
TargetServiceSchema
Title:
TargetServiceSchema
The reference object to the schema and type of target product which is described by product specification -
version: string
Service specification version
-
versionState: number
To hold the version state for the reference
object
-
role: string
Allowed Values:
[ "PRIMARY", "AUXILIARY" ]
Service specification role -
serviceCode: string
Code to service specification
object
SpecCharUseOracle
-
charSpecSeq : integer
Characteristic sequence
-
customerProfileSpecification: object
CustomerProfileSpecificationRef
Title:
CustomerProfileSpecificationRef
Customer Profile specification reference. -
customProfileSpecification: object
CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference. -
displayName: string
Display name of characteristic
-
name(required): string
Name of characteristic
-
operator: string
Allowed Values:
[ "EQUALS", "GT", "LT", "GTE", "LTE", "NOT_EQUALS", "IS_NULL", "IS_NOT_NULL", "CONTAINS", "MAPS_TO", "NOT_MAPS_TO", "MATCHES", "NOT_MATCHES" ]
The logic expression operator. -
plaSpecification: object
PlaSpecificationRef
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. -
productSpecification: object
ProductSpecificationRef
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. -
relationshipType(required): string
Allowed Values:
[ "AGGREGATION" ]
Relationship Type between characteristic Types -
serviceSpecification:
ServiceSpecificationRefOracle
Title:
ServiceSpecificationRefOracle
-
standardZone: object
CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference. -
usageSpecification:
UsageSpecificationRefOracle
Title:
UsageSpecificationRefOracle
-
valueType: string
ValueType
object
UsageSpecificationRef
Discriminator Values
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
(Class) type of the referred Usage Specification.
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of ServiceSpecificationRef.
-
href: string
Reference of the usage specification.
-
id(required): string
Unique identifier of the usage specification.
-
name: string
Name of the usage specification.
-
version: string
Version of the usage specification.
-
versionState: number
To hold the version state for the reference
object
-
usageCode: string
Code to usage specification
Response
- application/json
200 Response
array
-
Array of:
PricingConstraintVariantOracle
Title:
PricingConstraintVariantOracle
PricingConstraintVariantOracle
-
object
Constraint
Title:
Constraint
Discriminator:{ "propertyName":"@type", "mapping":{ "Constraint":"#/components/schemas/Constraint", "PricingConstraintVariantOracle":"#/components/schemas/PricingConstraintVariantOracle", "PricelistConstraintOracle":"#/components/schemas/PricelistConstraintOracle" } }
The Constraint resource represents a policy/rule applied to an entity or entity spec. -
object
PricingConstraintVariantOracle-allOf[1]
object
Constraint
Discriminator Values
-
@baseType: string
Immediate base (class) type of the Constraint
-
@schemaLocation: string
A link to the schema describing this Constraintg
-
@type: string
Class type of the Constraint
-
description: string
Description of the Constraint
-
href: string
Hyperlink reference to the target constraint
-
id: string
Maximum Length:
30
reference id to the target constraint -
lastUpdate: string
(date-time)
Date and time of the last update
-
lifecycleStatus: string
Used to indicate the current lifecycle status
-
name(required): string
Name given to the constraint
-
validFor: object
TimePeriod
Title:
TimePeriod
The period for which the productOffering is valid -
version: string
constraint version
object
-
applicationName: string
name of the external application
-
constraintRule: array
constraintRule
-
constraintType: string
Price type of the Constraint
-
created: string
(date-time)
Date and time of creation
-
createdBy: string
name of the person who created
-
customerProfileSpecification: object
CustomerProfileSpecificationRef
Title:
CustomerProfileSpecificationRef
Customer Profile specification reference. -
customProfileSpecification: object
CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference. -
evaluateAll: boolean
indicates if all rule needs to be applied
-
externalId: string
id of the external application
-
lastUpdatedBy: string
name of the person who updated
-
plaSpecification: object
PlaSpecificationRef
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. -
productSpecification: object
ProductSpecificationRef
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. -
project: object
ProjectRef
Title:
ProjectRef
Project Reference -
serviceSpecification:
ServiceSpecificationRefOracle
Title:
ServiceSpecificationRefOracle
-
specCharUse: array
specCharUse
-
standardZone: object
CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference. -
usageSpecification:
UsageSpecificationRefOracle
Title:
UsageSpecificationRefOracle
-
valueMap: object
CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference. -
versionState: number
Version state of the Price Constraint
array
-
Array of:
object ConstraintRuleOracle
Title:
ConstraintRuleOracle
Rules applied over a characteristic
object
CustomerProfileSpecificationRef
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
(Class) type of the referred Usage Specification.
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of ServiceSpecificationRef.
-
href: string
Reference of the usage specification.
-
id(required): string
Unique identifier of the usage specification.
-
name: string
Name of the usage specification.
-
version: string
Version of the usage specification.
-
versionState: number
To hold the version state for the reference
object
CustomProfileSpecRefOracle
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
(Class) type of the referred custom Specification.
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of customSpecificationRef.
-
href: string
Reference of the custom specification.
-
id(required): string
Unique identifier of the custom specification.
-
name: string
Name of the custom specification.
-
version: string
Version of the custom specification.
-
versionState: number
To hold the version state for the reference
object
PlaSpecificationRef
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
class type of referred pricing logic algorithm Specification.
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of PLASpecification.
-
href: string
Reference of the pricing logic algorithm specification.
-
id(required): string
Unique identifier of the pricing logic algorithm specification.
-
name: string
Name of the pricing logic algorithm specification.
-
version: string
Version of the pricing logic algorithm specification.
-
versionState: number
To hold the version state for the reference
object
ProductSpecificationRef
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
class type of referred Product Specification
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of ProductSpecificationRef.
-
href: string
Reference of the product specification
-
id(required): string
Unique identifier of the product specification
-
name: string
Name of the product specification
-
targetProductSchema: object
TargetProductSchema
Title:
TargetProductSchema
The reference object to the schema and type of target product which is described by product specification -
version: string
Version of the product specification
-
versionState: number
To hold the version state for the reference
object
ProjectRef
-
href: string
Unique reference of the project
-
id(required): string
Unique identifier of the project
-
name: string
Name of the project
-
version: string
Version of the project
ServiceSpecificationRefOracle
-
object
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. -
object
ServiceSpecificationRefOracle-allOf[1]
array
-
Array of:
object SpecCharUseOracle
Title:
SpecCharUseOracle
Characteristic used to define Constraints
UsageSpecificationRefOracle
-
object
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. -
object
UsageSpecificationRefOracle-allOf[1]
object
ConstraintRuleOracle
-
impactCategory: string
Impact category for Constraint rule. Read only field.
-
priceTag: string
Price tag for Constraint rule
-
priority: number
Order of constraint
-
productOfferingPrice: array
productOfferingPrice
-
validFor: object
TimePeriodOracle
Title:
TimePeriodOracle
Validity period of the related party -
valueRelationship(required): array
valueRelationship
array
-
Array of:
object ProductOfferingPriceRef
Title:
ProductOfferingPriceRef
ProductPriceOffering reference. An amount, usually of money, that is asked for or allowed when a ProductOffering is bought, rented, or leased
object
TimePeriodOracle
-
endDateTime: string
(date-time)
An instant of time, ending at the TimePeriod.
-
startDateTime: string
(date-time)
An instant of time, starting at the TimePeriod
array
-
Array of:
object ValueRelationshipOracle
Title:
ValueRelationshipOracle
Represent the value of a characteristic forming the constraint rule
object
ProductOfferingPriceRef
-
@baseType: string
When sub-classing, this defines the super-class
-
@referredType: string
The actual type of the target instance when needed for disambiguation.
-
@schemaLocation: string
(uri)
A URI to a JSON-Schema file that defines additional attributes and relationships
-
@type: string
When sub-classing, this defines the sub-class entity name
-
href: string
Reference of the related entity.
-
id(required): string
Unique identifier of a related entity.
-
name: string
Name of the related entity.
-
refId: string
Unique identifier of the reference object.
-
refName: string
Name of the reference object.
-
versionState: number
To hold the version state of reference
object
ValueRelationshipOracle
-
unitOfMeasure: string
A length, surface, volume, dry measure, liquid measure, money, weight, time, and the like. In general, a determinate quantity or magnitude of the kind designated, taken as a standard of comparison for others of the same kind, in assigning to them numerical values, as 1 foot, 1 yard, 1 mile, 1 square foot.
-
value(required):
value
Value representing a Relationship attribute
object
array
object
TargetProductSchema
-
@schemaLocation(required): string
This field provides a link to the schema describing the target product
-
@type(required): string
class type of the target product
object
ServiceSpecificationRef
Discriminator Values
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
the class type of associated service specification
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of ServiceSpecificationRef.
-
href: string
Reference of the serviceSpecification
-
id(required): string
Unique identifier of the service specification
-
name: string
Name of the requiredServiceSpecification
-
targetServiceSchema: object
TargetServiceSchema
Title:
TargetServiceSchema
The reference object to the schema and type of target product which is described by product specification -
version: string
Service specification version
-
versionState: number
To hold the version state for the reference
object
-
role: string
Allowed Values:
[ "PRIMARY", "AUXILIARY" ]
Service specification role -
serviceCode: string
Code to service specification
object
SpecCharUseOracle
-
charSpecSeq : integer
Characteristic sequence
-
customerProfileSpecification: object
CustomerProfileSpecificationRef
Title:
CustomerProfileSpecificationRef
Customer Profile specification reference. -
customProfileSpecification: object
CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference. -
displayName: string
Display name of characteristic
-
name(required): string
Name of characteristic
-
operator: string
Allowed Values:
[ "EQUALS", "GT", "LT", "GTE", "LTE", "NOT_EQUALS", "IS_NULL", "IS_NOT_NULL", "CONTAINS", "MAPS_TO", "NOT_MAPS_TO", "MATCHES", "NOT_MATCHES" ]
The logic expression operator. -
plaSpecification: object
PlaSpecificationRef
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. -
productSpecification: object
ProductSpecificationRef
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. -
relationshipType(required): string
Allowed Values:
[ "AGGREGATION" ]
Relationship Type between characteristic Types -
serviceSpecification:
ServiceSpecificationRefOracle
Title:
ServiceSpecificationRefOracle
-
standardZone: object
CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference. -
usageSpecification:
UsageSpecificationRefOracle
Title:
UsageSpecificationRefOracle
-
valueType: string
ValueType
object
UsageSpecificationRef
Discriminator Values
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
(Class) type of the referred Usage Specification.
-
@schemaLocation: string
This field provides a link to the schema describing this REST resource
-
@type: string
Indicates the (class) type of ServiceSpecificationRef.
-
href: string
Reference of the usage specification.
-
id(required): string
Unique identifier of the usage specification.
-
name: string
Name of the usage specification.
-
version: string
Version of the usage specification.
-
versionState: number
To hold the version state for the reference
object
-
usageCode: string
Code to usage specification
400 Response
array
-
Array of:
object Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "Error":"#/components/schemas/Error", "BulkError":"#/components/schemas/BulkError" } }
401 Response
object
Error
-
@schemaLocation: string
It provides a link to the schema describing a REST resource.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list)
-
message: string
Text that provide more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
Text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
url pointing to documentation describing the error
-
status: string
http error code extension like 400-2
404 Response
object
Error
-
@schemaLocation: string
It provides a link to the schema describing a REST resource.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list)
-
message: string
Text that provide more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
Text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
url pointing to documentation describing the error
-
status: string
http error code extension like 400-2
405 Response
object
Error
-
@schemaLocation: string
It provides a link to the schema describing a REST resource.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list)
-
message: string
Text that provide more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
Text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
url pointing to documentation describing the error
-
status: string
http error code extension like 400-2
500 Response
object
Error
-
@schemaLocation: string
It provides a link to the schema describing a REST resource.
-
@type: string
The class type of a REST resource.
-
code(required): string
Application related code (as defined in the API or from a common list)
-
message: string
Text that provide more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
Text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
url pointing to documentation describing the error
-
status: string
http error code extension like 400-2
Examples
The following example shows how to create or update an array of constraint 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/constraints -H 'Content-Type: application/json' -D @put_constraints.json | json_pp
Example of Request Body
The following shows an example of the request body in JSON format.
[ { "@type": "PricingConstraintVariantOracle", "@baseType": "Constraint", "id": "hxxxxx001", "name": "hxxxxx001", "constraintType": "PRICE", "description": "Description of CustTypeBasedConstraint001update", "version": "1.0", "productSpecification": { "@referredType": "ProductSpecificationOracle", "id": "ProductSpec2002", "name": "ProductSpec2002" }, "project": { "id": "BulkDocProject", "name": "Bulk Doc Project" }, "specCharUse": [ { "relationshipType": "AGGREGATION", "name": "Colour", "charSpecSeq": 1, "productSpecification": { "id": "ProductSpec2002", "name": "ProductSpec2002", "href": "https://mycsp.com:8080/tmf-api/productCatalogManagement/v4/customerProfileSpecification/TestBRMCustomerProfile001", "version": "1.0" } } ], "constraintRule": [ { "priority": 1, "priceTag": "PriceTag01", "validFor": { "startDateTime": "2017-04-19T16:42:23.0Z" }, "valueRelationship": [ { "value": "Platinum" } ], "productOfferingPrice": [ { "id": "service112", "name": "service112", "version": "1.0" } ] } ] }, { "@type": "PricingConstraintVariantOracle", "@baseType": "Constraint", "id": "hxxxxx002", "name": "hxxxxx002", "constraintType": "PRICE", "description": "Description of CustTypeBasedConstraint001update", "version": "1.0", "productSpecification": { "@referredType": "ProductSpecificationOracle", "id": "ProductSpec2002", "name": "ProductSpec2002" }, "project": { "id": "BulkDocProject", "name": "Bulk Doc Project" }, "specCharUse": [ { "relationshipType": "AGGREGATION", "name": "Colour", "charSpecSeq": 1, "productSpecification": { "id": "ProductSpec2002", "name": "ProductSpec2002", "href": "https://mycsp.com:8080/tmf-api/productCatalogManagement/v4/customerProfileSpecification/TestBRMCustomerProfile001", "version": "1.0" } } ], "constraintRule": [ { "priority": 1, "priceTag": "PriceTag01", "validFor": { "startDateTime": "2017-04-19T16:42:23.0Z" }, "valueRelationship": [ { "value": "Platinum" } ], "productOfferingPrice": [ { "id": "service112", "name": "service112", "version": "1.0" } ] } ] } ]
Example of Response Body
The following shows an example of the response body in JSON format.
[ { "lastUpdate": "2021-09-15T07:14:37.394Z", "lastUpdatedBy": "booth", "created": "2021-05-07T07:44:22.000Z", "createdBy": "booth", "@type": "PricingConstraintVariantOracle", "@baseType": "Constraint", "constraintType": "PRICE", "specCharUse": [ { "productSpecification": { "id": "ProductSpec2002", "name": "ProductSpec2002", "version": "1.0", "href": "https://mycsp.com:8080/tmf-api/productCatalogManagement/v4/customerProfileSpecification/TestBRMCustomerProfile001" }, "charSpecSeq": 1, "relationshipType": "AGGREGATION", "name": "Colour" } ], "constraintRule": [ { "productOfferingPrice": [ { "id": "service112", "name": "service112", "version": "1.0", "@referredType": "ProductOfferingPriceOracle" } ], "priceTag": "PriceTag01", "valueRelationship": [ { "value": "Platinum" } ], "validFor": { "startDateTime": "2017-04-19T16:42:23.0Z" }, "priority": 1 } ], "productSpecification": { "id": "ProductSpec2002", "name": "ProductSpec2002", "version": "1.0", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/productSpecification/ProductSpec2002", "@baseType": "ProductSpecificationOracle" }, "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/constraints/hxxxxx001", "project": { "id": "BulkDocProject", "name": "Bulk Doc Project", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/BulkDocProject" }, "description": "Description of CustTypeBasedConstraint001update", "version": "1.0", "name": "hxxxxx001", "id": "hxxxxx001" }, { "lastUpdate": "2021-09-15T07:14:37.853Z", "lastUpdatedBy": "booth", "created": "2021-05-30T08:53:51.892Z", "createdBy": "booth", "@type": "PricingConstraintVariantOracle", "@baseType": "Constraint", "constraintType": "PRICE", "specCharUse": [ { "productSpecification": { "id": "ProductSpec2002", "name": "ProductSpec2002", "version": "1.0", "href": "https://mycsp.com:8080/tmf-api/productCatalogManagement/v4/customerProfileSpecification/TestBRMCustomerProfile001" }, "charSpecSeq": 1, "relationshipType": "AGGREGATION", "name": "Colour" } ], "constraintRule": [ { "productOfferingPrice": [ { "id": "service112", "name": "service112", "version": "1.0", "@referredType": "ProductOfferingPriceOracle" } ], "priceTag": "PriceTag01", "valueRelationship": [ { "value": "Platinum" } ], "validFor": { "startDateTime": "2017-04-19T16:42:23.0Z" }, "priority": 1 } ], "productSpecification": { "id": "ProductSpec2002", "name": "ProductSpec2002", "version": "1.0", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/productSpecification/ProductSpec2002", "@baseType": "ProductSpecificationOracle" }, "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/constraints/hxxxxx002", "project": { "id": "BulkDocProject", "name": "Bulk Doc Project", "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/BulkDocProject" }, "description": "Description of CustTypeBasedConstraint001update", "version": "1.0", "name": "hxxxxx002", "id": "hxxxxx002" } ]