Preview a Goal Seek Adjustment
Evaluates goal seek using targetAccount and sourceAccount IDs but does not persist the proposed values.
The targetValue must be supplied as a raw, unscaled value.
converged=false is a valid 200 outcome. adjustmentMethod is case-insensitive and accepts
SamePercentage or SameAmount. All returned numeric values, including
targetValue, targetAccountValueBefore,
targetAccountValueAfter, adjustments.currentValue,
and adjustments.proposedValue, are raw and unscaled. Account and model
display scales are not applied.
Required Roles
Service Administrator
REST Resource
POST
/HyperionPlanning/rest/sm/v1/applications/{application}/models/{model}/action/goalseek
Request
Parameters:
Table 3-693 Parameters
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
scenario |
The scenario for which to run goal seek. Minimum length: 1 | Path | Yes | None |
targetAccount |
The target account ID whose value goal seek must achieve. Minimum length: 1 | Path | Yes | None |
targetPeriod |
The period in which goal seek must achieve the target value. Minimum length: 1 | Path | Yes | None |
targetValue |
The desired value for the target account. Always supply a raw, unscaled value; do not apply account or model display scaling. For example, supply 1000000 for an amount displayed as 1 when the display scale is Millions. | String | Yes | None |
sourceAccount |
The source account ID whose values goal seek adjusts. Minimum length: 1 | String | Yes | None |
startPeriod |
The first period in the source-account adjustment range. Minimum length: 1 | String | Yes | None |
endPeriod |
How to adjust source-account values: SamePercentage applies a common percentage change; SameAmount applies a common absolute change. | String | Yes | None |
Example URL:
https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M1/action/goalseek
Request body
{
"scenario": "Base",
"targetAccount": "v1750",
"targetPeriod": "2026",
"targetValue": 95.0,
"sourceAccount": "v1040",
"startPeriod": "2024",
"endPeriod": "2026",
"adjustmentMethod": "SamePercentage"
}
Response
Supported Media Types: application/json
Table 3-694 Parameters
| Name | Description |
|---|---|
targetAccount |
The target account ID in the response. |
targetValue |
The value for the target account. |
targetPeriod |
The period for which goal seek evaluated the target value. |
scenario |
The scenario used for the goal-seek calculation. |
sourceAccount |
The source account whose values goal seek proposed to adjust. |
targetAccountValueBefore |
Target account value before the proposed adjustment, raw and unscaled. |
targetAccountValueAfter |
Calculated target account value after the proposed adjustment, raw and unscaled. |
converged |
Whether the goal-seek calculation converged. |
adjustments |
Proposed goal-seek adjustments. |
adjustments[].period |
The period for which goal seek evaluated the target value. |
adjustments[].currentValue |
Current raw, unscaled value. |
adjustments[].proposedValue |
Proposed raw, unscaled value. |
message |
Message returned by the operation. |
Sample Response
{
"targetAccount": "Net Income",
"targetValue": 95.0,
"targetPeriod": "2026",
"scenario": "Base",
"sourceAccount": "Cost of Goods Sold",
"targetAccountValueBefore": 217.58706440402716,
"targetAccountValueAfter": 94.99999999999957,
"converged": true,
"adjustments": [
{
"period": "2024",
"currentValue": 1962.4026885120004,
"proposedValue": 2120.0325241775167
}
],
"message": "Goal seek completed successfully"
}
Table 3-695 Status Codes
| Code | Description |
|---|---|
400 |
Invalid request, malformed query JSON, invalid parameter, or service validation failure. |
401 |
Authentication is required. |
403 |
The authenticated caller is not authorized. |
404 |
Application or requested sub-resource was not found. |
422 |
The required scenario or period query parameter is missing or empty. |
500 |
Unexpected server error. |
Sample cURL Command
curl -X POST -u '<USERNAME>:<PASSWORD>' -H 'Content-Type: application/json' --data '{"scenario":"Base","targetAccount":"v1750","targetPeriod":"2026","targetValue":95.0,"sourceAccount":"v1040","startPeriod":"2024","endPeriod":"2026","adjustmentMethod":"SamePercentage"}' 'https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M1/action/goalseek'