Update one rule detail

patch

/fscmRestApi/resources/11.13.18.05/costAccountingOverheadRules/{RuleId}/child/OverheadRuleDetails/{RuleDetailId}

Request

Path Parameters
Header Parameters
  • 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".
  • 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
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Title: End Date
    Date when this revision of the overhead rule becomes inactive. The transactions till this date use the overhead rate when applicable.
  • Title: From Period
    Cost book period from when the overhead rate is applicable.
  • Title: Rate
    Rate to use for calculation of overhead. It is either a number or a percentage depending on the cost basis defined for this overhead rule.
  • Title: Start Date
    Date when this revision of the overhead rule becomes active. The transactions on or after this date use the overhead rate when applicable.
  • Title: To Period
    Cost book period till when the overhead rate is applicable.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • 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".
  • 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.
Body ()
Root Schema : costAccountingOverheadRules-OverheadRuleDetails-item-response
Type: object
Show Source
  • Read Only: true
    Cost book to which the overhead rule applies.
  • Read Only: true
    Name of the cost organization to which the overhead rule applies.
  • Title: End Date
    Date when this revision of the overhead rule becomes inactive. The transactions till this date use the overhead rate when applicable.
  • Title: From Period
    Cost book period from when the overhead rate is applicable.
  • Read Only: true
    Indicates the status of the period from when the overhead rate is defined.
  • Links
  • Title: Meaning
    Read Only: true
    Maximum Length: 80
    Status of the rule revision that indicates if it's used by the cost processor for absorption of the overheads.
  • Title: Rate
    Rate to use for calculation of overhead. It is either a number or a percentage depending on the cost basis defined for this overhead rule.
  • Title: Revision Number
    Read Only: true
    Revision number of the rule detail. The system generates this value.
  • Title: Rule Detail ID
    Read Only: true
    Value that uniquely identifies the overhead rule detail. The system creates this value.
  • Title: Rule ID
    Read Only: true
    Value that uniquely identifies the overhead rule against which this rule detail is created.
  • Read Only: true
    Name of the rule that the user specifies. The rule name must be unique.
  • Title: Start Date
    Date when this revision of the overhead rule becomes active. The transactions on or after this date use the overhead rate when applicable.
  • Title: To Period
    Cost book period till when the overhead rate is applicable.
Back to Top

Examples

This example describes how to update an overhead rule detail.

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/child/OverheadRuleDetail/RuleDetailId"

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 updates.

{
  "EndDate" : "2019-01-01"
}

Example 1 Response Body

The following example includes the contents of the response body in JSON format:

{
  "RuleId" : 300100111253919,
  "RuleDetailId" : 300100111253920,
  "RevisionNumber" : 1,
  "StartDate" : "2017-01-01",
  "EndDate" : "2019-01-01",
  "Rate" : 10
}

Example 2 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.
{
    "ToPeriod": "11-21",
    "Rate": 15
}

Example 2 Response Body

The following example includes the contents of the response body in JSON format:
{
    "RuleId": 300100549680658,
    "RuleDetailId": 300100549680663,
    "RevisionNumber": 1,
    "StartDate": "2021-11-01",
    "EndDate": "2021-11-30",
    "Rate": 15,
    "FromPeriod": "11-21",
    "ToPeriod": "11-21",
    "FromPeriodStatus": "Open",
    "RuleName": "Demo Rule 1",
    "CostOrganizationName": "Auto1-CO",
    "CostBook": "PAC BOOK 1",
    "ProcessedFlagMeaning": "Pending",
    "links": [
        {
            "rel": "self",
            "href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/child/OverheadRuleDetails/300100549680663",
            "name": "OverheadRuleDetails",
            "kind": "item"
        },
        {
            "rel": "canonical",
            "href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658/child/OverheadRuleDetails/300100549680663",
            "name": "OverheadRuleDetails",
            "kind": "item"
        },
        {
            "rel": "parent",
            "href": "https://server/fscmRestApi/resources/version/costAccountingOverheadRules/300100549680658",
            "name": "costAccountingOverheadRules",
            "kind": "item"
        }
    ]
}
Back to Top