Create a subscription metric insight
post
/crmRestApi/resources/11.13.18.05/subscriptionProducts/{SubscriptionProductPuid}/child/subscriptionProductMetrics
Request
Path Parameters
-
SubscriptionProductPuid(required): string
The public unique identifier of the subscription product.
Header Parameters
-
Metadata-Context: string
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version: string
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
-
Upsert-Mode: string
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
BalanceUnitofMeasureCode: string
Title:
Balance Unit of Measure CodeMaximum Length:3The balance unit of measure class code of the subscription balance code. -
CoveredLevelPuid: string
Title:
Covered Level PUIDThe public unique identifier for the product association for the metric. -
Currency: string
Title:
CurrencyMaximum Length:15The currency of the preview subscription. -
MetricAmount: number
Title:
Metric AmountThe monetary metric values. -
MetricClassification: string
Title:
Metric ClassificationMaximum Length:120Classification assigned to the metric based on its evaluated value. -
MetricCount: integer
(int64)
Title:
Metric CountThe count-based metric values. -
MetricDate: string
(date)
Title:
Metric DateThe effective start date of the metric calculation. -
MetricError: string
Title:
Metric ErrorMaximum Length:4000The error for an metric. -
MetricExplainability: string
(byte)
Title:
Metric ExplanationThe explanation that describes how the metric insight or value was derived. -
MetricScore: number
Title:
Metric ScoreThe computed score or percentage value. -
MetricTypeCode: string
Title:
Metric Type CodeMaximum Length:64The metric code for different metric type. -
MetricUnit: string
Title:
Metric UnitMaximum Length:100The name of the metric component calculated. -
ObjectVersionNumber: integer
(int32)
The version number of the runtime metric detail record for concurrency control.
-
RecordSourceType: string
Title:
Record Source TypeMaximum Length:64Indicates whether the metric record is system-calculated or externally imported. -
RuntimeMetricDetailId: integer
(int64)
Title:
Runtime Metric Detail IdThe unique identifier for each metric detail result record. -
RuntimeMetricDetailPuid: string
Title:
Runtime Metric Detail PUIDMaximum Length:120The public unique identifier (PUID) of the associated runtime metric detail. -
RuntimeMetricId: integer
(int64)
Title:
Runtime Metric IdThe metric execution instance in Runtime Metrics. -
RuntimeMetricPuid: string
Title:
Runtime Metric PUIDPublic unique identifier (PUID) for the runtime metric record. -
SubscriptionProductPuid: string
Title:
Subscription Product PUIDAlternate key or persistent unique identifier of the subscription product on which the metric is computed.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
-
REST-Framework-Version:
The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Root Schema : subscriptionProducts-subscriptionProductMetrics-item-response
Type:
Show Source
object-
BalanceUnitofMeasureCode: string
Title:
Balance Unit of Measure CodeMaximum Length:3The balance unit of measure class code of the subscription balance code. -
CoveredLevelPuid: string
Title:
Covered Level PUIDThe public unique identifier for the product association for the metric. -
CreatedBy: string
Read Only:
trueMaximum Length:64The user who created the runtime metric detail record. -
CreationDate: string
(date-time)
Read Only:
trueThe date and time when the runtime metric detail was created. -
Currency: string
Title:
CurrencyMaximum Length:15The currency of the preview subscription. -
LastUpdateDate: string
(date-time)
Read Only:
trueThe date and time when the runtime metric detail was last updated. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64The user who last updated the runtime metric detail. -
LastUpdateLogin: string
Read Only:
trueMaximum Length:32The login session used to perform the last update on the runtime metric detail. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MetricAmount: number
Title:
Metric AmountThe monetary metric values. -
MetricClassification: string
Title:
Metric ClassificationMaximum Length:120Classification assigned to the metric based on its evaluated value. -
MetricCount: integer
(int64)
Title:
Metric CountThe count-based metric values. -
MetricDate: string
(date)
Title:
Metric DateThe effective start date of the metric calculation. -
MetricError: string
Title:
Metric ErrorMaximum Length:4000The error for an metric. -
MetricExplainability: string
(byte)
Title:
Metric ExplanationThe explanation that describes how the metric insight or value was derived. -
MetricScore: number
Title:
Metric ScoreThe computed score or percentage value. -
MetricTypeCode: string
Title:
Metric Type CodeMaximum Length:64The metric code for different metric type. -
MetricUnit: string
Title:
Metric UnitMaximum Length:100The name of the metric component calculated. -
ObjectVersionNumber: integer
(int32)
The version number of the runtime metric detail record for concurrency control.
-
RecordSourceType: string
Title:
Record Source TypeMaximum Length:64Indicates whether the metric record is system-calculated or externally imported. -
RuntimeMetricDetailId: integer
(int64)
Title:
Runtime Metric Detail IdThe unique identifier for each metric detail result record. -
RuntimeMetricDetailPuid: string
Title:
Runtime Metric Detail PUIDMaximum Length:120The public unique identifier (PUID) of the associated runtime metric detail. -
RuntimeMetricId: integer
(int64)
Title:
Runtime Metric IdThe metric execution instance in Runtime Metrics. -
RuntimeMetricPuid: string
Title:
Runtime Metric PUIDPublic unique identifier (PUID) for the runtime metric record. -
SubscriptionNumber: string
Title:
Subscription NumberRead Only:trueMaximum Length:120The subscription number on which metric is computed. -
SubscriptionProductId: integer
(int64)
Title:
Subscription Product IDRead Only:trueIdentifier of the subscription product on which the metric is computed. -
SubscriptionProductPuid: string
Title:
Subscription Product PUIDAlternate key or persistent unique identifier of the subscription product on which the metric is computed.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.