Create or updates a custom profile specification
put
https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customProfileSpecification/{id}
Creates or updates the custom profile specification with the specified ID.
Request
Path Parameters
-
id(required): string
The ID of the resource item.
Supported Media Types
- application/json
Root Schema : CustomProfileSpecificationOracle
Type:
objectTitle:
CustomProfileSpecificationOracleThe custom profile specification resource.
Show Source
-
@baseType: string
The base type of the custom profile specification.
-
@schemaLocation: string
The URI of the schema that defines the custom profile specification.
-
@type(required): string
The class type of the custom profile specification.
-
applicationName: string
The name of the application associated with the custom profile specification.
-
charValueObject: array
charValueObject
A list of char value objects associated with the custom profile specification.
-
created: string
(date-time)
The date and time of creation.
-
createdBy: string
The name of the person who created.
-
customProfileSpecChar: array
customProfileSpecChar
A list of custom profile specification characteristics associated with the custom profile specification.
-
customProfileSpecRel: array
customProfileSpecRel
A list of custom profile specification rels associated with the custom profile specification.
-
description: string
A string. A narrative that explains in detail what the Custom ProfileSpec is.
-
externalId: string
The ID of the external associated with the custom profile specification.
-
href: string
A string. Reference of the Custom ProfileSpec.
-
id: string
Maximum Length:
30The ID of the custom profile specification. -
lastUpdate: string
(date-time)
A date time (DateTime). Date and time of the last update of the Custom ProfileSpec.
-
lastUpdatedBy: string
The name of the person who updated.
-
lifecycleStatus: string
Indicates the current lifecycle status of the custom profile specification.
-
name(required): string
A string. Name of the Custom ProfileSpec.
-
profileCode: string
The profile code associated with the custom profile specification.
-
profileType(required): string
Allowed Values:
[ "DEVICE_SPEC", "BUSINESS_CONFIG", "TRADE_IN", "CHARGING_TERM", "SUSPENSION_TERM", "RETURN_CHECKLIST", "ENTITY_PROFILE", "RENEWAL_TERM", "FINANCE_PLAN", "ZONE_VALUE_MAP", "STANDARD_ZONE", "CUSTOM_ANALYZER_RULE", "POLICY_SPEC_TERM", "TIME_MODEL" ]The type or classification of the custom profile specification. -
project: object
ProjectRef
Title:
ProjectRefThe project reference resource. - relatedParty: array relatedParty
-
targetProductSchema: object
TargetProductSchemaOracle
Title:
TargetProductSchemaOracle -
validFor: object
TimePeriod
Title:
TimePeriodThe period for which the productOffering is valid. -
version: string
A string. Custom ProfileSpec version.
-
versionState: number
The version state of the Customer Profile Specification.
Nested Schema : charValueObject
Type:
arrayA list of char value objects associated with the custom profile specification.
Show Source
-
Array of:
object CharValueObjectRefOracle
Title:
CharValueObjectRefOracleThe Reference of the resource referred in CharValue of custom profile specification.
Nested Schema : customProfileSpecChar
Type:
arrayA list of custom profile specification characteristics associated with the custom profile specification.
Show Source
Nested Schema : customProfileSpecRel
Type:
arrayA list of custom profile specification rels associated with the custom profile specification.
Show Source
-
Array of:
object CustomProfileSpecRel
Title:
CustomProfileSpecRelA migration, substitution, dependency or exclusivity relationship between/among custom profile specifications.
Nested Schema : ProjectRef
Type:
objectTitle:
ProjectRefThe project reference resource.
Show Source
-
href: string
The hyperlink reference to the project reference.
-
id(required): string
The ID of the project reference.
-
name: string
The name of the project reference.
-
version: string
The version of the project.
Nested Schema : TargetProductSchemaOracle
Type:
objectTitle:
TargetProductSchemaOracleMatch All
Show Source
-
object
TargetProductSchema
Title:
TargetProductSchemaThe reference object to the schema and type of target product which is described by product specification. -
object
TargetProductSchemaOracle-allOf[1]
Nested Schema : TimePeriod
Type:
objectTitle:
TimePeriodThe period for which the productOffering is valid.
Show Source
-
endDateTime: string
(date-time)
The end date and time of the time period.
-
startDateTime: string
(date-time)
The start date and time of the time period.
Nested Schema : CharValueObjectRefOracle
Type:
objectTitle:
CharValueObjectRefOracleThe Reference of the resource referred in CharValue of custom profile specification.
Show Source
-
@baseType: string
The base type of the characteristic value object reference.
-
@referredType(required): string
The type of the referred characteristic value object reference.
-
@schemaLocation: string
(uri)
The URI of the schema that defines the characteristic value object reference.
-
@type(required): string
The class type of the characteristic value object reference.
-
href: string
The hyperlink reference to the characteristic value object reference.
-
id(required): string
The ID of the characteristic value object reference.
-
name: string
The name of the characteristic value object reference.
-
resourceType: string
Allowed Values:
[ "SERVICE_SPEC" ]The type or classification of the characteristic value object reference. Valid values are SERVICE_SPEC.
Nested Schema : CustomProfileSpecRel
Type:
objectTitle:
CustomProfileSpecRelA migration, substitution, dependency or exclusivity relationship between/among custom profile specifications.
Show Source
-
href: string
The hyperlink reference to the custom profile specification rel.
-
id(required): string
The ID of the custom profile specification rel.
-
relationshipType(required): string
Allowed Values:
[ "AGGREGATION", "MIGRATION", "SUBSTITUTION", "DEPENDENCY", "EXCLUSIVITY", "PARENT", "CONDITION", "EXCLUDES", "REQUIRES", "ALLOWED" ]The type or classification of the custom profile specification rel. Valid values are AGGREGATION, MIGRATION, SUBSTITUTION, DEPENDENCY, EXCLUSIVITY, PARENT, CONDITION, EXCLUDES, REQUIRES, and ALLOWED. -
validFor: object
TimePeriodOracle
Title:
TimePeriodOracleThe validity period of the related party. -
versionState: number
The version state of the reference.
Nested Schema : TimePeriodOracle
Type:
objectTitle:
TimePeriodOracleThe validity period of the related party.
Show Source
-
endDateTime: string
(date-time)
The end date and time of the time period.
-
startDateTime: string
(date-time)
The start date and time of the time period.
Nested Schema : RelatedParty
Type:
objectTitle:
RelatedPartyThe relatedParty reference. A related party defines party or party role linked to a specific entity.
Show Source
-
@baseType: string
The base type of the related party reference or party role reference.
-
@schemaLocation: string
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type(required): string
The class type of the related party reference or party role reference.
-
partyOrPartyRole(required):
partyOrPartyRole
A list of party or party roles associated with the related party reference or party role reference.
-
role: string
The role played by the related party or party role in the context of the specific entity it is linked to. Such as 'initiator', 'customer', 'salesAgent', 'user'.
Nested Schema : partyOrPartyRole
Type:
arrayA list of party or party roles associated with the related party reference or party role reference.
Show Source
Nested Schema : TargetProductSchema
Type:
objectTitle:
TargetProductSchemaThe reference object to the schema and type of target product which is described by product specification.
Show Source
-
@schemaLocation(required): string
The URI of the schema that defines the target product schema.
-
@type(required): string
The class type of the target product schema.
Nested Schema : TargetProductSchemaOracle-allOf[1]
Type:
Show Source
object-
subType: string
The type or classification of the target product schema.
Response
Supported Media Types
- application/json
200 Response
The custom profile specification was created or updated successfully.
Root Schema : CustomProfileSpecificationOracle
Type:
objectTitle:
CustomProfileSpecificationOracleThe custom profile specification resource.
Show Source
-
@baseType: string
The base type of the custom profile specification.
-
@schemaLocation: string
The URI of the schema that defines the custom profile specification.
-
@type(required): string
The class type of the custom profile specification.
-
applicationName: string
The name of the application associated with the custom profile specification.
-
charValueObject: array
charValueObject
A list of char value objects associated with the custom profile specification.
-
created: string
(date-time)
The date and time of creation.
-
createdBy: string
The name of the person who created.
-
customProfileSpecChar: array
customProfileSpecChar
A list of custom profile specification characteristics associated with the custom profile specification.
-
customProfileSpecRel: array
customProfileSpecRel
A list of custom profile specification rels associated with the custom profile specification.
-
description: string
A string. A narrative that explains in detail what the Custom ProfileSpec is.
-
externalId: string
The ID of the external associated with the custom profile specification.
-
href: string
A string. Reference of the Custom ProfileSpec.
-
id: string
Maximum Length:
30The ID of the custom profile specification. -
lastUpdate: string
(date-time)
A date time (DateTime). Date and time of the last update of the Custom ProfileSpec.
-
lastUpdatedBy: string
The name of the person who updated.
-
lifecycleStatus: string
Indicates the current lifecycle status of the custom profile specification.
-
name(required): string
A string. Name of the Custom ProfileSpec.
-
profileCode: string
The profile code associated with the custom profile specification.
-
profileType(required): string
Allowed Values:
[ "DEVICE_SPEC", "BUSINESS_CONFIG", "TRADE_IN", "CHARGING_TERM", "SUSPENSION_TERM", "RETURN_CHECKLIST", "ENTITY_PROFILE", "RENEWAL_TERM", "FINANCE_PLAN", "ZONE_VALUE_MAP", "STANDARD_ZONE", "CUSTOM_ANALYZER_RULE", "POLICY_SPEC_TERM", "TIME_MODEL" ]The type or classification of the custom profile specification. -
project: object
ProjectRef
Title:
ProjectRefThe project reference resource. - relatedParty: array relatedParty
-
targetProductSchema: object
TargetProductSchemaOracle
Title:
TargetProductSchemaOracle -
validFor: object
TimePeriod
Title:
TimePeriodThe period for which the productOffering is valid. -
version: string
A string. Custom ProfileSpec version.
-
versionState: number
The version state of the Customer Profile Specification.
Nested Schema : charValueObject
Type:
arrayA list of char value objects associated with the custom profile specification.
Show Source
-
Array of:
object CharValueObjectRefOracle
Title:
CharValueObjectRefOracleThe Reference of the resource referred in CharValue of custom profile specification.
Nested Schema : customProfileSpecChar
Type:
arrayA list of custom profile specification characteristics associated with the custom profile specification.
Show Source
Nested Schema : customProfileSpecRel
Type:
arrayA list of custom profile specification rels associated with the custom profile specification.
Show Source
-
Array of:
object CustomProfileSpecRel
Title:
CustomProfileSpecRelA migration, substitution, dependency or exclusivity relationship between/among custom profile specifications.
Nested Schema : ProjectRef
Type:
objectTitle:
ProjectRefThe project reference resource.
Show Source
-
href: string
The hyperlink reference to the project reference.
-
id(required): string
The ID of the project reference.
-
name: string
The name of the project reference.
-
version: string
The version of the project.
Nested Schema : TargetProductSchemaOracle
Type:
objectTitle:
TargetProductSchemaOracleMatch All
Show Source
-
object
TargetProductSchema
Title:
TargetProductSchemaThe reference object to the schema and type of target product which is described by product specification. -
object
TargetProductSchemaOracle-allOf[1]
Nested Schema : TimePeriod
Type:
objectTitle:
TimePeriodThe period for which the productOffering is valid.
Show Source
-
endDateTime: string
(date-time)
The end date and time of the time period.
-
startDateTime: string
(date-time)
The start date and time of the time period.
Nested Schema : CharValueObjectRefOracle
Type:
objectTitle:
CharValueObjectRefOracleThe Reference of the resource referred in CharValue of custom profile specification.
Show Source
-
@baseType: string
The base type of the characteristic value object reference.
-
@referredType(required): string
The type of the referred characteristic value object reference.
-
@schemaLocation: string
(uri)
The URI of the schema that defines the characteristic value object reference.
-
@type(required): string
The class type of the characteristic value object reference.
-
href: string
The hyperlink reference to the characteristic value object reference.
-
id(required): string
The ID of the characteristic value object reference.
-
name: string
The name of the characteristic value object reference.
-
resourceType: string
Allowed Values:
[ "SERVICE_SPEC" ]The type or classification of the characteristic value object reference. Valid values are SERVICE_SPEC.
Nested Schema : CustomProfileSpecRel
Type:
objectTitle:
CustomProfileSpecRelA migration, substitution, dependency or exclusivity relationship between/among custom profile specifications.
Show Source
-
href: string
The hyperlink reference to the custom profile specification rel.
-
id(required): string
The ID of the custom profile specification rel.
-
relationshipType(required): string
Allowed Values:
[ "AGGREGATION", "MIGRATION", "SUBSTITUTION", "DEPENDENCY", "EXCLUSIVITY", "PARENT", "CONDITION", "EXCLUDES", "REQUIRES", "ALLOWED" ]The type or classification of the custom profile specification rel. Valid values are AGGREGATION, MIGRATION, SUBSTITUTION, DEPENDENCY, EXCLUSIVITY, PARENT, CONDITION, EXCLUDES, REQUIRES, and ALLOWED. -
validFor: object
TimePeriodOracle
Title:
TimePeriodOracleThe validity period of the related party. -
versionState: number
The version state of the reference.
Nested Schema : TimePeriodOracle
Type:
objectTitle:
TimePeriodOracleThe validity period of the related party.
Show Source
-
endDateTime: string
(date-time)
The end date and time of the time period.
-
startDateTime: string
(date-time)
The start date and time of the time period.
Nested Schema : RelatedParty
Type:
objectTitle:
RelatedPartyThe relatedParty reference. A related party defines party or party role linked to a specific entity.
Show Source
-
@baseType: string
The base type of the related party reference or party role reference.
-
@schemaLocation: string
A URI to a JSON-Schema file that defines additional attributes and relationships.
-
@type(required): string
The class type of the related party reference or party role reference.
-
partyOrPartyRole(required):
partyOrPartyRole
A list of party or party roles associated with the related party reference or party role reference.
-
role: string
The role played by the related party or party role in the context of the specific entity it is linked to. Such as 'initiator', 'customer', 'salesAgent', 'user'.
Nested Schema : partyOrPartyRole
Type:
arrayA list of party or party roles associated with the related party reference or party role reference.
Show Source
Nested Schema : TargetProductSchema
Type:
objectTitle:
TargetProductSchemaThe reference object to the schema and type of target product which is described by product specification.
Show Source
-
@schemaLocation(required): string
The URI of the schema that defines the target product schema.
-
@type(required): string
The class type of the target product schema.
Nested Schema : TargetProductSchemaOracle-allOf[1]
Type:
Show Source
object-
subType: string
The type or classification of the target product schema.
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:
objectTitle:
ErrorThe error resource.
Show Source
-
@schemaLocation: string
The URI of the schema that defines the error.
-
@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
The text that provides more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
The text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
The URL pointing to documentation describing the error.
-
status: string
The status of the error.
401 Response
Your request isn't authorized. The authentication credentials included with this request are missing or invalid.
Root Schema : Error
Type:
objectTitle:
ErrorThe error resource.
Show Source
-
@schemaLocation: string
The URI of the schema that defines the error.
-
@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
The text that provides more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
The text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
The URL pointing to documentation describing the error.
-
status: string
The status of the error.
404 Response
The resource with the specified URI couldn't be found.
Root Schema : Error
Type:
objectTitle:
ErrorThe error resource.
Show Source
-
@schemaLocation: string
The URI of the schema that defines the error.
-
@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
The text that provides more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
The text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
The URL pointing to documentation describing the error.
-
status: string
The status of the error.
405 Response
HTTP action specified in the request (DELETE, GET, POST, PUT) isn't supported for this request URI.
Root Schema : Error
Type:
objectTitle:
ErrorThe error resource.
Show Source
-
@schemaLocation: string
The URI of the schema that defines the error.
-
@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
The text that provides more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
The text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
The URL pointing to documentation describing the error.
-
status: string
The status of the error.
500 Response
The server encountered something unexpected that prevented it from completing the request.
Root Schema : Error
Type:
objectTitle:
ErrorThe error resource.
Show Source
-
@schemaLocation: string
The URI of the schema that defines the error.
-
@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
The text that provides more details and corrective actions related to the error. This can be shown to a client user.
-
reason(required): string
The text that explains the reason for error. This can be shown to a client user.
-
referenceError: string
The URL pointing to documentation describing the error.
-
status: string
The status of the error.
Examples
The following example shows how to update partially or fully a custom profile specification by submitting a PUT request on the REST resource using cURL
curl -H 'Authorization: Bearer <accessToken> -H PUT https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customProfileSpecification/idExample of Request Body
The following shows an example of the request body.
{
"id": "BuiltInCustSpec004",
"name": "Built In Cust Spec",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customProfileSpecification/BuiltInCustSpec004",
"version": "1.0",
"lifecycleStatus": "In design",
"created": "2021-06-01T09:17:41.000Z",
"createdBy": "booth",
"lastUpdate": "2021-06-01T09:27:26.108Z",
"lastUpdatedBy": "booth",
"@type": "CustomProfileSpecificationOracle",
"project": {
"id": "CustomProject",
"name": "CustomProject"
},
"customProfileSpecChar": [
{
"name": "Align Cycle 001",
"description": "The cycle charges apply and are applicable for recurring charges",
"valueType": "STRING",
"configurable": true,
"minCardinality": 0,
"maxCardinality": 1,
"customProfileSpecCharValue": [
{
"isDefault": true,
"valueType": "STRING",
"value": "Activation Day"
},
{
"isDefault": false,
"valueType": "STRING",
"value": "Subscription Day"
},
{
"isDefault": false,
"valueType": "STRING",
"value": "Suspense Day"
}
]
},
{
"name": "Discounts",
"description": "Application of discount based on the discount validity",
"configurable": true,
"minCardinality": 0,
"maxCardinality": 1,
"customProfileSpecCharRel": [
{
"id": "BuiltInCustSpec004",
"relationshipType": "AGGREGATION",
"name": "Discount to Mid Cycle for Cycle"
}
]
}
],
"profileType": "CHARGING_TERM"
}Example of Response Body
The following example shows the contents of the response body in JSON format.
{
"id": "BuiltInCustSpec004",
"name": "Built In Cust Spec",
"href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogReferenceManagement/v1/customProfileSpecification/BuiltInCustSpec004/BuiltInCustSpec004",
"version": "1.0",
"lifecycleStatus": "In design",
"created": "2021-06-01T09:17:41.000Z",
"createdBy": "booth",
"lastUpdate": "2021-06-03T12:54:51.386Z",
"lastUpdatedBy": "booth",
"@type": "CustomProfileSpecificationOracle",
"project": {
"id": "CustomProject",
"name": "CustomProject"
},
"customProfileSpecChar": [
{
"name": "Align Cycle 001",
"description": "The cycle charges apply and are applicable for recurring charges",
"valueType": "STRING",
"configurable": true,
"minCardinality": 0,
"maxCardinality": 1,
"customProfileSpecCharValue": [
{
"isDefault": true,
"valueType": "STRING",
"value": "Activation Day"
},
{
"isDefault": false,
"valueType": "STRING",
"value": "Subscription Day"
},
{
"isDefault": false,
"valueType": "STRING",
"value": "Suspense Day"
}
]
},
{
"name": "Discounts",
"description": "Application of discount based on the discount validity",
"configurable": true,
"minCardinality": 0,
"maxCardinality": 1,
"customProfileSpecCharRel": [
{
"relationshipType": "AGGREGATION",
"name": "Discount to Mid Cycle for Cycle"
}
]
}
],
"profileType": "CHARGING_TERM"
}