SmartGare
API referenceEndpoints

Search questioned visits

Returns the doubts raised about visits, newest first. **Required permission:** `cycle.coach-cycle:read`

GET/cycle/v1/coach-cycle-reviews

Returns the doubts raised about visits, newest first.

Required permission: cycle.coach-cycle:read

AuthorizationBearer <token>

In: header

Query Parameters

cycle_id?string

The questioned visit.

vehicle_id?string

The coach whose visits are questioned.

status?string

Whether the doubt still stands.

Value in

  • "OPEN"
  • "RESOLVED"
page?integer

Zero-based page index.

Formatint32
Range0 <= value
size?integer

Page size, at most 200.

Formatint32
Range0 <= value <= 200

Response Body

*/*

curl -X GET "https://example.com/cycle/v1/coach-cycle-reviews"
{  "data": [    {      "cycle_id": "string",      "id": "string",      "opened_at": "2019-08-24T14:15:22Z",      "opened_by": "string",      "opened_reason": "string",      "resolved_at": "2019-08-24T14:15:22Z",      "resolved_by": "string",      "resolved_reason": "string",      "source": "MANUAL",      "status": "OPEN",      "vehicle_id": "string"    }  ],  "page": 0,  "size": 0,  "total": 0}