| Requires any of the roles: | Admin, TenantAdmin, WorkflowAdmin |
| GET | /automation | Gets single automation details. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AutomationId | query | string | Yes | Automation Id. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Version | form | integer | No | Api version |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Data | form | AutomationView | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| OrganizationId | form | Guid | No | |
| Name | form | string | No | |
| Event | form | EventType | No | |
| EventParameters | form | string | No | |
| ActionParameters | form | string | No | |
| Action | form | ActionType | No | |
| AlarmConfigId | form | Guid? | No | |
| TaskListTemplateId | form | Guid? | No | |
| TaskListAllottedTime | form | TimeSpan? | No |
| Name | Value |
|---|---|
| AccessExpired | 1 |
| PaymentDeclined | 2 |
| ServiceRating | 3 |
| ServiceProblemReport | 4 |
| SensorValue | 5 |
| TaskListCompleted | 6 |
| Access | 7 |
| TaskListNotStarted | 8 |
| ReservationCheckout | 9 |
| TaskListExpiring | 10 |
| ReservationCheckin | 11 |
| Name | Value |
|---|---|
| TaskList | 1 |
| Alarm | 2 |
| IoT | 3 |
| DeactivateAlarm | 4 |
| 5 |
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /automation 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"}}}