Skip to main content
PATCH
Update goal by ID

Update Goal

Update a goal by goalId. Accepts different schema based on goal type (frequency_duration, opportunity, rating, or interval).

Path Parameters

  • goalId (required): The goal’s public identifier

Headers

Request Body

All fields are optional. Only include fields you want to update. The schema varies by goal type.

Frequency Duration Goal Fields

  • targetAchievementDate (optional): Target achievement date (ISO 8601 format)
  • baselineDate (optional): Baseline date (ISO 8601 format)
  • status (optional): Goal status
  • targetMaladaptiveBehaviorName (optional): Name of target maladaptive behavior
  • definition (optional): Goal definition
  • goalStatement (optional): Goal statement (minimum 1 character)
  • progressSummary (optional): Progress summary
  • instructions (optional): Instructions for the goal
  • autoProgressToMaintenanceEnabled (optional): Enable auto-progress to maintenance. Default: false
  • autoProgressToMasteredEnabled (optional): Enable auto-progress to mastered. Default: false
  • baselineMetric (optional): Baseline metric object
    • value (optional): Metric value
    • unit (optional): Unit of measurement
    • frequencyUnit (optional): Frequency unit
    • observationPeriod (optional): Observation period
    • observationPeriodUnit (optional): Observation period unit
    • successCriteria (optional): Success criteria
  • successMetric (optional): Success metric object (same structure as baselineMetric)
  • maintenanceMetric (optional): Maintenance metric object (same structure as baselineMetric)
  • dataCollectionType (optional): Data collection type

Opportunity Goal Fields

  • skillAcquisitionGoalType (optional): Skill acquisition goal type
  • goalStatement (optional): Goal statement (minimum 1 character)
  • shortDescription (optional): Short description
  • instructions (optional): Instructions for the goal
  • skillCategory (optional): Skill category
  • orderAmongSiblings (optional): Order among siblings. Default: 0
  • status (optional): Goal status
  • baselineDate (optional): Baseline date
  • targetAchievementDate (optional): Target achievement date
  • progressSummary (optional): Progress summary
  • minTrialsCount (optional): Minimum trials count
  • enabledOutcomes (optional): Array of enabled outcomes
  • autoProgressToMaintenanceEnabled (optional): Enable auto-progress to maintenance. Default: false
  • autoProgressToMasteredEnabled (optional): Enable auto-progress to mastered. Default: false
  • baselineMetric (optional): Baseline metric object (same structure as behavior goal)
  • successMetric (optional): Success metric object (same structure as behavior goal)
  • maintenanceMetric (optional): Maintenance metric object (same structure as behavior goal)
  • childGoals (optional): Array of child goals

Interval Goal Fields

  • title (optional): Goal title (minimum 1 character)
  • description (optional): Goal description (minimum 1 character)
  • instructions (optional): Instructions (minimum 1 character)
  • status (optional): Goal status
  • intervalDuration (optional): Interval duration (must be greater than 0)
  • intervalQuantity (optional): Interval quantity (must be greater than 0)
  • sets (optional): Number of sets (must be greater than 0)
  • intervalRecordingType (optional): Interval recording type
  • window (optional): Window (must be greater than 0)

Rating Goal Fields

  • title (optional): Goal title (minimum 1 character)
  • description (optional): Goal description (minimum 1 character)
  • instructions (optional): Instructions (minimum 1 character)
  • status (optional): Goal status

Success Response (200)

Returns the updated goal. Response schema varies by goal type (frequency_duration, opportunity, rating, or interval).

Frequency Duration Goal Response Example

Opportunity Goal Response Example

Interval Goal Response Example

Rating Goal Response Example

Error Responses

400 - Validation Error

500 - Internal Server Error

Examples

cURL Examples

Update Frequency Duration Goal

Update Opportunity Goal

Update Interval Goal

Update Rating Goal

JavaScript Example

Path Parameters

goalId
string
required

Body

application/json
targetAchievementDate
string<date-time> | null
baselineDate
string<date-time> | null
status
enum<string> | null
Available options:
BASELINE,
IN_MAINTENANCE,
MASTERED,
ARCHIVED,
IN_PROGRESS,
DISCONTINUED,
FUTURE,
ON_HOLD
targetMaladaptiveBehaviorName
string | null
definition
string | null
goalStatement
string | null
Minimum string length: 1
progressSummary
string | null
instructions
string | null
autoProgressToMaintenanceEnabled
boolean | null
default:false
autoProgressToMasteredEnabled
boolean | null
default:false
isBehavior
boolean | null
default:false
baselineMetric
object | null
successMetric
object | null
maintenanceMetric
object | null
dataCollectionType
enum<string> | null
Available options:
FREQUENCY_ONLY,
DURATION_ONLY,
FREQUENCY_AND_DURATION

Response

Successful response

type
string
required
publicId
string
required
dataCollectionType
enum<string>
required
Available options:
FREQUENCY_ONLY,
DURATION_ONLY,
FREQUENCY_AND_DURATION
addedToTreatmentPlanAt
string<date-time>
required
goalStatement
string
required
status
enum<string>
required
Available options:
BASELINE,
IN_MAINTENANCE,
MASTERED,
ARCHIVED,
IN_PROGRESS,
DISCONTINUED,
FUTURE,
ON_HOLD
autoProgressToMaintenanceEnabled
boolean
required
autoProgressToMasteredEnabled
boolean
required
baselineMetric
object
required
successMetric
object
required
maintenanceMetric
object
required
targetMaladaptiveBehaviorName
string | null
definition
string | null
instructions
string | null
baselineDate
string<date-time> | null
targetAchievementDate
string<date-time> | null
progressSummary
string | null
isBehavior
boolean
behaviorInstances
object[] | null