Spend Classification Sustainability Rules
spendClassificationSustainabilityRules Based on 26C
Create, change, delete and look up Spend Classification Sustainability Rules, with rule conditions.
- Operations
- GET (list)GET (one)POST (create)PATCH (update)DELETE
- Record key
RuleId- Required on create
ActionTypeRankRuleIdRuleName- At a glance
- 26 fields0 finders1 children
Try it
Only attributes Oracle marks as searchable are offered.
GET /fscmRestApi/resources/11.13.18.05/spendClassificationSustainabilityRules?fields=ActionOnAttribute,ActionOnAttributeCode,ActionType,ActivityClassification,ActivityClassificationId&limit=25&onlyData=true
{
"items": [
{
"ActionOnAttribute": "<string, max 80>",
"ActionOnAttributeCode": "ORA_POI_CUSTOM1",
"ActionType": "<string, max 30>",
"ActivityClassification": "<string, max 2000>",
"ActivityClassificationId": "<string, max 100>"
}
],
"count": 25,
"hasMore": true,
"limit": 25,
"offset": 0
}Shapes and placeholders, not real data. Replace https://<your-pod> and the login with your own: this site never sees them. Based on Oracle's 26C REST specification.
Fields 26
| Attribute | Type | Use |
|---|---|---|
ActionOnAttribute | text · max 80 | Read-onlySearchable |
ActionOnAttributeCode | text · max 100 · default ORA_POI_CUSTOM1 | Optional on createUpdatableSearchable |
ActionType | text · max 30 | Required on createUpdatableSearchable |
ActivityClassification | text · max 2000 | Read-onlySearchable |
ActivityClassificationId | text · max 100 | Optional on createUpdatableSearchable |
ApplicableDatasets | text · max 1000 | Optional on createUpdatableSearchable |
ApplicableKnowledgebases | text · max 1000 | Optional on createUpdatableSearchable |
AssignToAttribute | text · max 80 | Read-onlySearchable |
AssignToAttributeCode | text · max 100 | Optional on createUpdatableSearchable |
AssignmentType | text · max 80 | Read-onlySearchable |
AssignmentTypeCode | text · max 100 · default ORA_POI_CONSTANT | Optional on createUpdatableSearchable |
ConditionType | text · max 30 | Optional on createUpdatableSearchable |
DatasetsScope | text · max 30 · default ALL | Optional on createUpdatableSearchable |
Description | text · max 2000 | Optional on createUpdatableSearchable |
EndDate | date | Optional on createUpdatableSearchable |
EntityId | number · default 2 | Optional on createUpdatableSearchable |
KnowledgebaseScope | text · max 30 · default ALL | Optional on createUpdatableSearchable |
LastUsedDate | date-time | Optional on createUpdatableSearchable |
Rank | number | Required on createUpdatableSearchable |
RuleId | number | Required on createSearchable |
RuleName | text · max 200 | Required on createUpdatableSearchable |
RuleType | text · max 30 | Optional on createUpdatableSearchable |
Source | text · max 80 | Read-onlySearchable |
StartDate | date | Optional on createUpdatableSearchable |
Status | text · max 1 | Read-onlySearchable |
StopRule | text · max 3 · default Y | Optional on createUpdatableSearchable |
Names, types, labels and flags from Oracle's REST specification (26C). Flexfield and custom attributes vary by pod: check /describe for yours.
Check a payload
Checked in your browser only; nothing you paste is sent anywhere. Checks names and flags, not values.
Children 1
Child resources sit under one record: /fscmRestApi/resources/11.13.18.05/spendClassificationSustainabilityRules/{RuleId}/child/<name>. Add them to a GET with expand.
ruleConditionsGET · POST · PATCH · DELETE Rule Conditions · 6 fieldsAttributeCodeAttributeValueOperatorCodeOperatorValueRuleConditionIdValue
Use in AI Agent Studio
- Point a Business Object or REST tool at
/fscmRestApi/resources/11.13.18.05/spendClassificationSustainabilityRulesand ask only for the fields the agent needs withfields=. Big responses cost tokens and slow the agent. - Narrow with
q=on searchable fields and a smalllimit; for a count usetotalResults=true&limit=1. - Call once and pass the result on to later steps rather than calling the same endpoint again.
- This resource can change data. Put a human approval step before any create, update, delete or action call.
More in For Builders.
Pitfalls
- Attribute names are case-sensitive in
q,fieldsand bodies:ActionOnAttributeCode, notactiononattributecode. - 6 fields are read-only: sending them in POST or PATCH fails or is ignored. The builder leaves them out.
- Send dates as
YYYY-MM-DD; date-time fields take ISO 8601 with a time zone. - A list returns 25 rows unless you set
limit; readhasMoreand moveoffsetto page through. - Text fields have maximum lengths (shown in the field table). Longer values are rejected.