Skip to main content
POST
Create goal

Create Goal

Create a new goal (frequency_duration, opportunity, rating, or interval) for a treatment plan.

Headers

Request Body

The request body varies based on the goal type. All goals require a type field and treatmentPlanId.

Frequency/Duration Based Goal Example

Opportunity Based Goal Example

Rating Goal Example

Interval Goal Example

Field Descriptions

Common Fields (All Goal Types)

  • type (required): Goal type - “frequency_duration”, “opportunity”, “rating”, or “interval”
  • treatmentPlanId (required): Treatment plan public identifier
  • status (optional): Goal status
  • targetAchievementDate (optional): Target date for achieving the goal
  • baselineDate (optional): Date baseline measurements began

Frequency Duration Goal Fields

  • goalStatement (required): Description of the behavioral goal
  • targetMaladaptiveBehaviorName (optional): Name of the behavior to reduce
  • definition (optional): Operational definition of the behavior
  • instructions (optional): Instructions for data collection
  • progressSummary (optional): Summary of current progress
  • autoProgressToMaintenanceEnabled (optional): Auto-progress to maintenance phase
  • autoProgressToMasteredEnabled (optional): Auto-progress to mastered status
  • dataCollectionType (optional): Type of data collection method
  • baselineMetric (required): Baseline measurement criteria
  • successMetric (required): Success criteria
  • maintenanceMetric (required): Maintenance criteria

Opportunity Goal Fields

  • skillAcquisitionGoalType (required): Type of skill acquisition
  • goalStatement (required): Description of the skill goal
  • shortDescription (optional): Brief description
  • instructions (optional): Instructions for teaching/data collection
  • skillCategory (optional): Category of skill
  • minTrialsCount (optional): Minimum number of trials per session
  • enabledOutcomes (required): Array of enabled trial outcomes
  • baselineMetric (required): Baseline measurement criteria
  • successMetric (required): Success criteria
  • maintenanceMetric (required): Maintenance criteria
  • childGoals (optional): Array of sub-goals for task analysis

Rating Goal Fields

  • title (required): Goal title
  • description (optional): Goal description
  • instructions (optional): Instructions for rating

Interval Goal Fields

  • title (required): Goal title
  • description (optional): Goal description
  • instructions (optional): Instructions for data collection
  • intervalDuration (required): Length of each interval in seconds (must be > 0)
  • intervalQuantity (required): Number of intervals per set (must be > 0)
  • sets (required): Number of sets (must be > 0)
  • intervalRecordingType (required): Type of interval recording
  • window (optional): Observation window in seconds (must be > 0)

Success Response (201)

Response varies by goal type. Example for Frequency Duration Goal:

Error Responses

400 - Validation Error

500 - Internal Server Error

Examples

cURL Example

JavaScript Example

Body

application/json
type
enum<string>
required
Available options:
frequency_duration
treatmentPlanId
string
required
Minimum string length: 1
goalStatement
string
required
Minimum string length: 1
baselineMetric
object
required
successMetric
object
required
maintenanceMetric
object
required
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
progressSummary
string | null
instructions
string | null
autoProgressToMaintenanceEnabled
boolean | null
default:false
autoProgressToMasteredEnabled
boolean | null
default:false
isBehavior
boolean | null
default:false
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