예약 취소
POST/schedule/open/v1/commands/cancel-reservation
기존 예약을 취소합니다.
에러 응답
취소하고자 하는 예약이 예약됨 상태가 아닐경우
{
status: 400,
message: "InvalidRequestException",
className: "InvalidRequestException",
errorProperties: [
{
key: "status",
reason: "NotAvailable"
},
],
}
Request
### Content-Type별 요청의 JSON Schema
{
"application/json": {
"schema": {
"required": [
"scheduleId",
"reason"
],
"type": "object",
"properties": {
"scheduleId": {
"type": "string",
"description": "스케줄 ID"
},
"reason": {
"enum": [
"CANCEL_RESERVATION_REASON_UNSPECIFIED",
"CANCELED",
"NO_SHOW"
],
"type": "string",
"description": "취소 사유",
"format": "enum"
}
},
"title": "protos.schedule.CancelReservationCommand"
}
}
}
Responses
- 200
OK
### Status Code별 응답의 JSON Schema
{
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {},
"title": "protos.Empty"
}
}
}
}
}