Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions docs/endpoint-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,28 @@ GET /ocs/v2.php/apps/activity/api/v2/activity
With type filter

```
GET /ocs/v2.php/apps/activity/api/v2/activity/:filter
GET /ocs/v2.php/apps/activity/api/v2/activity/{filter}
```

Supported type filters can be obtained from:

```
GET /ocs/v2.php/apps/activity/api/v2/activity/filters
```

Additionally, filtering based on `object_type` and `object_id` (see below) is only valid when supplying `filter` as the type filter. Filtering results based on `object_type` and `object_id` parameters is not supported when using any other type filter.

## Parameters

Name | Type | Description
---- | ---- | -----------
`since` | int (Optional) | The integer ID of the last activity that you’ve seen.
`limit` | int (Optional) | How many activities should be returned (Default: `50`)
`object_type` | string (Optional) | Allows to filter the activities to a given object. May only appear together with `object_id`
`object_id` | string (Optional) | Allows to filter the activities to a given object. May only appear together with `object_type`
`object_type` | string (Optional) | Allows to filter the activities to a given object. May only appear together with `object_id` and the `filter` type filter
`object_id` | string (Optional) | Allows to filter the activities to a given object. May only appear together with `object_type` and the `filter` type filter
`sort` | string - `asc` or `desc` | Should activities be given ascending or descending (from the `since`) (Default: `desc`)


## HTTP Status

Status Code | Description
Expand Down