SmartGare
API referenceEndpoints

Correct a timeline instant

Restates one boundary of the visit's timeline — boundary 0 is the opening, boundary n is the instant of movement n — beside the instant it supersedes. **Required permission:** `cycle.coach-cycle:write`

POST/cycle/v1/coach-cycles/{id}/timeline-boundaries/{sequence}/corrections

Restates one boundary of the visit's timeline — boundary 0 is the opening, boundary n is the instant of movement n — beside the instant it supersedes.

Required permission: cycle.coach-cycle:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string
sequence*integer
Formatint32

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*CorrectTimelineInstantRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/cycle/v1/coach-cycles/string/timeline-boundaries/0/corrections" \  -H "Content-Type: application/json" \  -d '{    "corrected_at": "2019-08-24T14:15:22Z",    "reason": "string"  }'
{  "boundary_sequence": 0,  "corrected_at": "2019-08-24T14:15:22Z",  "cycle_id": "string",  "id": "string",  "previous_at": "2019-08-24T14:15:22Z",  "reason": "string",  "recorded_at": "2019-08-24T14:15:22Z",  "recorded_by": "string"}