Create or update an array of product lines
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/productLines
Request
There are no request parameters for this operation.
- application/json
array150-
Array of:
ProductLineOracle
Title:
ProductLineOracleRepresents entities that groups product offerings
ProductLineOracle-
object
ProductLine
Title:
ProductLineDiscriminator:{ "propertyName":"@type", "mapping":{ "ProductLine":"#/components/schemas/ProductLine", "ProductLineOracle":"#/components/schemas/ProductLineOracle" } }Represents entities that groups product offerings -
object
type
objectProductLineDiscriminator Values
-
@baseType: string
Immediate base (class) type of the product offering
-
@schemaLocation: string
A link to the schema describing this product offering
-
@type(required): string
Class type of the product offering
-
description: string
Description of the product line
-
href: string
Reference of the Product line
-
id: string
Maximum Length:
30Unique identifier of the product line -
lastUpdate: string
(date-time)
Date and time of the last update
-
lifecycleStatus: string
Used to indicate the current lifecycle status
-
name(required): string
Name of the product line
-
validFor: object
TimePeriodOracle
Title:
TimePeriodOracleValidity period of the related party -
version: string
ProductOffering version
object-
applicationName: string
name of the external application
-
compatibilityRules: array
compatibilityRules
-
created: string
(date-time)
Date and time of creation
-
createdBy: string
name of the person who created item
-
externalId: string
id of the external application
-
lastUpdatedBy: string
name of the person who updated item
-
productOffering: array
productOffering
-
project: object
ProjectRef
Title:
ProjectRefProject Reference -
versionState: number
Version state of the product line
array-
Array of:
object CompatibilityRulesOracle
Title:
CompatibilityRulesOraclespecifies the compatibilty rule for the offer
array-
Array of:
ProductOfferingRefOracle
Title:
ProductOfferingRefOracle
objectProjectRef-
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
objectCompatibilityRulesOracle-
active: boolean
A flag indicating if the rule is active or not
-
compatibilityRuleType: string
Allowed Values:
[ "REQUIRES", "EXCLUDES" ]Specifies the type of compatability rule -
name(required): string
Unique name of the Compatibility Rule
-
objectProduct: string
object offer component of the compatability rule
-
objectProductLine: string
Object Product Line component of the compatability rule
-
subjectProduct: string
Subject offer component of the compatability rule
-
subjectProductLine: string
Subject Product Line component of the compatability rule
-
validFor: object
TimePeriodOracle
Title:
TimePeriodOracleValidity period of the related party
objectTimePeriodOracle-
endDateTime: string
(date-time)
An instant of time, ending at the TimePeriod.
-
startDateTime: string
(date-time)
An instant of time, starting at the TimePeriod
ProductOfferingRefOracle-
object
ProductOfferingRef
Title:
ProductOfferingRefDiscriminator:{ "propertyName":"@type", "mapping":{ "ProductOfferingRef":"#/components/schemas/ProductOfferingRef", "BundledProductOffering":"#/components/schemas/BundledProductOffering", "BundledProductOfferingChoiceOracle":"#/components/schemas/BundledProductOfferingChoiceOracle", "BundledProductOfferingOracle":"#/components/schemas/BundledProductOfferingOracle" } }ProductOffering reference. A product offering represents entities that are orderable from the provider of the catalog, this resource includes pricing information. -
object
ProductOfferingRefOracle-allOf[1]
objectProductOfferingRefDiscriminator Values
- ProductOfferingRef
- BundledProductOffering
- BundledProductOfferingChoiceOracle
- BundledProductOfferingOracle
-
@baseType: string
base class type (immediate parent) of the ProductOfferingRef
-
@referredType(required): string
the class type of the referred product offering
-
@schemaLocation: string
Hyperlink reference to schema describing this object
-
@type(required): string
The class type of this ProductOfferingRef
-
href: string
Reference of the product offering
-
id(required): string
Unique identifier of the product offering
-
name: string
Name of the product offering
-
version: string
Version of the product offering
-
versionState: number
To hold the version state for the reference
object-
isBundle: boolean
Indicates if the offer is simple or composite
-
lifecycleStatus: string
lifecycleStatus of the product offering
-
version: string
Version of the product offering
Response
- application/json
200 Response
array-
Array of:
ProductLineOracle
Title:
ProductLineOracleRepresents entities that groups product offerings
ProductLineOracle-
object
ProductLine
Title:
ProductLineDiscriminator:{ "propertyName":"@type", "mapping":{ "ProductLine":"#/components/schemas/ProductLine", "ProductLineOracle":"#/components/schemas/ProductLineOracle" } }Represents entities that groups product offerings -
object
type
objectProductLineDiscriminator Values
-
@baseType: string
Immediate base (class) type of the product offering
-
@schemaLocation: string
A link to the schema describing this product offering
-
@type(required): string
Class type of the product offering
-
description: string
Description of the product line
-
href: string
Reference of the Product line
-
id: string
Maximum Length:
30Unique identifier of the product line -
lastUpdate: string
(date-time)
Date and time of the last update
-
lifecycleStatus: string
Used to indicate the current lifecycle status
-
name(required): string
Name of the product line
-
validFor: object
TimePeriodOracle
Title:
TimePeriodOracleValidity period of the related party -
version: string
ProductOffering version
object-
applicationName: string
name of the external application
-
compatibilityRules: array
compatibilityRules
-
created: string
(date-time)
Date and time of creation
-
createdBy: string
name of the person who created item
-
externalId: string
id of the external application
-
lastUpdatedBy: string
name of the person who updated item
-
productOffering: array
productOffering
-
project: object
ProjectRef
Title:
ProjectRefProject Reference -
versionState: number
Version state of the product line
array-
Array of:
object CompatibilityRulesOracle
Title:
CompatibilityRulesOraclespecifies the compatibilty rule for the offer
array-
Array of:
ProductOfferingRefOracle
Title:
ProductOfferingRefOracle
objectProjectRef-
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
objectCompatibilityRulesOracle-
active: boolean
A flag indicating if the rule is active or not
-
compatibilityRuleType: string
Allowed Values:
[ "REQUIRES", "EXCLUDES" ]Specifies the type of compatability rule -
name(required): string
Unique name of the Compatibility Rule
-
objectProduct: string
object offer component of the compatability rule
-
objectProductLine: string
Object Product Line component of the compatability rule
-
subjectProduct: string
Subject offer component of the compatability rule
-
subjectProductLine: string
Subject Product Line component of the compatability rule
-
validFor: object
TimePeriodOracle
Title:
TimePeriodOracleValidity period of the related party
objectTimePeriodOracle-
endDateTime: string
(date-time)
An instant of time, ending at the TimePeriod.
-
startDateTime: string
(date-time)
An instant of time, starting at the TimePeriod
ProductOfferingRefOracle-
object
ProductOfferingRef
Title:
ProductOfferingRefDiscriminator:{ "propertyName":"@type", "mapping":{ "ProductOfferingRef":"#/components/schemas/ProductOfferingRef", "BundledProductOffering":"#/components/schemas/BundledProductOffering", "BundledProductOfferingChoiceOracle":"#/components/schemas/BundledProductOfferingChoiceOracle", "BundledProductOfferingOracle":"#/components/schemas/BundledProductOfferingOracle" } }ProductOffering reference. A product offering represents entities that are orderable from the provider of the catalog, this resource includes pricing information. -
object
ProductOfferingRefOracle-allOf[1]
objectProductOfferingRefDiscriminator Values
- ProductOfferingRef
- BundledProductOffering
- BundledProductOfferingChoiceOracle
- BundledProductOfferingOracle
-
@baseType: string
base class type (immediate parent) of the ProductOfferingRef
-
@referredType(required): string
the class type of the referred product offering
-
@schemaLocation: string
Hyperlink reference to schema describing this object
-
@type(required): string
The class type of this ProductOfferingRef
-
href: string
Reference of the product offering
-
id(required): string
Unique identifier of the product offering
-
name: string
Name of the product offering
-
version: string
Version of the product offering
-
versionState: number
To hold the version state for the reference
object-
isBundle: boolean
Indicates if the offer is simple or composite
-
lifecycleStatus: string
lifecycleStatus of the product offering
-
version: string
Version of the product offering
400 Response
array-
Array of:
object Discriminator: @type
Discriminator:
{ "propertyName":"@type", "mapping":{ "Error":"#/components/schemas/Error", "BulkError":"#/components/schemas/BulkError" } }
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 or update an array of product line 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/productLines/ -H 'Content-Type: application/json' -D @put_productlines.json | json_pp
Example of Request Body
The following shows an example of the request body in JSON format.
[
{
"@type": "ProductLineOracle",
"@baseType": "ProductLine",
"id": "TelecomProductline_Y2021_001",
"name": "TelecomProductline_Y2021_001",
"version": "1.0",
"description": "ProductLine129 description up",
"lifecycleStatus": "In design",
"project": {
"id": "BulkDocProject",
"name": "Bulk Doc Project"
}
},
{
"@type": "ProductLineOracle",
"@baseType": "ProductLine",
"id": "TelecomProductline_Y2021_002",
"name": "TelecomProductline_Y2021_002",
"version": "1.0",
"description": "ProductLine129 description up",
"lifecycleStatus": "In design",
"project": {
"id": "BulkDocProject",
"name": "Bulk Doc Project"
}
}
]
Example of Response Body
The following shows an example of the response body in JSON format.
[
{
"id": "TelecomProductline_Y2021_001",
"name": "TelecomProductline_Y2021_001",
"description": "ProductLine129 description up",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/productLines/TelecomProductline_Y2021_001",
"version": "1.0",
"lifecycleStatus": "In design",
"@type": "ProductLineOracle",
"@baseType": "ProductLine",
"project": {
"id": "BulkDocProject",
"name": "Bulk Doc Project",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/BulkDocProject"
}
},
{
"id": "TelecomProductline_Y2021_002",
"name": "TelecomProductline_Y2021_002",
"description": "ProductLine129 description up",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v1/productLines/TelecomProductline_Y2021_002",
"version": "1.0",
"lifecycleStatus": "In design",
"@type": "ProductLineOracle",
"@baseType": "ProductLine",
"project": {
"id": "BulkDocProject",
"name": "Bulk Doc Project",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/project/BulkDocProject"
}
}
]