Header name | Description |
---|---|
Content-Type required |
application/json |
X-API-KEY required |
YOUR_API_KEY |
// Successful request GET /api/v2/collections/OLgheC_dwJjhj5xOZxp9/history/0 200 { "history": { "results": [ { "id": 78, "user_id": 0, "event_type": "USER_LINKED", "created_at": "2023-11-27T09:42:46.370Z", "updated_at": "2023-11-27T09:42:46.370Z", "event_targets": [ { "target_type": "User", "target": { "id": 42, "first_name": null, "last_name": null } }, { "target_type": "Collection", "target": { "id": 32, "elasticsearch_id": "OLgheC_dwJjhj5xOZxp9", "title": "Sample Collection" } } ] }, { "id": 77, "user_id": 42, "event_type": "COLLECTION_CREATED", "created_at": "2023-11-27T09:42:46.341Z", "updated_at": "2023-11-27T09:42:46.341Z", "event_targets": [ { "target_type": "Collection", "target": { "id": 32, "elasticsearch_id": "OLgheC_dwJjhj5xOZxp9", "title": "Sample Collection" } } ] } ], "next_cursor": null } }
// If :collection_id is not found GET /api/v2/collections/-1/history/0 404 { "error": "collection not found" }
// Unprocessable entity GET /api/v2/collections/0fIlq_2dpPZQbk68D2Vj/history/test 422 { "error": "Invalid parameter 'cursor' value \"test\": Invalid cursor" }
Code | Description |
---|---|
401 | Unauthorized |
404 | Not found |
500 | Internal Server Error |
422 | Missing parameters |