POST v1/layers/{environment}/{orgId}/{appId}?layerName={layerName}
Use this endpoint to create a new level for an application. Is important to note that this endpoint internally checks name for uniqueness and raises errors when not unique, or name is invalid.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
environment |
MaaS Environment where org and app ids are found. |
string |
Required |
orgId |
MaaS Organization unique identifier. |
integer |
Required |
appId |
MaaS App Id |
integer |
Required |
layerName |
Name of the new level been added. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
PropertyName | Description | Type | Additional information |
---|---|---|---|
name |
Name of the property or venue. |
string |
None. |
settings |
This property will be updated and retrieved in separate calls |
Collection of Setting |
None. |
enabled |
This fields allows you to see if a property is enabled / disabled |
boolean |
None. |
id |
Entity unique identifier. |
UUID |
None. |
type |
Type of entity this abstract class represents. |
EntityLinkType |
None. |
parent |
Parent entity, i.e. if this was a property (Venue), the company that the property belongs to. |
Entity |
None. |
Response Formats
application/json, text/json
{ "name": "sample string 1", "settings": [ { "systemId": "sample string 1", "group": "sample string 2", "id": "sample string 3", "name": "sample string 4", "value": "sample string 5" }, { "systemId": "sample string 1", "group": "sample string 2", "id": "sample string 3", "name": "sample string 4", "value": "sample string 5" } ], "enabled": true, "type": 1, "parent": { "type": 1 } }