Cost Scenarios
costScenarios Based on 26C
Create, change and look up Cost Scenarios, with work definition criteria details.
The record key costScenariosUniqID is a generated hash. Take it from the record's links (rel self) in a GET response; never build it yourself.
- Operations
- GET (list)GET (one)POST (create)PATCH (update)
- Record key
costScenariosUniqID- Required on create
EffectiveStartDateScenarioNumber- At a glance
- 46 fields4 finders1 children
Try it
Only attributes Oracle marks as searchable are offered.
GET /fscmRestApi/resources/11.13.18.05/costScenarios?fields=AssignmentSetId,AssignmentSetName,Comments,CompletedCount,CostBookCode&limit=25&onlyData=true
{
"items": [
{
"AssignmentSetId": 0,
"AssignmentSetName": "<string, max 34>",
"Comments": "<string, max 1000>",
"CompletedCount": 0,
"CostBookCode": "<string, max 30>"
}
],
"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 46
| Attribute | Type | Use |
|---|---|---|
AssignmentSetId | number | Optional on createUpdatable |
AssignmentSetName | text · max 34 | Optional on createUpdatableSearchable |
Comments | text · max 1000 | Optional on createUpdatableSearchable |
CompletedCount | number | Optional on createSearchable |
CostBookCode | text · max 30 | Optional on createUpdatableSearchable |
CostBookDescription | text · max 240 | Optional on createUpdatableSearchable |
CostBookId | number · default -1 | Optional on createUpdatableSearchable |
CostOrgCode | text · max 150 | Optional on createUpdatableSearchable |
CostOrgId | number · default -1 | Optional on createUpdatableSearchable |
CostOrgName | text · max 240 | Optional on createUpdatableSearchable |
CreatedBy | text · max 64 | Read-onlySearchable |
CreationDate | date-time | Read-onlySearchable |
EffectiveStartDate | date | Required on createUpdatableSearchable |
EndTime | date-time | Optional on createSearchable |
EventStatusCode | text · max 30 · default SUCCESS | Read-onlySearchable |
ExplosionBasis | text · max 30 · default TOP_DOWN | Optional on createUpdatableSearchable |
ExplosionSequence | text · max 30 · default PCN | Optional on createUpdatableSearchable |
FailedCount | number | Optional on createSearchable |
LastUpdateDate | date-time | Read-onlySearchable |
LastUpdatedBy | text · max 64 | Read-onlySearchable |
OrganizationContext | text · max 30 | Optional on createUpdatable |
PeriodName | text · max 15 | Optional on createUpdatableSearchable |
PeriodicAverageFlag | yes/no · max 1 | Read-onlySearchable |
PrimaryBookFlag | yes/no · max 1 | Read-only |
ReasonCode | text · max 30 | Optional on createUpdatableSearchable |
RefreshWdFlag | yes/no · max 1 · default true | Optional on createUpdatableSearchable |
RollupGroupDescription | text · max 240 | Read-onlySearchable |
RollupGroupId | number · default -1 | Optional on createUpdatableSearchable |
RollupGroupName | text · max 80 | Optional on createUpdatableSearchable |
RollupScope | text · max 30 · default ALL_ITEMS | Optional on createUpdatableSearchable |
RuleSetName | text · max 80 | Optional on createUpdatableSearchable |
ScenarioEventDate | date-time | Optional on createSearchable |
ScenarioEventNumber | text · max 30 · default CREATE | Read-onlySearchable |
ScenarioEventType | text · max 30 · default CREATE | Read-onlySearchable |
ScenarioId | number | Read-onlySearchable |
ScenarioNumber | text · max 30 | Required on createSearchable |
ScenarioType | text · max 30 · default STANDARD | Read-onlySearchable |
SingleLevelRollupFlag | yes/no · max 1 · default false | Optional on createUpdatableSearchable |
StartTime | date-time | Optional on createSearchable |
StateCode | text · max 30 · default NEW | Optional on createUpdatableSearchable |
StatusCode | text · max 30 · default NEW | Optional on createUpdatableSearchable |
SupplyChainRollupFlag | yes/no · max 1 · default false | Optional on createUpdatable |
TotalCount | number | Optional on createSearchable |
TransferCostRuleSetId | number | Optional on createUpdatable |
WorkDefName | text · max 80 | Optional on createUpdatableSearchable |
WorkDefinitionNameId | number | 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.
Finders 4
Predefined searches: ?finder=Name;variable=value,variable2=value2. Pick one in Try it to build the call.
findByCostOrgCostBook·bindCostBookCodebindCostOrgNamefindByScenarioNumber·bindScenarioNumberfindUnpublishedByCostOrgCostBook·bindCostBookCodebindCostOrgNamegetUnPublishedScenarioByCostOrgId·bind_CostOrgId
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/costScenarios/{costScenariosUniqID}/child/<name>. Add them to a GET with expand.
WorkDefinitionCriteriaDetailsGET · POST · PATCH · DELETE Work Definition Criteria Details · 14 fieldsCategoryDescriptionCategoryIdCategoryNameCategorySetDescriptionCategorySetIdCategorySetNameInventoryItemIdItemDescriptionItemNumberResourceCodeResourceIdResourceNameResourceTypeWdCriterionDetailId
Use in AI Agent Studio
- Point a Business Object or REST tool at
/fscmRestApi/resources/11.13.18.05/costScenariosand ask only for the fields the agent needs withfields=. Big responses cost tokens and slow the agent. - Prefer a finder such as
findByCostOrgCostBookfor the agent's main search: its variables become clean tool parameters. - 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:AssignmentSetId, notassignmentsetid. - 12 fields are read-only: sending them in POST or PATCH fails or is ignored. The builder leaves them out.
onlyData=trueremoveslinks, and this resource's key only comes fromlinks. Leave it off when you need the key.- 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.