v1
latestSwagger 2.02026-08-043765135.6 KBanswers
Create an answer
Create an answer
post/appointments/{appointmentId}/answers
Path parameters
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": {
"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"
}
}
}
}
}