Create a floor plan
POST/api/v1/businesses/:id/floor_plans
Create a floor plan
Request
Path Parameters
id stringrequired
- application/vnd.api+json
Body
required
data
object
type stringrequired
Possible values: [floor_plans
]
attributes
object
name string
height int32
Default value: 1000
Height of the floor plan in px (1000 = 10m)
width int32
Default value: 1000
Width of the floor plan in px (1000 = 10m)
Responses
- 201
Return created floor plan
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
data
object
required
id stringrequired
type stringrequired
Possible values: [floor_plans
]
links
object
required
self stringrequired
attributes
object
required
name string
Default value: Main
height int32
Default value: 1000
width int32
Default value: 1000
{
"data": {
"id": "string",
"type": "floor_plans",
"links": {
"self": "string"
},
"attributes": {
"name": "Main",
"height": 1000,
"width": 1000
}
}
}
Loading...