v1

latestSwagger 2.02026-08-043765135.6 KB
answers

Update Answer

update an answer by UUID

patch/appointments/{appointmentId}/answers/{id}

Path parameters

idstring uuid required

Primary UUID in the path

appointmentIdstring uuid required

Parent Appointment UUID for the resource in the path

Query parameters

mockboolean

Return mock data

Request body

Example request

{
  "data": {
    "type": "answers",
    "attributes": {
      "appointmentId": "bdb88373-bf66-4bfc-a4f8-3a35be5c2f9c",
      "questionId": "bdb88373-bf66-4bfc-a4f8-3a35be5c2f9d",
      "customerId": "bdb88373-bf66-4bfc-a4f8-3a35be5c2f9e"
    }
  }
}

Response

Return a single data response

Example response

{
  "data": {
    "attributes": {
      "createdAt": "2018-02-03T10:30:00Z",
      "updatedAt": "2018-02-03T10:30:00Z"
    },
    "relationships": {
      "question": {
        "data": {
          "type": "questions",
          "id": "bdb88373-bf66-4bfc-a4f8-3a35be5c2f9c"
        }
      },
      "appointment": {
        "data": {
          "type": "appointments",
          "id": "00000000-0000-0000-0000-000000000069"
        }
      },
      "customer": {
        "data": {
          "type": "customers",
          "id": "00000000-0000-0000-0000-000000000069"
        }
      }
    }
  }
}