# Returns the updated VisitV1.

Updates the visit identified by the path parameter. Validation errors return 400; 404 when the resource is missing.

Delete via update: Send procedures: [] to delete the visit (and possibly an orphaned tx case). Returns { id } rather than the full resource.

Endpoint: PUT /v1/visits/{visitId}
Version: 185.0.9
Security: bearerAuth, oAuthSandbox

## Path parameters:

  - `visitId` (integer, required)
    ID of the visit to update
    Example: 1

## Header parameters:

  - `Organization-ID` (string, required)
    Organization context for the request. Must match the organization authorized by the access token.
    Example: 1006

## Query parameters:

  - `responseFields` (string)
    A URL-encoded, comma-delimited list of field names to include in the response data. Additionally, the following values are also supported:
ALL - Returns all field names.

## Request fields (application/json):

  - `duration` (integer)
    Example: 240

  - `sequence` (integer)

  - `visitProceduresOrderType` (string)
    Enum: "TEETH", "CREATED", "CODE", "SURFACES", "DESCRIPTION", "PROVIDER", "AMOUNT", "CUSTOM"

  - `descProceduresOrder` (boolean)
    Example: true

  - `procedures` (array)

  - `procedures.id` (integer, required)
    The unique identifier for the linked model.
    Example: 12345

## Response 200 fields (application/json):

  - `data` (object)
    This Endpoint is being rate limited. More information can be found here: https://portal.hs1api.com/guide
    Example: {"duration":240,"sequence":0}

  - `data.duration` (integer)
    Example: 240

  - `data.sequence` (integer)

  - `data.visitProceduresOrderType` (string, required)
    Enum: same as `visitProceduresOrderType` (8 values)

  - `data.descProceduresOrder` (boolean, required)
    Example: true

  - `data.procedures` (array, required)

  - `data.procedures.id` (integer, required)
    The unique identifier for the linked model.
    Example: 12345

  - `data.procedures.type` (string)
    The type of the linked model. This field is read-only.
    Example: "ExampleModelType"

  - `data.procedures.url` (string, required)
    The URL at which the linked model can be accessed. This field is read-only.
    Example: "https://api.example.com/models/12345"

  - `data.id` (integer)

  - `data.lastModified` (string)
    Example: "2018-07-09T19:00:00.000Z"

  - `data.txCase` (object, required)
    A reference to a linked model. Includes the id, the type, and URL at which the model can be accessed.

  - `data.txCase.id` (integer, required)
    The unique identifier for the linked model.
    Example: 12345

  - `data.txCase.type` (string)
    The type of the linked model. This field is read-only.
    Example: "ExampleModelType"

  - `data.txCase.url` (string, required)
    The URL at which the linked model can be accessed. This field is read-only.
    Example: "https://api.example.com/models/12345"

  - `warnings` (array)
    Example: [{"code":"VALIDATION_ERROR","title":"Validation Failed","description":"The provided data does not meet the required validation rules.","source":"request.body"}]

  - `warnings.code` (string)
    Example: "ERR101"

  - `warnings.title` (string)
    Example: "Example Title"

  - `warnings.description` (string)

  - `warnings.source` (string)

  - `errors` (array)
    Example: [{"code":"ERR101","title":"Example Title"}]


## Response 400 fields

## Response 401 fields

## Response 403 fields

## Response 404 fields

## Response 408 fields

## Response 429 fields

## Response 500 fields
