Create a rule detail
/fscmRestApi/resources/11.13.18.05/costAccountingOverheadRules/{RuleId}/child/OverheadRuleDetails
Request
-
RuleId(required): integer(int64)
The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
-
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.
- application/json
object-
EndDate: string
(date)
Title:
End Date -
FromPeriod: string
Title:
From Period -
FromPeriodStatusCode: string
Maximum Length:
80 -
Rate: number
Title:
Rate -
StartDate: string
(date)
Title:
Start Date -
ToPeriod: string
Title:
To Period -
ToPeriodStatusCode: string
Response
- application/json
Default Response
-
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.
object-
CostBook: string
Read Only:
true -
CostOrganizationName: string
Read Only:
true -
EndDate: string
(date)
Title:
End Date -
FromPeriod: string
Title:
From Period -
FromPeriodStatus: string
Read Only:
true -
FromPeriodStatusCode: string
Maximum Length:
80 -
IsDetailUpdatable: string
Read Only:
trueMaximum Length:255 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ProcessedFlagMeaning: string
Title:
MeaningRead Only:trueMaximum Length:80 -
Rate: number
Title:
Rate -
RevisionNumber: integer
Title:
Revision NumberRead Only:true -
RuleDetailId: integer
(int64)
Title:
Rule Detail IDRead Only:true -
RuleId: integer
(int64)
Title:
Rule IDRead Only:true -
RuleName: string
Read Only:
true -
StartDate: string
(date)
Title:
Start Date -
ToPeriod: string
Title:
To Period -
ToPeriodStatusCode: string
arrayLinksobject-
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.
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Examples
This example describes how to create one overhead rule detail.
Example cURL Command
Use the following cURL command to submit a request on the REST resource.
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' servername/fscmRestApi/resources/version/costAccountingOverheadRules/RuleId/child/OverheadRuleDetail"
Example 1 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 creates.
{
"StartDate" : "2019-01-02",
"Rate" : 20
}
Example 1 Response Body
The following example includes the contents of the response body in JSON format:
{
"RuleId": 300100111253919,
"RuleDetailId": 300100111253922,
"RevisionNumber": 2,
"StartDate": "2019-01-02",
"EndDate": "4712-12-31",
"Rate": 20
}
Example 2 Request Body
{
"FromPeriod": "12-21",
"ToPeriod": "12-21",
"Rate": 20
}Example 2 Response Body
{
"RuleId": 300100549680658,
"RuleDetailId": 300100549689814,
"RevisionNumber": 2,
"StartDate": "2021-12-01",
"EndDate": "2021-12-31",
"Rate": 20,
"FromPeriod": "12-21",
"ToPeriod": "12-21",
"FromPeriodStatus": "Never opened",
"RuleName": "Demo Rule 1",
"CostOrganizationName": "Auto1-CO",
"CostBook": "PAC BOOK 1",
"ProcessedFlagMeaning": null,
"links": [
{
"rel": "self",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/child/OverheadRuleDetails/300100549689814",
"name": "OverheadRuleDetails",
"kind": "item"
},
{
"rel": "canonical",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/child/OverheadRuleDetails/300100549689814",
"name": "OverheadRuleDetails",
"kind": "item"
},
{
"rel": "parent",
"href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658",
"name": "costAccountingOverheadRules",
"kind": "item"
}
]
}