Command Palette

Search for a command to run...

Log In

Create a Goal for a Participant

post/public/v1/participants/{participant}/goals
  • Authorizationstringrequired

    Bearer authentication header of the form Bearer <token>, where <token> is your API key. See How to set up an API key.

  • participantstringrequired

    The participant UUID

Body

application/json
  • namestringrequiredmax length 512
  • statusenum<string> | null
    Available options:achievedin_progressunattainable
  • goal_typeenum<string> | null
    Available options:long_termmedium_termshort_term
  • descriptionstring | nullmax length 65535

    Limited to 65535 bytes.

  • achievement_strategystring | nullmax length 65535

    Limited to 65535 bytes.

  • barriersstring | nullmax length 65535

    Limited to 65535 bytes.

  • plansobject[] | nullmax items 100
    ▶Show 1 child attributes
    • idstringrequired

Response

200application/json

ParticipantGoalResource

  • dataobjectrequired
    ▶Show 10 child attributes
    • idstringrequired
      Example:g1o2a3l4-d5e6-47f8-9a0b-1c2d3e4f5a6b
    • namestringrequired
      Example:Improve social interactions
    • goal_typestring | nullrequired
      Example:short_term
    • descriptionstring | nullrequired
      Example:Participant wants to improve their social skills
    • achievement_strategystring | nullrequired
      Example:Attend weekly social groups
    • barriersstring | nullrequired
      Example:Anxiety in group settings
    • statusstringrequired
      Example:active
    • achieved_atstring | nullrequired
      Example:2024-06-15T10:30:00+00:00
    • archived_atstring | nullrequired
      Example:2024-01-15T10:30:00+00:00
    • created_atstringrequired
      Example:2024-01-15T10:30:00+00:00
  • 401Unauthenticated
  • 403Authorization error
  • 404Not found
  • 422Validation error