- Returns the updated VisitV1.
Updates the visit identified by the path parameter. Validation errors return 400; 404 (VisitV1 not found) when the resource is missing.
Response shapes: A normal update returns the full visit in data. Delete via procedures: [] returns { id } only (see DeletedResult).
txCase is read-only after create. It may be sent and is validated, but changes are ignored.
Completed tx case: Any field change except procedures is rejected. You cannot add or replace procedures; you may only remove procedures (including [] to delete the visit).
Purpose: Update visit sequencing, duration, or assigned procedures.
Delete via update: Send procedures: [] to delete the visit. Procedures are unassigned back to the treatment planner; sibling sequences are reordered; an empty case may be deleted.
Completed tx case: Only procedures may be sent, and only as a subset of the current IDs (or []). Changing duration, sequence, or order fields, or adding/swapping procedure IDs, is rejected.
Omitted fields: Unchanged. Create-time defaults (duration 60, visitProceduresOrderType TEETH) are not applied on PUT. Do not send those values unless you intend to change the field.
Idempotency: Not supported.
Visit length in minutes. Allowed range is 10–240. Omitted on PUT leaves the existing value unchanged.
Procedure sort order. Omitted on PUT leaves the existing value unchanged.
When true, sort procedures descending. Omitted on PUT leaves the existing value unchanged.
- Mock Serverhttps://papidocs.hs1api.com/_mock/publicapi/api-miscellaneous/v1/visits/{visitId}
- Sandboxhttps://test.hs1api.com/ascend-gateway/api/v1/visits/{visitId}
- Prodhttps://prod.hs1api.com/ascend-gateway/api/v1/visits/{visitId}
curl -i -X PUT \
'https://papidocs.hs1api.com/_mock/publicapi/api-miscellaneous/v1/visits/1?responseFields=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'Organization-ID: 1006' \
-d '{
"duration": 90,
"sequence": 0
}'Visit was updated (full resource) or deleted via procedures: [] (data is { id } only)
This Endpoint is being rate limited. More information can be found here: https://portal.hs1api.com/guide
{ "descProceduresOrder": true, "procedures": [ { … } ], "txCase": { "id": 12345, "url": "https://api.example.com/models/12345", "type": "ExampleModelType" }, "id": 12445, "type": "VisitV1" }
[ { "code": "VALIDATION_ERROR", "title": "Validation Failed", "description": "The provided data does not meet the required validation rules.", "source": "request.body" } ]
{ "data": { "id": "9000000038237", "type": "VisitV1", "lastModified": "2024-01-12T15:58:19.443Z", "sequence": 0, "duration": 60, "visitProceduresOrderType": "TEETH", "descProceduresOrder": false, "txCase": { … }, "procedures": [ … ] }, "warnings": [ { … } ] }