Перейти к основному содержанию
GET
/
v1
/
crm
/
metrics
/
workshops
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/metrics/workshops/
{
  "count": 123,
  "results": [
    {
      "new": 123,
      "in_progress": 123,
      "completed": 123,
      "expired": 123,
      "active": 123,
      "new_price": "<string>",
      "in_progress_price": "<string>",
      "completed_price": "<string>",
      "expired_price": "<string>",
      "active_price": "<string>",
      "worker": 123,
      "price": "<string>",
      "price_avg": "<string>",
      "service_price": "<string>",
      "resource_price": "<string>",
      "paid_price": "<string>",
      "duration": "<string>",
      "last": "2023-11-07T05:31:56Z"
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

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

client
integer
created_at__date__gte
string<date>
created_at__date__lte
string<date>
created_by
integer
inventory
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.

status
enum<integer>
  • 0 - NEW
  • 1 - IN_PROGRESS
  • 2 - COMPLETED
  • 3 - ARCHIVE
Доступные опции:
0,
1,
2,
3
type
enum<integer>
  • 0 - INTERNAL
  • 1 - EXTERNAL
Доступные опции:
0,
1
worker
integer

Ответ

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"