goals

Take this browser's goal down. The link is dead from this moment.

The athlete keeps the goal — only the page goes. Answers with the page as it last stood, so the caller can show what was taken down without a second read.

post/goals/{goal_id}/unpublish

Request

  • Base URL
    https://api.imperfect.co (the document declares no server; this is the origin it was published from)
  • URL
    https://api.imperfect.co/goals/{goal_id}/unpublish
  • Auth
    none declared

Path parameters

goal_idstring required

Response

Successful Response

namestring required
linestring nullable
localestring required
kind'destination' | 'practice' required
sportstring nullable
set_atstring date-time required
anchor_kind'event' | 'route' nullable
factorsobject[]
page_expected_untilstring date-time nullable
share_idstring required
slugstring required
target_datestring date required
target_precision'day' | 'month' | 'quarter' | 'season' required

Changes

    • warning

      removed the optional property // from the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property to the response with the status