Перейти к основному содержанию
GET
/
v1
/
crm
/
logs
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/logs/
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "content_type": 123,
      "object_pk": "<string>",
      "action": 0,
      "object_id": 0,
      "actor": 123,
      "serialized_data": null,
      "changes": null,
      "timestamp": "2023-11-07T05:31:56Z"
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

Параметры запроса

action
integer
action_in
integer
actor
integer
object_id
integer
ordering
string

Which field to use when ordering the results.

page
integer

A page number within the paginated result set.

pageSize
integer

Number of results to return per page.

A search term.

timestamp
string<date-time>
timestamp_gte
string<date-time>
timestamp_lte
string<date-time>

Ответ

200 - application/json
count
integer
обязательно
Пример:

123

results
object[]
обязательно
next
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=2"