updateGoal Mutation
Updates a Hive goal. Display progress supports null, number, or actions measurements; display number also supports overdue; display status requires status measurement. Actions or overdue use actions/projects units, number uses currency/custom/percentage, and status uses subGoals. Unit values and symbols follow createGoal's rules. Ongoing, recurring, and fixed date-range modes are mutually exclusive; a fixed range requires startDate before endDate. Action and project IDs require their corresponding unit.
Arguments
#
currentValueDate
Reporting timestamp for currentValue; requires currentValue. Omit to record the update time.
historicalValues
Up to 100 dated values for a manual number goal. Corrects the same goal/timestamp without changing currentValue; recorded-at audit metadata is retained.
actionIds
Action IDs to track (requires measurementType actions/overdue + measurementUnit actions + measurementUnitValue 'actions')
addActionIds
Action IDs to add while preserving concurrent links through a guarded save (same measurement requirements as actionIds)
removeActionIds
Action IDs to remove while preserving other concurrent links through a guarded save
projectIds
Project IDs to track (requires measurementType actions/overdue + measurementUnit projects + measurementUnitValue 'projects')
associatedProjectIds
Project IDs associated with the goal for dashboard/reporting filters (not measurement; independent of projectIds)
measurementType
How goal value is measured - affects which measurementUnit values are valid
measurementUnitValue
Specific value for unit - must match measurementUnit (e.g., 'USD', 'actions', 'projects')
isFixedLimit
Whether this number goal uses a fixed limit instead of expected progress by today.
statusWarningValue
Boundary above or below the fixed goal value. Values between them are at risk, including both boundaries.
expectedSourceWidgetId
Source observed by the editor; when supplied, reject a source change if it no longer matches. Null means no source.
expectedCurrentValueRevision
Reject a linked manual override if a current-value write occurred since this observed revision. Null or omission disables the client-revision check; legacy goals use zero.
Response
#
Returns Goal .
Example
#
updateGLAccount
updateHoliday