Create or update a product specification
put
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/productSpecification/{id}
Request
Path Parameters
-
id(required): string
The unique identifier of the resource item.
Supported Media Types
- application/json
Root Schema : ProductSpecificationOracle
Title:
ProductSpecificationOracle
Match All
Show Source
-
object
ProductSpecification
Title:
ProductSpecification
Discriminator:{ "propertyName":"@type", "mapping":{ "ProductSpecification":"#/components/schemas/ProductSpecification", "ProductSpecificationOracle":"#/components/schemas/ProductSpecificationOracle" } }
-
object
type
Nested Schema : ProductSpecification
Type:
object
Title:
ProductSpecification
Discriminator: @type
Discriminator Values
Show Source-
@baseType: string
base class type (immediate parent) of the product specification
-
@schemaLocation: string
hyperlink reference to schema describing this object
-
@type: string
class type of the product specification
-
attachment: array
attachment
-
brand: string
The manufacturer or trademark of the specification
-
bundledProductSpecification: array
bundledProductSpecification
-
description: string
A narrative that explains in detail what the product specification is
-
href: string
Reference of the product specification
-
id: string
Maximum Length:
30
Unique identifier of the product specification -
isBundle: boolean
isBundle determines whether a productSpecification represents a single productSpecification (false), or a bundle of productSpecification (true).
-
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 specification
-
productNumber: string
An identification number assigned to uniquely identity the specification
-
productSpecCharacteristic: array
productSpecCharacteristic
-
productSpecificationRelationship: array
productSpecificationRelationship
- relatedParty: array relatedParty
-
resourceSpecification: array
resourceSpecification
-
serviceSpecification: array
serviceSpecification
-
targetProductSchema: object
TargetProductSchema
Title:
TargetProductSchema
The reference object to the schema and type of target product which is described by product specification -
validFor: object
TimePeriod
Title:
TimePeriod
The period for which the productOffering is valid -
version: string
Product specification version
Nested Schema : type
Type:
Show Source
object
-
applicationName: string
name of the external application
-
category: array
category
-
created: string
(date-time)
Date and time of the creation
-
createdBy: string
name of the person who created item
-
customerProfileSpecification: array
customerProfileSpecification
-
customProfileSpec: array
customProfileSpec
-
externalId: string
id of the external application
-
lastUpdatedBy: string
name of the person who updated item
-
project: object
ProjectRef
Title:
ProjectRef
Project Reference -
usageSpecification: array
usageSpecification
-
usedBy: array
usedBy
-
versionState: number
Version state of the Product Specification
Nested Schema : category
Type:
Show Source
array
-
Array of:
object CategoryRef
Title:
CategoryRef
Category reference. The category resource is used to group product offerings, service and resource candidates in logical containers. Categories can contain other categories and/or product offerings, resource or service candidates.
Nested Schema : customerProfileSpecification
Type:
Show Source
array
-
Array of:
object CustomerProfileSpecificationRef
Title:
CustomerProfileSpecificationRef
Customer Profile specification reference.
Nested Schema : customProfileSpec
Type:
Show Source
array
-
Array of:
object CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference.
Nested Schema : ProjectRef
Type:
object
Title:
ProjectRef
Project Reference
Show Source
-
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
Nested Schema : usageSpecification
Type:
Show Source
array
-
Array of:
UsageSpecificationRefOracle
Title:
UsageSpecificationRefOracle
Nested Schema : usedBy
Type:
Show Source
array
-
Array of:
object UsedByRef
Title:
UsedByRef
A reference to a resource that is aggregating another top-level resource.
Nested Schema : CategoryRef
Type:
object
Title:
CategoryRef
Category reference. The category resource is used to group product offerings, service and resource candidates in logical containers. Categories can contain other categories and/or product offerings, resource or service candidates.
Show Source
-
@baseType: string
base class type of CategoryRef
-
@referredType: string
the class type of the referred Category
-
@schemaLocation: string
Hyperlink reference to schema describing this object
-
@type: string
The class type of the CategoyRef
-
href: string
Unique reference of the category
-
id(required): string
Unique reference of the category
-
name: string
Name of the category
-
version: string
Category version
-
versionState: number
To hold the version state for the reference
Nested Schema : CustomerProfileSpecificationRef
Type:
object
Title:
CustomerProfileSpecificationRef
Customer Profile specification reference.
Show Source
-
@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
Nested Schema : CustomProfileSpecRefOracle
Type:
object
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference.
Show Source
-
@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
Nested Schema : UsageSpecificationRefOracle
Title:
UsageSpecificationRefOracle
Match All
Show Source
-
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]
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
-
@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
Nested Schema : UsageSpecificationRefOracle-allOf[1]
Type:
Show Source
object
-
usageCode: string
Code to usage specification
Nested Schema : UsedByRef
Type:
object
Title:
UsedByRef
A reference to a resource that is aggregating another top-level resource.
Show Source
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
The Class type of using item
-
href: string
hyperlink reference of the using item
-
id: string
Unique identifier of the using item
-
name: string
Name of the using item
-
referenceType: string
Allowed Values:
[ "PACKAGE", "COMMERCIAL_BUNDLE", "SERVICE_BUNDLE", "SERVICE", "DEVICE", "ACCESSORY", "CHOICE", "AGGREGATION", "AWARD", "DISCOUNT", "TRADE_IN", "COMPATIBILITY", "ELIGIBILITY", "MIGRATION", "RECOMMENDATION", "CONSTRAINT", "DEVICE_SPEC", "CHARGING_TERM", "SUSPENSION_TERM", "RETURN_CHECKLIST", "ENTITY_PROFILE", "PRODUCT_LINE", "PRODUCT_OFFERING_PRICE", "CATALOG", "CATEGORY", "PRODUCT_SPECIFICATION", "USAGE_SPECIFICATION", "SERVICE_SPECIFICATION" ]
The entity type of using item -
version: string
Version of the using item
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : ProductSpecificationOracle
Title:
ProductSpecificationOracle
Match All
Show Source
-
object
ProductSpecification
Title:
ProductSpecification
Discriminator:{ "propertyName":"@type", "mapping":{ "ProductSpecification":"#/components/schemas/ProductSpecification", "ProductSpecificationOracle":"#/components/schemas/ProductSpecificationOracle" } }
-
object
type
Nested Schema : ProductSpecification
Type:
object
Title:
ProductSpecification
Discriminator: @type
Discriminator Values
Show Source-
@baseType: string
base class type (immediate parent) of the product specification
-
@schemaLocation: string
hyperlink reference to schema describing this object
-
@type: string
class type of the product specification
-
attachment: array
attachment
-
brand: string
The manufacturer or trademark of the specification
-
bundledProductSpecification: array
bundledProductSpecification
-
description: string
A narrative that explains in detail what the product specification is
-
href: string
Reference of the product specification
-
id: string
Maximum Length:
30
Unique identifier of the product specification -
isBundle: boolean
isBundle determines whether a productSpecification represents a single productSpecification (false), or a bundle of productSpecification (true).
-
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 specification
-
productNumber: string
An identification number assigned to uniquely identity the specification
-
productSpecCharacteristic: array
productSpecCharacteristic
-
productSpecificationRelationship: array
productSpecificationRelationship
- relatedParty: array relatedParty
-
resourceSpecification: array
resourceSpecification
-
serviceSpecification: array
serviceSpecification
-
targetProductSchema: object
TargetProductSchema
Title:
TargetProductSchema
The reference object to the schema and type of target product which is described by product specification -
validFor: object
TimePeriod
Title:
TimePeriod
The period for which the productOffering is valid -
version: string
Product specification version
Nested Schema : type
Type:
Show Source
object
-
applicationName: string
name of the external application
-
category: array
category
-
created: string
(date-time)
Date and time of the creation
-
createdBy: string
name of the person who created item
-
customerProfileSpecification: array
customerProfileSpecification
-
customProfileSpec: array
customProfileSpec
-
externalId: string
id of the external application
-
lastUpdatedBy: string
name of the person who updated item
-
project: object
ProjectRef
Title:
ProjectRef
Project Reference -
usageSpecification: array
usageSpecification
-
usedBy: array
usedBy
-
versionState: number
Version state of the Product Specification
Nested Schema : category
Type:
Show Source
array
-
Array of:
object CategoryRef
Title:
CategoryRef
Category reference. The category resource is used to group product offerings, service and resource candidates in logical containers. Categories can contain other categories and/or product offerings, resource or service candidates.
Nested Schema : customerProfileSpecification
Type:
Show Source
array
-
Array of:
object CustomerProfileSpecificationRef
Title:
CustomerProfileSpecificationRef
Customer Profile specification reference.
Nested Schema : customProfileSpec
Type:
Show Source
array
-
Array of:
object CustomProfileSpecRefOracle
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference.
Nested Schema : ProjectRef
Type:
object
Title:
ProjectRef
Project Reference
Show Source
-
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
Nested Schema : usageSpecification
Type:
Show Source
array
-
Array of:
UsageSpecificationRefOracle
Title:
UsageSpecificationRefOracle
Nested Schema : usedBy
Type:
Show Source
array
-
Array of:
object UsedByRef
Title:
UsedByRef
A reference to a resource that is aggregating another top-level resource.
Nested Schema : CategoryRef
Type:
object
Title:
CategoryRef
Category reference. The category resource is used to group product offerings, service and resource candidates in logical containers. Categories can contain other categories and/or product offerings, resource or service candidates.
Show Source
-
@baseType: string
base class type of CategoryRef
-
@referredType: string
the class type of the referred Category
-
@schemaLocation: string
Hyperlink reference to schema describing this object
-
@type: string
The class type of the CategoyRef
-
href: string
Unique reference of the category
-
id(required): string
Unique reference of the category
-
name: string
Name of the category
-
version: string
Category version
-
versionState: number
To hold the version state for the reference
Nested Schema : CustomerProfileSpecificationRef
Type:
object
Title:
CustomerProfileSpecificationRef
Customer Profile specification reference.
Show Source
-
@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
Nested Schema : CustomProfileSpecRefOracle
Type:
object
Title:
CustomProfileSpecRefOracle
Custom Profile specification reference.
Show Source
-
@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
Nested Schema : UsageSpecificationRefOracle
Title:
UsageSpecificationRefOracle
Match All
Show Source
-
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]
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
-
@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
Nested Schema : UsageSpecificationRefOracle-allOf[1]
Type:
Show Source
object
-
usageCode: string
Code to usage specification
Nested Schema : UsedByRef
Type:
object
Title:
UsedByRef
A reference to a resource that is aggregating another top-level resource.
Show Source
-
@baseType: string
Indicates the base (class) type of this REST resource
-
@referredType: string
The Class type of using item
-
href: string
hyperlink reference of the using item
-
id: string
Unique identifier of the using item
-
name: string
Name of the using item
-
referenceType: string
Allowed Values:
[ "PACKAGE", "COMMERCIAL_BUNDLE", "SERVICE_BUNDLE", "SERVICE", "DEVICE", "ACCESSORY", "CHOICE", "AGGREGATION", "AWARD", "DISCOUNT", "TRADE_IN", "COMPATIBILITY", "ELIGIBILITY", "MIGRATION", "RECOMMENDATION", "CONSTRAINT", "DEVICE_SPEC", "CHARGING_TERM", "SUSPENSION_TERM", "RETURN_CHECKLIST", "ENTITY_PROFILE", "PRODUCT_LINE", "PRODUCT_OFFERING_PRICE", "CATALOG", "CATEGORY", "PRODUCT_SPECIFICATION", "USAGE_SPECIFICATION", "SERVICE_SPECIFICATION" ]
The entity type of using item -
version: string
Version of the using item
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.
Root Schema : Error
Type:
object
Title:
Show Source
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
401 Response
Your request isn't authorized. The authentication credentials included with this request are missing or invalid.
Root Schema : Error
Type:
object
Title:
Show Source
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
Your request includes a resource URI that doesn't exist.
Root Schema : Error
Type:
object
Title:
Show Source
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
HTTP action specified in the request (DELETE, GET, POST, PUT) isn't supported for this request URI.
Root Schema : Error
Type:
object
Title:
Show Source
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
The server encountered something unexpected that prevented it from completing the request.
Root Schema : Error
Type:
object
Title:
Show Source
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 a product specification 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/tmf-api/productCatalogManagement/v4/productSpecification/SpecHomebaseModel00614
\ -H 'Content-Type: application/json' -D @put_prodspec.json | json_pp
Example of Request Body
The following example shows the contents of the request body in JSON format.
{ "@type": "ProductSpecificationOracle", "@baseType": "ProductSpecification", "id": "SpecHomebaseModel00614", "name": "Spec Home base Model 00614", "description": "SpecHomebaseMode 00614", "version": "1.0", "lifecycleStatus": "In study", "isBundle": false, "validFor": { "startDateTime": "2020-05-02T16:42:23.0Z", "endDateTime": "2021-07-14T00:00:00.0Z" }, "project": { "id": "SpringProject", "name": "SpringProject" }, "targetProductSchema": { "@type": "ProductOracle", "@schemaLocation": "https://{FusionAppsHost}/CatalogManagement/schema/oracle/ProductOracle.yml" } }
Example of Response Body
The
following example shows the contents of the response body in JSON
format.
{ "@type": "ProductSpecificationOracle", "@baseType": "ProductSpecification", "id": "SpecHomebaseModel00614", "name": "Spec Home base Model 00614", "description": "SpecHomebaseMode 00614", "version": "1.0", "lifecycleStatus": "In study", "isBundle": false, "validFor": { "startDateTime": "2020-05-02T16:42:23.0Z", "endDateTime": "2021-07-14T00:00:00.0Z" }, "project": { "id": "SpringProject", "name": "SpringProject" }, "targetProductSchema": { "@type": "ProductOracle", "@schemaLocation": "https://{FusionAppsHost}/CatalogManagement/schema/oracle/ProductOracle.yml" }, "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/productSpecification/SpecHomebaseModel00614", "createdBy": "anonymous", "created": "2020-08-20T14:13:32.000Z", "lastUpdatedBy": "anonymous", "lastUpdate": "2020-08-20T14:13:34.000Z" }