Viviot.Api

<back to all web services

GetAutomations

Requires Authentication
Requires any of the roles:Admin, TenantAdmin, WorkflowAdmin
The following routes are available for this service:
GET/automationsGets all automations for a business user organization.
GetAutomations Parameters:
NameParameterData TypeRequiredDescription
ActionqueryActionTypeNoAutomation action type filter

Allowable Values

  • TaskList
  • Alarm
  • IoT
  • DeactivateAlarm
  • Email
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
VersionformintegerNoApi version
ActionType Enum:
NameValue
TaskList1
Alarm2
IoT3
DeactivateAlarm4
Email5
AutomationsResponse Parameters:
NameParameterData TypeRequiredDescription
DataformList<AutomationView>No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
AutomationView Parameters:
NameParameterData TypeRequiredDescription
IdformGuidNo
OrganizationIdformGuidNo
NameformstringNo
EventformEventTypeNo
EventParametersformstringNo
ActionParametersformstringNo
ActionformActionTypeNo
AlarmConfigIdformGuid?No
TaskListTemplateIdformGuid?No
TaskListAllottedTimeformTimeSpan?No
EventType Enum:
NameValue
AccessExpired1
PaymentDeclined2
ServiceRating3
ServiceProblemReport4
SensorValue5
TaskListCompleted6
Access7
TaskListNotStarted8
ReservationCheckout9
TaskListExpiring10
ReservationCheckin11

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /automations HTTP/1.1 
Host: api.4spaces.io 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"data":[{"id":"00000000000000000000000000000000","organizationId":"00000000000000000000000000000000","name":"String","event":1,"eventParameters":"String","actionParameters":"String","action":1,"alarmConfigId":"00000000000000000000000000000000","taskListTemplateId":"00000000000000000000000000000000","taskListAllottedTime":"00:00:00"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}