# Add a nearby place or transport link

`POST /lodging/pois` · Rivier · bookings

Add a nearby place or transport link; the distance is worked out from the coordinates when left out.

- Scope: bookings:admin
- Mcp: rivier_lodging_poi_create
- Sdk: bookings.poi.create
- Cli: bookings poi create

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "propertyId": {
      "type": "string",
      "format": "uuid"
    },
    "kind": {
      "type": "string",
      "enum": [
        "poi",
        "transport"
      ],
      "default": "poi"
    },
    "category": {
      "type": "string",
      "pattern": "^[a-z_]{2,40}$"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "lat": {
      "anyOf": [
        {
          "type": "number",
          "minimum": -90,
          "maximum": 90
        },
        {
          "type": "null"
        }
      ]
    },
    "lng": {
      "anyOf": [
        {
          "type": "number",
          "minimum": -180,
          "maximum": 180
        },
        {
          "type": "null"
        }
      ]
    },
    "distanceM": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 40000000
        },
        {
          "type": "null"
        }
      ]
    },
    "travelMode": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "walk",
            "bike",
            "drive",
            "transit"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "travelMinutes": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        {
          "type": "null"
        }
      ]
    },
    "content": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {
          "type": "string",
          "maxLength": 8000
        },
        "propertyNames": {
          "pattern": "^[A-Za-z]{1,32}$"
        }
      },
      "propertyNames": {
        "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
      },
      "default": {}
    },
    "position": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000,
      "default": 0
    }
  },
  "required": [
    "propertyId",
    "category",
    "name"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/lodging/pois' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "propertyId": "string",
  "category": "string",
  "name": "string"
}'
```
