Smart Agent Teams
EndpointsGoals

Delete Goal

Delete a goal. Child goals move up to the deleted goal's parent, and tasks linked to it are unlinked (`goal_id` becomes null); the tasks themselves are kept. Publishes `goal.deleted`.

DELETE
/api/companies/{company_id}/goals/{goal_id}

Delete a goal.

Child goals move up to the deleted goal's parent, and tasks linked to it are unlinked (goal_id becomes null); the tasks themselves are kept. Publishes goal.deleted.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

goal_id*Goal Id
Formatuuid
company_id*Company Id
Formatuuid

Response Body

Successful Response

curl -X DELETE "https://example.com/api/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/goals/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty