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

# POST /api/v1/locations

`POST /api/v1/locations`

## 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.net/openfoodfacts/apis/open-food-facts-open-prices-rest-api.md) · [All operations](https://skmtc.net/openfoodfacts/apis/open-food-facts-open-prices-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openfoodfacts/open-food-facts-open-prices-rest-api/revisions/2315a270e4e6/schema)
