> For the complete documentation index, see [llms.txt](https://docs.guibo.travel/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guibo.travel/developers/dynamic-packaging-api/dynamic-packaging-or-destination-management.md).

# Dynamic Packaging | Destination Management

#### Destination Object

```json
{
    "link": "dddddd",
    "names": { "de": "Bad Tölz", "en": "Bad Toelz" },
    "location": { "lat": 47.760799, "lng": 11.557608 },
    "outgoingRouteCount": { "hiking": 3, "cycling": 1 }
}
```

`outgoingRouteCount` (number of outgoing routes per route icon) is only present in `GET /destination/{destination}`.

## A) Create destination

Create a new destination and saves it in the default destination library. If destination already exists within a radius of 5km, it will return the existing destination.

```bash
curl --location --request POST 'https://services.schneidergeo.com/content/dynamic-packaging/destination' \
--header 'Authorization: xxxxxx-xxxxxx-xxxxxx-xxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "names": {
        "de": "Bad Tölz",
        "en": "Bad Toelz"
    },
    "location": {
        "lat": 47.760799,
        "lng": 11.557608
    }
}'
```

Response: the created Destination.

Errors: `404 No default destination library configured` if the account has no destination library.

## B) List/search destinations

Returns all destinations of your account. With the optional `search` parameter the list is filtered by name (type-ahead search, substring match on the name in any language).

```bash
# All destinations
curl --location --request GET 'https://services.schneidergeo.com/content/dynamic-packaging/destinations' \
--header 'Authorization: xxxxxx-xxxxxx-xxxxxx-xxxxxx'

# Destinations whose name contains "tölz"
curl --location --request GET 'https://services.schneidergeo.com/content/dynamic-packaging/destinations?search=t%C3%B6lz' \
--header 'Authorization: xxxxxx-xxxxxx-xxxxxx-xxxxxx'
```

Response: array of Destination (without `outgoingRouteCount`).

Notes:

* Search terms shorter than 3 characters return an empty list.
* A search returns at most 20 results.

###

### C) Read destination

Returns a single destination including the number of outgoing routes per route icon.

```bash
curl --location --request GET 'https://services.schneidergeo.com/content/dynamic-packaging/destination/dddddd' \
--header 'Authorization: xxxxxx-xxxxxx-xxxxxx-xxxxxx'
```

Response: Destination with `outgoingRouteCount`.

Errors: `404 Destination not found`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.guibo.travel/developers/dynamic-packaging-api/dynamic-packaging-or-destination-management.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
