Update a asset charge
patch
/fscmRestApi/resources/11.13.18.05/installedBaseAssets/{AssetId}/child/charges/{AssetChargeId}
Request
Path Parameters
-
AssetChargeId(required): integer(int64)
Value that uniquely identifies the asset charge. The application creates this value when it creates the asset charge. This attribute is read-only.
-
AssetId(required): integer(int64)
Value that uniquely identifies the asset. The application generates this value when it creates the asset. This attribute is read-only.
Header Parameters
-
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.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
AssetChargeId: integer
(int64)
Value that uniquely identifies the asset charge. The application creates this value when it creates the asset charge. This attribute is read-only.
-
AssetId: integer
(int64)
Value that uniquely identifies the asset that the application charges. The application uses the asset that the charge references to determine the value for this attribute. This attribute is read-only.
-
ChargeComponentsRollupFlag: boolean
Maximum Length:
1
Contains one of the following values: true or false. If true, then the charge component represents the aggregated value of the rollup charge. If false, then the charge component does not represent this value. The default value is false. -
ChargeDefinitionCode: string
Maximum Length:
30
Abbreviation that identifies the definition for the pricing charge. This attribute is required to define the asset charge. -
ChargesRollupFlag: boolean
Maximum Length:
1
Contains one of the following values: true or false. If true, then the pricing charge is a rollup charge. If false, then the pricing charge is not a rollup charge. The default value is false. -
CurrencyCode: string
Maximum Length:
15
Abbreviation that uniquely identifies the currency that the pricing charge uses. This attribute is required to define the charge for asset pricing. -
PricedQuantityUOMCode: string
Maximum Length:
3
Abbreviation that identifies the unit of measure for the quantity that the application prices. This attribute is required to define the charge for asset pricing. -
PriceElementCode: string
Maximum Length:
30
Abbreviation that identifies the pricing element of the pricing charge. This attribute is required to define the asset charge. -
PriceElementUsageCode: string
Maximum Length:
30
Abbreviation that indicates whether the unit price in the pricing element is the list price or the net price. -
PricePeriodicityCode: string
Maximum Length:
30
Abbreviation that identifies the recurring timeframe that the application uses to price the charge such as month or year. -
PrimaryFlag: boolean
Maximum Length:
1
Contains one of the following values: true or false. If true, then the charge is a primary charge. If false, then the charge is not a primary charge. The default value is false. -
TaxIncludedFlag: boolean
Maximum Length:
1
Contains one of the following values: true or false. If true, then the asset price includes taxes. If false, then the asset price does not include taxes. The default value is false. -
UnitPrice: number
Unit price of the asset. This is the current price of the asset or price that the organization used when it sold the asset.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context(required):
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(required):
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 : installedBaseAssets-charges-item-response
Type:
Show Source
object
-
AssetChargeId: integer
(int64)
Value that uniquely identifies the asset charge. The application creates this value when it creates the asset charge. This attribute is read-only.
-
AssetId: integer
(int64)
Value that uniquely identifies the asset that the application charges. The application uses the asset that the charge references to determine the value for this attribute. This attribute is read-only.
-
ChargeComponentsRollupFlag: boolean
Maximum Length:
1
Contains one of the following values: true or false. If true, then the charge component represents the aggregated value of the rollup charge. If false, then the charge component does not represent this value. The default value is false. -
ChargeDefinitionCode: string
Maximum Length:
30
Abbreviation that identifies the definition for the pricing charge. This attribute is required to define the asset charge. -
ChargesRollupFlag: boolean
Maximum Length:
1
Contains one of the following values: true or false. If true, then the pricing charge is a rollup charge. If false, then the pricing charge is not a rollup charge. The default value is false. -
CurrencyCode: string
Maximum Length:
15
Abbreviation that uniquely identifies the currency that the pricing charge uses. This attribute is required to define the charge for asset pricing. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
PricedQuantityUOMCode: string
Maximum Length:
3
Abbreviation that identifies the unit of measure for the quantity that the application prices. This attribute is required to define the charge for asset pricing. -
PriceElementCode: string
Maximum Length:
30
Abbreviation that identifies the pricing element of the pricing charge. This attribute is required to define the asset charge. -
PriceElementUsageCode: string
Maximum Length:
30
Abbreviation that indicates whether the unit price in the pricing element is the list price or the net price. -
PricePeriodicityCode: string
Maximum Length:
30
Abbreviation that identifies the recurring timeframe that the application uses to price the charge such as month or year. -
PrimaryFlag: boolean
Maximum Length:
1
Contains one of the following values: true or false. If true, then the charge is a primary charge. If false, then the charge is not a primary charge. The default value is false. -
TaxIncludedFlag: boolean
Maximum Length:
1
Contains one of the following values: true or false. If true, then the asset price includes taxes. If false, then the asset price does not include taxes. The default value is false. -
UnitPrice: number
Unit price of the asset. This is the current price of the asset or price that the organization used when it sold the asset.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed 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.