Description | Example | Return Message | Group(s)

EditTask

HTTP Request Format

PATCH api/task/{taskName}

To specify the schedule the command shall be sent to:

PATCH api/schedule/{scheduleName}/task/{taskName}

Description

The EditTask REST API command edits the attributes of a task in Astro Scheduler Engine. This command can be used to edit a single task attribute or multiple attributes of a single task. When editing multiple task attributes, all attributes will be applied to the task in the order in which they appear in the command with four exceptions. The Locked, Deferred, Assignmentsand OperationalStatus keywords get applied in the order listed here after all other keywords get applied.

All tasks are initially created with default attribute values unless otherwise specified.

Anytime a parent definition is edited, it will cause its children to be recreated. The newly created children will not have any assignments until the schedule is deconflicted.

The order of keywords should follow the order shown in the command description table below, as this follows the GUI field ordering and the order necessary for proper task creation.

{AttributeName}Description
General Parameters
DescriptionCreate a description for the given task
PrioritySet the priority of the given task based on the priority scale set by the user
PreferenceDefines the scheduling preference for a task
TimeslotPreferenceDefines the timeslot preference for a task
TimeslotDurationPreferenceDefines the timeslot duration preference for a task
GroupsDefines which groups the given task is in

AllowBonusing

Defines whether the task's assignments can also be used to assign other task's assignments via bonusing (Bonusing plug-in)

Rename

Changes a given task's TaskID to a new value specified by the user
STK Parameters
ObjectLineColorSets the color of the object line for this task
SatelliteOrbitOptionsDefines various orbit options for all associated satellites of this task
Scheduling Parameters
RecurringTypeSets the recurring type of the task
Scheduling - Non Recurring Parameters
NonRecurringDiscreteWindowsDefine discrete windows for non recurring tasks
NonRecurringPeriodicWindowsDefine periodic windows for non recurring tasks
NonRecurringTimeImportDefines windows for non recurring tasks via a file import
NonRecurringSTKReportsDefines windows for non recurring tasks via STK reports
Scheduling - Recurring Parameters
RecurringDiscreteWindowsDefine discrete windows for recurring tasks
RecurringPeriodicWindowsDefine periodic windows for recurring tasks
RecurringTimeImportDefines windows for recurring tasks via a file import
RecurringSTKReportsRepeatsDefines windows for non recurring tasks via STK reports
ApplyDurationExtensionDetermines whether timeslots will be extended for child tasks
RecurringConstraintsDefines the interval constraints for recurring tasks
Duration Parameters
DurationIsVariableAllowed
Defines whether the task's assignments are of a variable or fixed duration
DurationIsFullSlotRequired
Defines whether a task's assignment must be the same duration as its containing time slot
DurationIsMultipleSegmentsAllowed
Defines whether a task can only have a single assignment or multiple assignments
DurationIsResourceChangesAllowed
Defines whether the same resource possibility must be used amongst all of a task's assignments
DurationIsOverlapRequired
Defines whether the task is allowed to have time gaps between assignments or if the task's adjacent assignments must overlap
DurationFixed
Defines the task's fixed duration constraint
DurationMinSegment
Defines the task's minimum segment duration for tasks that allow multiple segments
DurationMinTotal
Defines the minimum combined duration of all of the task's assignments
DurationMaxTotal
Defines the maximum combined duration of all of the task's assignments
DurationOverlap
Defines the duration of overlap between adjacent assignments for the task
DurationMaxOverlapDefines the maximum duration of overlap between adjacent assignments for the task
Resource Parameters
RetainAssignmentsCan be specified to allow a task or it's children to retain their assignments when editing
ResourceFormulaDefines the resources that this task uses
UseCommonSetupTimeDefines whether a task must use the same setup time for all resources in that task
Resource - Per Possibility Parameters
SetPossibility PriorityDefines the priority for a task possibility
SetPossibility TimeslotDurationPreferenceDefines the timeslot duration preference for a task possibility
SetPossibility STKReportsDefines windows via STK reports for a task possibility
SetPossibility TimeImportsDefines windows via file import for a task possibility
SetPossibility TimesReportOverrides and explicitly sets the possibility's list of report times for the given task
SetPossibility TimesExactOverrides and explicitly sets the possibility's list of final timeslots for the given task
SetPossibility TimeslotDefines the start and stop times of a timeslot for a task possibility
SetPossibility CapacityTypeDefines the resource usage type for a task possibility
SetPossibility ResourceRateTypeDefines the resource usage rate type for a task possibility
SetPossibility ResourceAmountDefines the resource usage amount for a task possibility
SetPossibility ResourceRatePeriodDefines the resource usage rate period for a task possibility
SetPossibility ResourceAccommodationDefines the resource accommodation for a task possibility
SetPossibility ResourceMinSetupDefines the resource's minimum setup time for a task possibility
SetPossibility ResourceBreakdownDefines the resource's breakdown time for a task possibility
SetPossibility ResourceDurationOverrideDefines the resource's duration override for a task possibility
SetPossibility ResourceCostDefines the resource cost for a task possibility
SetPossibility ResourceSetupModesDefines the usable resource state setup modes for a task possibility
SetPossibility ResourceBodyModesDefines the usable resource state body modes for a task possibility
SetPossibility ResourceBreakdownModesDefines the usable resource state breakdown modes for a task possibility
SetPossibility ResourceRangeDefines the resource range constraint for a task possibility
SetPossibility ResourceAnimationDefines the resource animation type for a task possibility
Resource - Per Task Parameters
SetResourceDetails CapacityTypeDefines the resource usage type for all of the task's possibilities that use a specified resource
SetResourceDetails ResourceRateTypeDefines the resource usage rate type for all of the task's possibilities that use a specified resource
SetResourceDetails ResourceAmountDefines the resource usage amount for all of the task's possibilities that use a specified resource
SetResourceDetails ResourceRatePeriodDefines the resource usage rate period for all of the task's possibilities that use a specified resource
SetResourceDetails ResourceAccommodationDefines the resource accommodation for all of the task's possibilities that use a specified resource
SetResourceDetails ResourceMinSetupDefines the resource's minimum setup time for all of the task's possibilities that use a specified resource
SetResourceDetails ResourceBreakdownDefines the resource's breakdown time for all of the task's possibilities that use a specified resource
SetResourceDetails ResourceDurationOverrideDefines the resource's duration override for all of the task's possibilities that use a specified resource
SetResourceDetails ResourceCostDefines the resource cost for all of the task's possibilities that use a specified resource
SetResourceDetails ResourceSetupModesDefines the usable resource state setup modes for all of the task's possibilities that use a specified resource
SetResourceDetails ResourceBodyModesDefines the usable resource state body modes for all of the task's possibilities that use a specified resource
SetResourceDetails ResourceBreakdownModesDefines the usable resource state breakdown modes for all of the task's possibilities that use a specified resource
SetResourceDetails ResourceRangeDefines the resource range constraint for all of the task's possibilities that use a specified resource
SetResourceDetails ResourceAnimationDefines the resource animation type for all of the task's possibilities that use a specified resource
Dependency Parameters
SetAnchorDefines whether the task has to be the first or last task scheduled
DependenciesDefines the dependencies for a task
Notes Parameters
NotesDefine notes for the given task
Status Parameters
LockedDefines whether a task is locked
DeferredDefines whether a task is deferred
AssignmentsDefines the assignments for the task
OperationalStatusSets the OperationalStatus of a task
HideDefines whether a task is hidden from the gantt view

Examples

Changes the values of the Description, Priority, and RecurringDiscreteWindows attributes of the SSRDump task in the active schedule to "This is a test", 7, and 2002/05/20 12:00:00.456 2002/05/20 12:52:00 "Demo comment", respectively

PATCH api/task/SSRDump

Body:

{

"Description" : "This is a test",

"Priority" : "7",

"RecurringDiscreteWindows" : {

"Start" : "2002/05/20_12:00:00.456"

"Stop" : "2002/05/20_12:52:00",

"Comment" : "Demo comment" }

}

Return Message

If activated, a standard response for a successful HTTP response shall appear.

Group Membership

This command belongs to the following group(s):

Scheduler

Version

12.3