Skip to content

goals/update_target

Endpoint#

PropertyValue
Typemutation
MethodPOST
Path/api/external/v1/goals/update_target
HandlerOperatelyWeb.Api.Goals.UpdateTarget

Authentication#

  • Requires a valid API token.
  • Requires a write-enabled token.
  • Read-only tokens return 403.

Inputs#

FieldTypeRequiredNullableDefault
goal_idid primitive (encoded as string)YesNo-
target_idid primitive (encoded as string)YesNo-
namestringNoYes-
start_valuefloatNoYes-
target_valuefloatNoYes-
unitstringNoYes-

Outputs#

FieldTypeRequiredNullable
successbooleanYesYes

cURL Example#

Copied
curl --request POST \
  --url "https://app.operately.com/api/external/v1/goals/update_target" \
  --header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
  --header "Content-Type: application/json" \
  --data '{"goal_id":"value", "name":"value", "start_value":12.34, "target_id":"value", "target_value":12.34, "unit":"value"}'

Response Example#

{
  "success": true
}