Create a floor plan
POSThttps://api.staging.powerapi.com/api/v1/businesses/:id/floor_plans
Create a floor plan
Request
Path Parameters
id stringrequired
- application/vnd.api+json
Bodyrequired
data object
Responses
- 201
Return created floor plan
- application/vnd.api+json
- Schema
- Example (auto)
Schema
data objectrequired
{
"data": {
"id": "string",
"type": "floor_plans",
"links": {
"self": "string"
},
"attributes": {
"name": "Main",
"height": 1000,
"width": 1000
}
}
}
Authorization: http
name: bearertype: httpscheme: bearerbearerFormat: JWT
- curl
- python
- go
- nodejs
- ruby
- java
- powershell
- CURL
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
}
}
}'
ResponseClear