Create a pricing logic algorithm specification
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/pricingLogicAlgorithmSpecification
Request
There are no request parameters for this operation.
- application/json
objectDiscriminator Values
Response
- application/json
201 Response
objectDiscriminator Values
400 Response
objectError-
@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
401 Response
objectError-
@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
objectError-
@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
objectError-
@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
objectError-
@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 a pricing logic algorithm specification by submitting a POST request on the REST resource using cURL.
cURL Command
curl -u username:password -X POST
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/pricingLogicAlgorithmSpecification
\ -H 'Content-Type: application/json' -D @create_pricinglogicalgorithmspec.json
| json_pp
Example of Request Body
The following example shows the contents of the request body in JSON format.
{
"id": "PLAspec1",
"name": "PLA Spec",
"description": "Description of PLAspec",
"version": "1.0",
"lifecycleStatus": "In design",
"@type": "PricingLogicAlgorithmSpecificationOracle",
"@baseType": "PricingLogicAlgorithmSpecification",
"plaSpecCharacteristic": [
{
"name": "Colour",
"description": "Phone Colour",
"valueType": "STRING",
"configurable": true,
"minCardinality": 1,
"maxCardinality": 1,
"isUnique": true,
"extensible": false,
"@type": "PLASpecCharacteristic"
}
]
}Example of Response Body
{
"id": "PLAspec1",
"name": "PLA Spec",
"description": "Description of PLAspec",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/pricingLogicAlgorithmSpecification/PLAspec1",
"version": "1.0",
"lifecycleStatus": "In design",
"created": "2025-02-17T12:53:28.000Z",
"createdBy": "booth",
"lastUpdate": "2025-02-17T12:53:28.047Z",
"lastUpdatedBy": "booth",
"@type": "PricingLogicAlgorithmSpecificationOracle",
"@baseType": "PricingLogicAlgorithmSpecification",
"@schemaLocation": "https://{FusionAppsHost}/CatalogManagement/schema/oracle/PricingLogicAlgorithmSpecificationOracle.yml",
"versionState": 0,
"plaSpecCharacteristic": [
{
"name": "Colour",
"description": "Phone Colour",
"valueType": "STRING",
"@type": "PLASpecCharacteristic",
"extensible": false,
"configurable": true,
"isUnique": true,
"minCardinality": 1,
"maxCardinality": 1
}
]
}