機械翻訳について

ルールの作成

post

/fscmRestApi/resources/11.13.18.05/spendClassificationRules

リクエスト

ヘッダー・パラメータ
  • REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 たとえば: Metadata-Context:sandbox="TrackEmployeeFeature".
  • RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
  • 次のいずれかの値が含まれます: trueまたはfalse。 trueの場合、サーバーは作成操作ではなくアップサート操作を実行します。 アップサート操作中、サーバーはペイロードに一致する既存のリソースを検索しようとします。 一致が見つかった場合、サーバーは新しいリソースを作成するのではなく、既存のリソースを更新します。 見つからないかfalse (デフォルト)の場合、サーバーは作成操作を実行します。 アップサート操作は有効日RESTリソースではサポートされていません。
サポートされているメディア・タイプ
リクエスト本文 - application/json ()
ルート・スキーマ : スキーマ
タイプ: object
ソースを表示
ネストされたスキーマ : ルール条件
タイプ: array
タイトル: Rule Conditions
ルール条件リソースは、Oracle Spend Classification Cloudのルールの条件を管理します。
ソースを表示
ネストされたスキーマ : spendClassificationRules-ruleConditions-item-post-request
タイプ: object
ソースを表示
トップに戻る

レスポンス

サポートされているメディア・タイプ

デフォルトのレスポンス

次の表では、このタスクに対するデフォルトのレスポンスについて説明します。
ヘッダー
  • REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 たとえば: Metadata-Context:sandbox="TrackEmployeeFeature".
  • RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
本文 ()
ルート・スキーマ : spendClassificationRules-item-response
タイプ: object
ソースを表示
ネストされたスキーマ : ルール条件
タイプ: array
タイトル: Rule Conditions
ルール条件リソースは、Oracle Spend Classification Cloudのルールの条件を管理します。
ソースを表示
ネストされたスキーマ : spendClassificationRules-ruleConditions-item-response
タイプ: object
ソースを表示
トップに戻る

この例では、ルールの作成方法について説明します。

cURLコマンドの例

次のcURLコマンドを使用して、RESTリソースに対するリクエストを送信します。

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

リクエスト本文の例

次の例では、リクエスト本文のコンテンツをJSON形式で含めます:

"{
    ""RuleName"": ""RuleTATA1053"",
    ""Description"": ""RuleTATA10445"",
    ""RuleType"": ""POST"",
    ""StartDate"": ""2021-02-01"",
    ""EndDate"": ""2021-03-01"",
    ""LastUsedDate"": null,
    ""ActionType"": ""EXCLUDE"",
    ""ActionOnAttributeCode"": ""ORA_POI_ITEM_CODE"",
    ""AssignmentTypeCode"": ""CONSTANT"",
    ""AssignToAttributeCode"": null,
    ""AssignToConstant"": ""AS18940"",
    ""DatasetsScope"": ""LIST"",
    ""ApplicableDatasets"": ""TATAPOSET1"",
    ""KnowledgebaseScope"": ""LIST"",
    ""ApplicableKnowledgebases"": ""TATAKWP01"",
    ""RuleSequence"": 278,
    ""RuleConditionType"": ""ALL"",
    ""ruleConditions"": [
        {
            ""AttributeCode"": ""ORA_POI_SUPPLIER_NAME"",
            ""OperatorCode"": ""LIKE"",
            ""Value"": ""SC_Supplier_02""
        }
    ]
}"

レスポンス本文の例

次の例には、レスポンス本文の内容がJSON形式で含まれます:
{
    "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",
    "ruleConditions": [
        {
            "AttributeCode": "ORA_POI_SUPPLIER_NAME",
            "AttributeValue": null,
            "OperatorCode": "LIKE",
            "OperatorValue": null,
            "Value": "SC_Supplier_02",
            "RuleConditionId": 6003,
            "links": [
                {
                    "rel": "self",
                    "href": "https://servername:443/fscmRestApi/resources/11.13.18.05/spendClassificationRules/4006/child/ruleConditions/6003",
                    "name": "ruleConditions",
                    "kind": "item",
                    "properties": {
                        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
                    }
                },
                {
                    "rel": "canonical",
                    "href": "https://servername:443/fscmRestApi/resources/11.13.18.05/spendClassificationRules/4006/child/ruleConditions/6003",
                    "name": "ruleConditions",
                    "kind": "item"
                },
                {
                    "rel": "parent",
                    "href": "https://servername:443/fscmRestApi/resources/11.13.18.05/spendClassificationRules/4006",
                    "name": "spendClassificationRules",
                    "kind": "item"
                }
            ]
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "https://servername:443/fscmRestApi/resources/11.13.18.05/spendClassificationRules/4006",
            "name": "spendClassificationRules",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername:443/fscmRestApi/resources/11.13.18.05/spendClassificationRules/4006",
            "name": "spendClassificationRules",
            "kind": "item"
        },
        {
            "rel": "child",
            "href": "https://servername:443/fscmRestApi/resources/11.13.18.05/spendClassificationRules/4006/child/ruleConditions",
            "name": "ruleConditions",
            "kind": "collection"
        }
    ]
}
「トップに戻る」