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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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