Update one rule

patch

/fscmRestApi/resources/11.13.18.05/spendClassificationRules/{RuleId}

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
Nested Schema : Rule Conditions
Type: array
Title: Rule Conditions
The Rule Conditions resource manages the conditions for rules in Oracle Fusion Spend Classification Cloud.
Show Source
Nested Schema : spendClassificationRules-ruleConditions-item-patch-request
Type: object
Show Source
  • Maximum Length: 100
    Abbreviation that indicates the attribute used to define a condition.
  • Maximum Length: 30
    Abbreviation that indicates the operator used to define a condition.
  • Maximum Length: 2000
    Value that indicates the string used to define the condition.
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 : spendClassificationRules-item-response
Type: object
Show Source
Nested Schema : Rule Conditions
Type: array
Title: Rule Conditions
The Rule Conditions resource manages the conditions for rules in Oracle Fusion Spend Classification Cloud.
Show Source
Nested Schema : spendClassificationRules-ruleConditions-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to update rule properties.

Example cURL Command

Use the following cURL command to submit a request on the REST resource.

curl -u user:password -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -X PATCH -d 'request payload' https://servername/fscmRestApi/resources/11.13.18.05/spendClassificationRules/{RuleId}

Example Request Body

The following example includes the contents of the request body in JSON format.

"{
    ""StartDate"": ""2021-03-01"",
    ""EndDate"": ""2021-04-01"",
}"

Example Response Body

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

"{
    ""RuleId"": 4006,
    ""RuleName"": ""RuleTATA1053"",
    ""Description"": ""RuleTATA10445"",
    ""RuleType"": ""POST"",
    ""Status"": null,
    ""StartDate"": ""2021-02-01"",
    ""EndDate"": ""2021-03-01"",
    ""LastUsedDate"": null,
    ""ActionType"": ""EXCLUDE"",
    ""ActionOnAttributeCode"": ""ORA_POI_ITEM_CODE"",
    ""ActionOnAttribute"": null,
    ""AssignmentTypeCode"": ""CONSTANT"",
    ""AssignmentType"": null,
    ""AssignToAttributeCode"": null,
    ""AssignToAttribute"": null,
    ""AssignToConstant"": ""AS18940"",
    ""DatasetsScope"": ""LIST"",
    ""ApplicableDatasets"": ""TATAPOSET1"",
    ""KnowledgebaseScope"": ""LIST"",
    ""ApplicableKnowledgebases"": ""TATAKWP01"",
    ""RuleSequence"": 278,
    ""RuleConditionType"": ""ALL"",
 ""links"" : [ {
  ...
 } ]
}"
Back to Top