---
title: "POST /api/v1/locations"
method: POST
path: "/api/v1/locations"
tags: ["locations"]
---

# POST /api/v1/locations

`POST /api/v1/locations`

## Request

- Base URL: `https://prices.openfoodfacts.org` (the document declares no server; this is the origin it was published from)
- URL: `https://prices.openfoodfacts.org/api/v1/locations`
- Auth: none declared

## Request body

- LocationCreate
  - `type` 'OSM' | 'ONLINE', required: * `OSM` - OSM * `ONLINE` - ONLINE
  - `osm_id` integer, nullable
  - `osm_type` union
    - 'NODE' | 'WAY' | 'RELATION': * `NODE` - NODE * `WAY` - WAY * `RELATION` - RELATION
    - ''
    - unknown
  - `website_url` string, uri, nullable

## Response `201`

- LocationCreate
  - `type` 'OSM' | 'ONLINE', required: * `OSM` - OSM * `ONLINE` - ONLINE
  - `osm_id` integer, nullable
  - `osm_type` union
    - 'NODE' | 'WAY' | 'RELATION': * `NODE` - NODE * `WAY` - WAY * `RELATION` - RELATION
    - ''
    - unknown
  - `website_url` string, uri, nullable

---

[API](https://skmtc.dev/openfoodfacts/apis/open-food-facts-open-prices-rest-api.md) - [All operations](https://skmtc.dev/openfoodfacts/apis/open-food-facts-open-prices-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openfoodfacts/apis/open-food-facts-open-prices-rest-api/revisions/d7c5d8b4c32e?raw)
