| Requires any of the roles: | Admin, TenantAdmin, AccessAdmin |
| GET | /actionlogs | Gets all action logs. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UserId | query | integer | No | The ID of the user that performed the action |
| Page | query | integer | Yes | The page number (first page = 1, second page = 2) |
| ItemsPerPage | query | integer | Yes | The number of items per page |
| BusinessUserId | query | integer | No | ID of the business user that performed the action |
| Action | query | integer | No | The action that was performed and logged |
| TargetThingId | query | string | No | ID of the thing that was the target of the action |
| TargetUserId | query | integer | No | ID of the targeted mobile user |
| TargetBusinessUserId | query | integer | No | ID of the targeted business user |
| TargetTaskId | query | string | No | ID of the task that was the target of the action |
| TargetTaskListId | query | string | No | ID of the tasklist that was the target of the action |
| From | query | string | No | Lower bound for ActionLogs within a date range. |
| To | query | string | No | Upper bound for ActionLogs within a date range |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Version | form | integer | No | Api version |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Data | form | List<ActionLogView> | No | |
| TotalAvailableItems | form | long | No | |
| TotalPages | form | decimal | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| Timestamp | form | DateTime | No | |
| ActionInitiator | form | string | No | |
| Action | form | Dictionary<int, string> | No | |
| ActionTargetThing | form | string | No | |
| ActionTargetUser | form | string | No | |
| OrganizationId | form | Guid? | No | |
| ActionTargetTask | form | string | No | |
| ActionTargetTaskList | form | string | No | |
| Information | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /actionlogs HTTP/1.1 Host: api.4spaces.io Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ActionLogResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Viviot.Api.ServiceModel.Api.Business">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types" xmlns="http://schemas.datacontract.org/2004/07/Viviot.Api.ServiceModel.Api.Base">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Viviot.Api.ServiceModel.Views.Business.ActionLog">
<d2p1:ActionLogView>
<d2p1:Action xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfintstring>
<d4p1:Key>0</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
</d4p1:KeyValueOfintstring>
</d2p1:Action>
<d2p1:ActionInitiator>String</d2p1:ActionInitiator>
<d2p1:ActionTargetTask>String</d2p1:ActionTargetTask>
<d2p1:ActionTargetTaskList>String</d2p1:ActionTargetTaskList>
<d2p1:ActionTargetThing>String</d2p1:ActionTargetThing>
<d2p1:ActionTargetUser>String</d2p1:ActionTargetUser>
<d2p1:Id>00000000-0000-0000-0000-000000000000</d2p1:Id>
<d2p1:Information>String</d2p1:Information>
<d2p1:OrganizationId>00000000-0000-0000-0000-000000000000</d2p1:OrganizationId>
<d2p1:Timestamp>0001-01-01T00:00:00</d2p1:Timestamp>
</d2p1:ActionLogView>
</Data>
<TotalAvailableItems>0</TotalAvailableItems>
<TotalPages>0</TotalPages>
</ActionLogResponse>