Skip to main content

Create a floor plan

POST 

https://api.staging.powerapi.com/api/v1/businesses/:id/floor_plans

Create a floor plan

Request

Path Parameters

    id stringrequired

Bodyrequired

    data object
    type stringrequired

    Possible values: [floor_plans]

    attributes object
    name string
    height int32

    Height of the floor plan in px (1000 = 10m)

    Default value: 1000
    width int32

    Width of the floor plan in px (1000 = 10m)

    Default value: 1000

Responses

Return created floor plan
Schema
    data objectrequired
    id stringrequired
    type stringrequired

    Possible values: [floor_plans]

    links objectrequired
    self stringrequired
    attributes objectrequired
    name string
    Default value: Main
    height int32
    Default value: 1000
    width int32
    Default value: 1000

Authorization: http

name: bearertype: httpscheme: bearerbearerFormat: JWT
curl -L 'https://api.staging.powerapi.com/api/v1/businesses/:id/floor_plans' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"data": {
"type": "floor_plans",
"attributes": {
"name": "string",
"height": 1000,
"width": 1000
}
}
}'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Parameters
— pathrequired
Body required
{
  "data": {
    "type": "floor_plans",
    "attributes": {
      "name": "string",
      "height": 1000,
      "width": 1000
    }
  }
}
ResponseClear

Click the Send API Request button above and see the response here!