---
title: "Place 2d models for rooms and area geodata"
method: POST
path: "/{apiKey}/api/geodata/place2dmodel"
tags: ["Geodata"]
---

# Place 2d models for rooms and area geodata

`POST /{apiKey}/api/geodata/place2dmodel`

A 2d model must be available in the geodata referenced to before it can be placed  
  
## Oauth2 Roles ##  
 - Requires user to have one of the following roles: admin, editor, owner, service

## Path parameters

- `apiKey` string, required

## Query parameters

- `rectFitMode` union — A number of ways to fit an image to a given polygon.
  - 0 | 1
  - 'trendingAngle' | 'maxSize'

## Request body

- Placement2DModel[]
  - `id` string, nullable
  - `width` number, double
  - `height` number, double

## Response `200`

OK

## Other responses

- `400` — BadRequest
- `401` — Unauthorized. User needs to login first.
- `403` — Forbidden (Authenticed but now allowed to do the requested action)

---

[API](https://skmtc.net/mapsindoors/apis/integration-api.md) · [All operations](https://skmtc.net/mapsindoors/apis/integration-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mapsindoors/integration-api/revisions/7f2454dc70d5/schema)
