Update one rule
patch
/fscmRestApi/resources/11.13.18.05/costAccountingOverheadRules/{RuleId}
Request
Path Parameters
-
RuleId(required): integer(int64)
Value that uniquely identifies the overhead rule. The system creates this value.
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.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
AbsorptionType: string
Title:
Absorption TypeMaximum Length:255Name of the absorption type that dictates the accounting behavior of the overhead rule. A list of accepted transaction group codes is defined in the lookup type CST_ABSORPTION_TYPE. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Costing Lookups task. -
AbsorptionTypeCode: string
Title:
Absorption TypeMaximum Length:3Abbreviation that identifies the absorption type. -
BasedOn: string
Title:
Based OnMaximum Length:30Value that specifies the cost element group according to which the base cost is derived when the cost basis is a percentage value. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Cost Element Group task. -
CategoryId: integer
(int64)
Title:
Category IDValue that uniquely identifies the item category. -
CategoryName: string
Title:
Category NameMaximum Length:2400Name of the item category where the overhead rule applies. The category must be part of the costing catalog. -
CostBasis: string
Title:
Cost BasisMaximum Length:255Basis used to calculate the overhead amount. A list of accepted transaction group codes is defined in the lookup type CST_COST_DRIVER. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Costing Lookups task. -
CostBasisCode: string
Title:
Cost BasisMaximum Length:18Abbreviation that identifies the cost basis. -
CostElement: string
Title:
Cost ElementMaximum Length:30Cost element to use when charging overhead. The cost element must be part of the common set or the cost organization set. -
CostElementId: integer
(int64)
Title:
Cost Element IDValue that uniquely identifies the cost element. -
ElementGroupId: integer
(int64)
Title:
Element Group IDValue that uniquely identifies the element group. -
ExpensePool: string
Title:
Expense PoolMaximum Length:30Expense pool to use when charging overhead. The expense pool must be part of the common set or the cost organization set. -
ExpensePoolId: integer
(int64)
Title:
Expense Pool IDValue that uniquely identifies the expense pool. -
InventoryOrganizationCode: string
Title:
Inventory OrganizationMaximum Length:18Abbreviation that identifies the inventory organization where the overhead rule applies. The specified inventory organization must be linked to the cost organization that is specified when creating this overhead rule. -
InventoryOrganizationId: integer
(int64)
Title:
Inventory Organization IDValue that uniquely identifies the inventory organization. -
Item: string
Title:
ItemMaximum Length:300Name of the item where the overhead rule applies. -
ItemId: integer
(int64)
Title:
Item IDValue that uniquely identifies the item. -
OverheadRuleDetails: array
Overhead Rule Details for Cost Accounting
Title:
Overhead Rule Details for Cost AccountingThe Overhead Rule Details for Cost Accounting resource allows you to create different overhead rates that apply during different time periods so that you can manage rates that change over time. -
ProcessedFlagCode: string
Maximum Length:
1Default Value:NStatus code of the rule revision that indicates whether it's used by the cost processor for overhead absorption. -
TransactionFlow: string
Title:
Transaction FlowMaximum Length:255Name of the transaction flow where the overhead rule applies. A list of accepted transaction group codes is defined in the lookup type CST_QUANTITY_FLOW. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Costing Lookups task. -
TransactionFlowCode: string
Title:
Transaction FlowMaximum Length:18Abbreviation that identifies the transaction flow. -
TransactionGroup: string
Title:
Transaction GroupMaximum Length:255Name of the transaction group that identifies the transaction types set where the overhead rule applies. A list of accepted transaction group codes is defined in the lookup type CST_TRANSACTION_GROUPS. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Costing Lookups task. -
TransactionGroupId: integer
(int64)
Title:
Transaction Group IDValue that uniquely identifies the transaction group. -
TransactionType: string
Title:
Transaction TypeMaximum Length:255Name of the transaction type where the overhead rule applies. A list of accepted transaction type codes is defined in the view CST_ALL_TXN_TYPES_V. -
TransactionTypeId: integer
(int64)
Title:
Transaction Type IDValue that uniquely identifies the type of transaction.
Nested Schema : Overhead Rule Details for Cost Accounting
Type:
arrayTitle:
Overhead Rule Details for Cost AccountingThe Overhead Rule Details for Cost Accounting resource allows you to create different overhead rates that apply during different time periods so that you can manage rates that change over time.
Show Source
Nested Schema : costAccountingOverheadRules-OverheadRuleDetails-item-patch-request
Type:
Show Source
object-
EndDate: string
(date)
Title:
End DateDate when this revision of the overhead rule becomes inactive. The transactions till this date use the overhead rate when applicable. -
FromPeriod: string
Title:
From PeriodCost book period from when the overhead rate is applicable. -
FromPeriodStatusCode: string
Maximum Length:
80Indicates the status code for the period in which the overhead rate is defined for PAC cost books. -
Rate: number
Title:
RateRate to use for calculation of overhead. It's either a number or a percentage depending on the cost basis defined for this overhead rule. -
StartDate: string
(date)
Title:
Start DateDate when this revision of the overhead rule becomes active. The transactions on or after this date use the overhead rate when applicable. -
ToPeriod: string
Title:
To PeriodCost book period till when the overhead rate is applicable. -
ToPeriodStatusCode: string
Indicates the status code for the period up to which the overhead rate is defined for PAC cost books.
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 : costAccountingOverheadRules-item-response
Type:
Show Source
object-
AbsorptionType: string
Title:
Absorption TypeMaximum Length:255Name of the absorption type that dictates the accounting behavior of the overhead rule. A list of accepted transaction group codes is defined in the lookup type CST_ABSORPTION_TYPE. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Costing Lookups task. -
AbsorptionTypeCode: string
Title:
Absorption TypeMaximum Length:3Abbreviation that identifies the absorption type. -
BasedOn: string
Title:
Based OnMaximum Length:30Value that specifies the cost element group according to which the base cost is derived when the cost basis is a percentage value. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Cost Element Group task. -
CategoryId: integer
(int64)
Title:
Category IDValue that uniquely identifies the item category. -
CategoryName: string
Title:
Category NameMaximum Length:2400Name of the item category where the overhead rule applies. The category must be part of the costing catalog. -
CostBasis: string
Title:
Cost BasisMaximum Length:255Basis used to calculate the overhead amount. A list of accepted transaction group codes is defined in the lookup type CST_COST_DRIVER. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Costing Lookups task. -
CostBasisCode: string
Title:
Cost BasisMaximum Length:18Abbreviation that identifies the cost basis. -
CostBook: string
Title:
Cost BookMaximum Length:30Cost book where the overhead rule applies. -
CostBookId: integer
(int64)
Title:
Cost Book IDValue that uniquely identifies the cost book. -
CostElement: string
Title:
Cost ElementMaximum Length:30Cost element to use when charging overhead. The cost element must be part of the common set or the cost organization set. -
CostElementId: integer
(int64)
Title:
Cost Element IDValue that uniquely identifies the cost element. -
CostOrganizationId: integer
(int64)
Title:
Cost Organization IDValue that uniquely identifies the cost organization. -
CostOrganizationName: string
Title:
Cost OrganizationMaximum Length:240Name of the cost organization where the overhead rule applies. -
ElementGroupId: integer
(int64)
Title:
Element Group IDValue that uniquely identifies the element group. -
ExpensePool: string
Title:
Expense PoolMaximum Length:30Expense pool to use when charging overhead. The expense pool must be part of the common set or the cost organization set. -
ExpensePoolId: integer
(int64)
Title:
Expense Pool IDValue that uniquely identifies the expense pool. -
InventoryOrganizationCode: string
Title:
Inventory OrganizationMaximum Length:18Abbreviation that identifies the inventory organization where the overhead rule applies. The specified inventory organization must be linked to the cost organization that is specified when creating this overhead rule. -
InventoryOrganizationId: integer
(int64)
Title:
Inventory Organization IDValue that uniquely identifies the inventory organization. -
InventoryOrganizationName: string
Read Only:
trueMaximum Length:240Name of the inventory organization. -
IsCPRunning: string
Read Only:
trueMaximum Length:255Indicates whether the cost processor is running for the given cost organization and cost book. -
IsRecordUpdatable: string
Read Only:
trueMaximum Length:255Indicates whether the rule attributes can be updated. -
Item: string
Title:
ItemMaximum Length:300Name of the item where the overhead rule applies. -
ItemId: integer
(int64)
Title:
Item IDValue that uniquely identifies the item. -
LastUpdateDate: string
(date-time)
Read Only:
trueIndicates the last updated date of the overhead rule. -
LatestRevisionEndDate: string
(date)
Read Only:
trueEnd date of the latest rule revision. -
LatestRevisionRate: number
Read Only:
trueRate of the latest rule revision. -
LatestRevisionStartDate: string
(date)
Read Only:
trueStart date of the latest rule revision. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
OverheadRuleDetails: array
Overhead Rule Details for Cost Accounting
Title:
Overhead Rule Details for Cost AccountingThe Overhead Rule Details for Cost Accounting resource allows you to create different overhead rates that apply during different time periods so that you can manage rates that change over time. -
PeriodicAverageFlag: boolean
Read Only:
trueMaximum Length:1Indicates if the cost book to which the overhead rule applies is a periodic average cost book. -
ProcessedFlagCode: string
Maximum Length:
1Default Value:NStatus code of the rule revision that indicates whether it's used by the cost processor for overhead absorption. -
ProcessedFlagMeaning: string
Title:
MeaningRead Only:trueMaximum Length:80Status of the rule that indicates if it's used by the cost processor for absorption of the overheads. -
RuleId: integer
(int64)
Title:
Rule IDRead Only:trueValue that uniquely identifies the overhead rule. The system creates this value. -
RuleName: string
Title:
Rule NameMaximum Length:30Name of the rule that the user specifies. The rule name must be unique. -
StatusCode: string
Read Only:
trueMaximum Length:255Status of the rule. The values are active and expired. -
TransactionFlow: string
Title:
Transaction FlowMaximum Length:255Name of the transaction flow where the overhead rule applies. A list of accepted transaction group codes is defined in the lookup type CST_QUANTITY_FLOW. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Costing Lookups task. -
TransactionFlowCode: string
Title:
Transaction FlowMaximum Length:18Abbreviation that identifies the transaction flow. -
TransactionGroup: string
Title:
Transaction GroupMaximum Length:255Name of the transaction group that identifies the transaction types set where the overhead rule applies. A list of accepted transaction group codes is defined in the lookup type CST_TRANSACTION_GROUPS. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Costing Lookups task. -
TransactionGroupId: integer
(int64)
Title:
Transaction Group IDValue that uniquely identifies the transaction group. -
TransactionType: string
Title:
Transaction TypeMaximum Length:255Name of the transaction type where the overhead rule applies. A list of accepted transaction type codes is defined in the view CST_ALL_TXN_TYPES_V. -
TransactionTypeId: integer
(int64)
Title:
Transaction Type IDValue that uniquely identifies the type of transaction.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : Overhead Rule Details for Cost Accounting
Type:
arrayTitle:
Overhead Rule Details for Cost AccountingThe Overhead Rule Details for Cost Accounting resource allows you to create different overhead rates that apply during different time periods so that you can manage rates that change over time.
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.
Nested Schema : costAccountingOverheadRules-OverheadRuleDetails-item-response
Type:
Show Source
object-
CostBook: string
Read Only:
trueCost book to which the overhead rule applies. -
CostOrganizationName: string
Read Only:
trueName of the cost organization to which the overhead rule applies. -
EndDate: string
(date)
Title:
End DateDate when this revision of the overhead rule becomes inactive. The transactions till this date use the overhead rate when applicable. -
FromPeriod: string
Title:
From PeriodCost book period from when the overhead rate is applicable. -
FromPeriodStatus: string
Read Only:
trueIndicates the status of the period from when the overhead rate is defined. -
FromPeriodStatusCode: string
Maximum Length:
80Indicates the status code for the period in which the overhead rate is defined for PAC cost books. -
IsDetailUpdatable: string
Read Only:
trueMaximum Length:255Indicates whether the rate detail attributes can be updated for non PAC book overhead rules. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ProcessedFlagMeaning: string
Title:
MeaningRead Only:trueMaximum Length:80Status of the rule revision that indicates if it's used by the cost processor for absorption of the overheads. -
Rate: number
Title:
RateRate to use for calculation of overhead. It's either a number or a percentage depending on the cost basis defined for this overhead rule. -
RevisionNumber: integer
Title:
Revision NumberRead Only:trueRevision number of the rule detail. The system generates this value. -
RuleDetailId: integer
(int64)
Title:
Rule Detail IDRead Only:trueValue that uniquely identifies the overhead rule detail. The system creates this value. -
RuleId: integer
(int64)
Title:
Rule IDRead Only:trueValue that uniquely identifies the overhead rule against which this rule detail is created. -
RuleName: string
Read Only:
trueName of the rule that the user specifies. The rule name must be unique. -
StartDate: string
(date)
Title:
Start DateDate when this revision of the overhead rule becomes active. The transactions on or after this date use the overhead rate when applicable. -
ToPeriod: string
Title:
To PeriodCost book period till when the overhead rate is applicable. -
ToPeriodStatusCode: string
Indicates the status code for the period up to which the overhead rate is defined for PAC cost books.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- OverheadRuleDetails
-
Operation: /fscmRestApi/resources/11.13.18.05/costAccountingOverheadRules/{RuleId}/child/OverheadRuleDetailsParameters:
- RuleId:
$request.path.RuleId
The Overhead Rule Details for Cost Accounting resource allows you to create different overhead rates that apply during different time periods so that you can manage rates that change over time. - RuleId:
Examples
This example describes how to update a cost accounting overhead rule.
Example cURL Command
Use the following cURL command to submit a request on the REST resource.
curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/costAccountingOverheadRule/RuleId "
Example Request Body
The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it updates.
{
"AbsorptionType" : "Expense"
}Example Response Body
The following example includes the contents of the response body in JSON format:
{
"RuleId" : 300100111253919,
"RuleName" : "Rule1",
"CostOrganizationName" : "Seattle",
"CostOrganizationId" : 999993000015516,
"CostBook" : "Primary",
"CostBookId" : 300100003455478,
"ExpensePool" : "Electrical Expense",
"ExpensePoolId" : 300100089911214,
"CostElement" : "Electricity",
"CostElementId" : 300100089911236,
"TransactionGroup" : "Purchase order transactions",
"TransactionGroupId" : 5,
"TransactionType" : "Purchase Order Receipt",
"TransactionTypeId" : 18,
"TransactionFlow" : "Receipt",
"TransactionFlowCode" : "RECEIPT",
"InventoryOrganizationCode" : null,
"InventoryOrganizationId" : null,
"CategoryName" : null,
"CategoryId" : null,
"Item" : null,
"ItemId" : null,
"CostBasis" : "Unit",
"CostBasisCode" : "UNIT",
"BasedOn" : null,
"ElementGroupId" : null,
"AbsorptionType" : "Expense",
"AbsorptionTypeCode" : "2",
"OverheadRuleDetails" : [ {
"RuleId" : 300100111253919,
"RuleDetailId" : 300100111253920,
"RevisionNumber" : 1,
"StartDate" : "2017-01-01",
"EndDate" : "4712-12-31",
"Rate" : 10
}
]
}