Properties
The following table lists the properties that can be used in the body of a properties-related request and/or are provided in the response body. (In the "Optional" column, if a default value is applicable, it is listed in angle brackets (< >).)
Resource: Properties
Resource: UiConfiguration
Properties URIs and Actions
The following table indicates the URIs that you can append to the root URI, along with the actions you can take, and possible return codes you can receive.
Property URIs and Actions
Example of Using GET for Properties
This example demonstrates how to obtain information about all properties that have already been created.
This example uses the following URI:
https://Jeff245.cloudpath.net/admin/publicApi/properties
where https://Jeff245.cloudpath.net/admin/publicApi is the root URI of the Cloudpath system being used (must include https, as shown).
The following table shows the required request headers for this URI example, with an example value of an active token that must be pasted into the Authorization header value:
Request Headers
| Key | Value |
|---|---|
| Content-type | application/json |
| Authorization | eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJqZWZmLnJob2RpZUBjb21tc2NvcGUuY29tIiwicm9sZVBrIjoiMjEwMDAiLCJhY2NvdW50QWRtaW5QayI6IjIiLCJhcGlLZXkiOiJaV2NjTGpQZUdZMGUiLCJpYXQiOjE1NzU1NzUxNTcsImV4cCI6MTU3NTU3NTQ1N30.2q4KTyDUevkAAz7mJyp529Be1-ip3EC8P06Xarmz5ao |
None required.
Use the GET action to send the request.Once the request is sent, you will receive a "Status: 200 OK" if the GET is successful. The response body provides information about all existing properties in your Cloudpath system. In this example, two properties exist.
{
"page": {
"page": 1,
"pageSize": 2,
"totalCount": 2
},
"contents": [
{
"guid": "Property-c7268d2a-a527-46df-9696-6975424a106b",
"name": "Building 1",
"address": "000 Lake View Road Lake Town, MN",
"description": "",
"enforceMaxUnits": false,
"maxUnits": 0,
"allowSeparateGuestSecret": true,
"ssids": [
"ssid1"
],
"managementName": "J. Smith",
"managementPhone": "0005550100",
"managementEmail": "js@ltapts.com",
"tenantPortalHelpText": " ",
"tenantPortalAnnouncements": "",
"sendEmail": true,
"sendSms": true,
"smsPassphraseChange": "",
"emailPassphraseSubject": "",
"emailPassphraseChange": "",
"smsAssignedUnit": "",
"emailAssignedUnitSubject": "",
"emailAssignedUnit": "",
"links": [
{
"rel": "self",
"href": "https://jeff245.cloudpath.net/admin/publicApi/properties/Property-c7268d2a-a527-46df-9696-6975424a106b",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "uiConfiguration",
"href": "https://jeff245.cloudpath.net/admin/publicApi/properties/Property-c7268d2a-a527-46df-9696-6975424a106b/uiConfiguration",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "dpskPool",
"href": "https://jeff245.cloudpath.net/admin/publicApi/dpskPools/AccountDpskPool-2eeda82a-418f-4116-a2e7-4c5e56f36d32",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "units",
"href": "https://jeff245.cloudpath.net/admin/publicApi/properties/Property-c7268d2a-a527-46df-9696-6975424a106b/units?page=1&pageSize=10{&filter,orderBy}",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
]
},
{
"guid": "Property-4567d598-5a6d-4847-b9d5-32f7ba34df8d",
"name": "Building 2",
"address": "200 Lake View Road Lake Town, MN",
"description": "",
"enforceMaxUnits": false,
"maxUnits": 0,
"allowSeparateGuestSecret": true,
"ssids": [
"ssid2"
],
"managementName": "J. Smith",
"managementPhone": "0005550100",
"managementEmail": "js@ltapts.com",
"tenantPortalHelpText": "",
"tenantPortalAnnouncements": "",
"sendEmail": true,
"sendSms": true,
"smsPassphraseChange": "",
"emailPassphraseSubject": "",
"emailPassphraseChange": "",
"smsAssignedUnit": "",
"emailAssignedUnitSubject": "",
"emailAssignedUnit": "",
"links": [
{
"rel": "self",
"href": "https://jeff245.cloudpath.net/admin/publicApi/properties/Property-4567d598-5a6d-4847-b9d5-32f7ba34df8d",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "uiConfiguration",
"href": "https://jeff245.cloudpath.net/admin/publicApi/properties/Property-4567d598-5a6d-4847-b9d5-32f7ba34df8d/uiConfiguration",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "dpskPool",
"href": "https://jeff245.cloudpath.net/admin/publicApi/dpskPools/AccountDpskPool-2a531247-b25c-4712-9554-311ab6aaee27",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "units",
"href": "https://jeff245.cloudpath.net/admin/publicApi/properties/Property-4567d598-5a6d-4847-b9d5-32f7ba34df8d/units?page=1&pageSize=10{&filter,orderBy}",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
]
}
]
}
Example of Using POST to Create a Property
This example demonstrates how to create a new property in your Cloudpath system by using the REST API POST call.
This example uses the following URI:
https://Jeff245.cloudpath.net/admin/publicApi/properties
where https://Jeff245.cloudpath.net/admin/publicApi is the root URI of the Cloudpath system being used (must include https, as shown).
The following table shows the required request headers for this URI example, with an example value of an active token that must be pasted into the Authorization header value:
Request Headers
| Key | Value |
|---|---|
| Content-type | application/json |
| Authorization | eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJqZWZmLnJob2RpZUBjb21tc2NvcGUuY29tIiwicm9sZVBrIjoiMjEwMDAiLCJhY2NvdW50QWRtaW5QayI6IjIiLCJhcGlLZXkiOiJaV2NjTGpQZUdZMGUiLCJpYXQiOjE1NzU1NzUxNTcsImV4cCI6MTU3NTU3NTQ1N30.2q4KTyDUevkAAz7mJyp529Be1-ip3EC8P06Xarmz5ao |
The following is an example of a request body for creating a property. You can refer to the preceding Resource tables for a list and descriptions of properties you can use to define your property. For instance, in this example, a property called "Building 3" is being created with the values provided in the body.
{
"name": "Building 3",
"address": "",
"description": "",
"enforceMaxUnits": false,
"maxUnits": 0,
"allowSeparateGuestSecret": true,
"managementName": "J. Smith",
"managementPhone": "0005550100",
"managementEmail": "js@smith.com",
"tenantPortalHelpText": "",
"tenantPortalAnnouncements": "",
"links": [
{
"rel": "dpskPool",
"href": "https://jeff245.cloudpath.net/admin/publicApi/dpskPools/AccountDpskPool-32eeb1b8-feaa-4cb0-a79f-796ec769ddf8"}
]
}
Use the POST action to send the request.
Once the request is sent, you will receive a "Status: 201 Created" if the POST is successful. You can see that a "guid" (a unique identifier for the newly created pool) is included in the response body.
{
"guid": "Property-5c2001d4-4d47-4c63-9588-c4f0a970d431",
"name": "Building 3",
"address": "",
"description": "",
"enforceMaxUnits": false,
"maxUnits": 0,
"allowSeparateGuestSecret": true,
"ssids": [
"ssid3"
],
"managementName": "J. Smith",
"managementPhone": "0005550100",
"managementEmail": "js@smith.com",
"tenantPortalHelpText": "",
"tenantPortalAnnouncements": "",
"sendEmail": true,
"sendSms": true,
"smsPassphraseChange": null,
"emailPassphraseSubject": null,
"emailPassphraseChange": null,
"smsAssignedUnit": null,
"emailAssignedUnitSubject": null,
"emailAssignedUnit": null,
"links": [
{
"rel": "self",
"href": "https://jeff245.cloudpath.net/admin/publicApi/properties/Property-5c2001d4-4d47-4c63-9588-c4f0a970d431",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "uiConfiguration",
"href": "https://jeff245.cloudpath.net/admin/publicApi/properties/Property-5c2001d4-4d47-4c63-9588-c4f0a970d431/uiConfiguration",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "dpskPool",
"href": "https://jeff245.cloudpath.net/admin/publicApi/dpskPools/AccountDpskPool-32eeb1b8-feaa-4cb0-a79f-796ec769ddf8",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
{
"rel": "units",
"href": "https://jeff245.cloudpath.net/admin/publicApi/properties/Property-5c2001d4-4d47-4c63-9588-c4f0a970d431/units?page=1&pageSize=10{&filter,orderBy}",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null
},
]
}