---
title: "Update Answer"
method: PATCH
path: "/appointments/{appointmentId}/answers/{id}"
tags: ["answers"]
---

# Update Answer

`PATCH /appointments/{appointmentId}/answers/{id}`

update an answer by UUID

## Path parameters

- `id` string, uuid, required
- `appointmentId` string, uuid, required

## Query parameters

- `mock` boolean

## Request body

- AppointmentAnswerPatch — Request body for an answer
  - `data` AppointmentAnswerPatchData — Object expected to update an answer
    - `type` string — Type of resource
    - `attributes` object — Attributes of an answer resource
      - `appointmentId` string, uuid — Id of the appointment an answer belongs to
      - `questionId` string, uuid — Id of the question an answer belongs to
      - `customerId` string, uuid — Id of the customer an answer belongs to
      - `questionKey` string — Query for all the answers for a question
      - `questionType` string — Type of question
      - `answer` object — Answer
      - `questionSnapshot` object — Question

## Response `201`

Return a single data response

- object
  - `data` AppointmentAnswerDataResponse, required — Expected data response object for an answer
    - `type` string — Type of resource
    - `id` string, uuid — ID of resource; additional resource attributes will also be returned
    - `attributes` object — Attributes of resource
      - `questionKey` string — Query for all the answers for a question
      - `questionType` string — Type of question
      - `answer` object — Answer
      - `questionSnapshot` object — Question
      - `createdAt` string, date-time — Answer creation Date
      - `updatedAt` string, date-time — Answer last updated Date
    - `relationships` AppointmentAnswerRelationships — Relationships of an answer
      - `question` object, required
        - `data` AppointmentAnswerQuestionsRelationship — Question associated with the answer
          - `type` string — Type of resource
          - `id` string, uuid — UUID the resource
      - `appointment` object, required
        - `data` AppointmentAnswerAppointmentsRelationship — Appointments associated with the answer
          - `type` string — Type of resource
          - `id` string, uuid — UUID of resource
      - `customer` object, required
        - `data` AppointmentAnswerCustomersRelationship — Customer associated with the answer
          - `type` string — Type of resource
          - `id` string, uuid — UUID of resource
    - `links` Link — Link object for resource meta data
      - `self` string
  - `links` Link — Link object for resource meta data
    - `self` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/brickworksoftware/apis/brickwork-software-api.md) · [All operations](https://skmtc.dev/brickworksoftware/apis/brickwork-software-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/brickworksoftware/brickwork-software-api/revisions/b06aa4f3b83c/schema)
