---
title: "Mark a goal as visited (sets status to \"visited\" and stamps the date)."
method: POST
path: "/v1/goals/{goalId}/mark-visited"
tags: ["Public API v1"]
---

# Mark a goal as visited (sets status to "visited" and stamps the date).

`POST /v1/goals/{goalId}/mark-visited`

## Request

- Base URL: `https://api.mynextadventure.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mynextadventure.cloud/v1/goals/{goalId}/mark-visited`
- Auth: API key in header `X-API-Key`

## Path parameters

- `goalId` string, required

## Request body

- MarkGoalVisitedV1Dto
  - `visitedDate` string, date-time: Defaults to "now" when omitted.

## Response `201`

- TravelGoalV1Dto
  - `id` string, required
  - `userId` string, required
  - `name` string, required
  - `description` string
  - `notes` string
  - `location` GoalLocationV1Dto
    - `name` string
    - `formattedAddress` string
    - `coordinates` GoalCoordinatesV1Dto
      - `lat` number, required
      - `lng` number, required
    - `googlePlaceId` string
  - `country` string
  - `region` string
  - `type` 'country' | 'region' | 'city' | 'place' | 'experience', required
  - `status` 'dreaming' | 'planning' | 'visited', required
  - `priority` 'someday' | 'soon' | 'must_do', required
  - `tags` string[]
  - `imageUrl` string
  - `userUploadedImageUrl` string
  - `links` GoalLinkV1Dto[]
    - `url` string, required: URL the link points to.
    - `title` string
    - `description` string
    - `imageUrl` string
  - `bestTimeToVisit` string[]
  - `estimatedBudget` number
  - `currency` string
  - `estimatedDuration` string
  - `linkedTripId` string: Trip id this goal is currently linked to (when status=planning or visited).
  - `linkedTripName` string
  - `visitedDate` string, date-time
  - `collectionIds` string[]
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `404`: Goal not found or not owned by caller.

---

[API](https://skmtc.dev/mynextadventure/apis/mynextadventure-public-api.md) · [All operations](https://skmtc.dev/mynextadventure/apis/mynextadventure-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mynextadventure/apis/mynextadventure-public-api/revisions/a246114e73a0?raw)
