Skip to content

Create view style

POST /view-styles

Create a new view style for the organization. Optionally pass the id to store it under, for example the id of the view it was made from.

Request

Body

id
string<uuid>
Generated when left out

name
string
'View Style' when left out

parameters
object

labelRules
array [object ]

theme
object

byFilter
array [ ]

visibility
object

byFilter
array [ ]

Responses

201

Created

id
string<uuid>

name
string

parameters

schemaVersion
string
SpaceGraph schema version of the parameters

createdByUserId
[ "string", "null" ]<uuid>
Null when the view style was created with a token that belongs to no user

createdAt
string<date-time>

updatedAt
string<date-time>

deletedAt
string<date-time>
Set when the view style was deleted

layouts
array [ ]
The layouts holding a copy of the view style, which a floor's layout does only while it has moved or hidden labels on it. A floor can appear with several of its layouts. Only with includeLayouts

400

Bad Request

message
string
Error message: the body does not match the schema, or the id is taken by another view style