| Requires any of the roles: | Admin, TenantAdmin, Receptionist |
| PUT | /thing/states/guestsetpoints/reset | Resets guest setpoints to default values for a specific space/thing. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ThingId | body | string | Yes | Thing Id (GUID). |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Version | form | integer | No | Api version |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Data | form | ThingStateView | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ThingId | form | Guid | No | |
| OrganizationId | form | Guid | No | |
| Properties | form | Dictionary<string, Object> | No | |
| States | form | Dictionary<string, List<StateValueView>> | No | |
| ChildThings | form | List<ThingStateView> | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /thing/states/guestsetpoints/reset HTTP/1.1
Host: api.4spaces.io
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"thingId":"00000000000000000000000000000000","version":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"data":{"thingId":"00000000000000000000000000000000","organizationId":"00000000000000000000000000000000","properties":{"String":{}},"states":{"String":[{"ts":-62135596800000,"value":"String"}]},"childThings":[{"thingId":"00000000000000000000000000000000","organizationId":"00000000000000000000000000000000","properties":{"String":{}},"states":{"String":[{"ts":-62135596800000,"value":"String"}]},"childThings":[{"thingId":"00000000000000000000000000000000","organizationId":"00000000000000000000000000000000","properties":{"String":{}},"states":{"String":[{"ts":-62135596800000,"value":"String"}]},"childThings":[{}]}]}]},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}