Visit API

post /visits/{id}

Update an appointment

Base URL https://api.vseepreview.com/api_v3 · operationId updateVisit

Authentication: User Token — Requires a user access token from login or SSO.

Update an existing appointment (e.g., change time or provider)

Parameters

NameInTypeRequiredEnumDefaultDescription
X-ApiTokenheaderstringyesAPI token (e.g. your_api_token)
X-AccountCodeheaderstringyesAccount code (e.g. vclinic)
idpathstringyesVisit ID (e.g. 666)
versionqueryintegernoAPI version - use 2 for update operations (e.g. 2)
slot_startqueryintegernoUNIX timestamp of new appointment start (optional)
slot_endqueryintegernoUNIX timestamp of new appointment end (optional)
provider_idquerystringnoNew provider ID (optional). Set to 0 to remove provider. (e.g. 566)

Responses

200 — Visit updated successfully

Visit updated — Successfully updated appointment

{
  "data": {
    "member_id": 567,
    "provider_id": 566,
    "account_code": "vclinic",
    "code": "615f2e2eabc46ad94e9b6457b11",
    "start": 1631628616,
    "end": 1631628916,
    "type": 2,
    "status": 30
  }
}

401 — Unauthorized

{
  "error": "Unauthorized",
  "message": "Invalid or missing API token"
}

Machine-readable: OpenAPI JSON (operationId: updateVisit)