Delete
And finally, the reservation can be deleted through /delete/UsrReservationMeetingRoom:
{
"filter": {
"Description": {
"eq": "DEMO reservation"
}
}
}
Note that the response now throws a double warning:
{
"warnings": [
{
"code": "PN_H00427",
"description": "If you delete Reservation meeting room, Order costs connected with field Order will be deleted as well."
},
{
"code": "PN_H00427",
"description": "If you delete Reservation meeting room, Reservation cost specifications connected with field Reservation will be deleted as well."
}
],
"confirmations": null,
"errors": null
}
If the same is done directly in the Planon application, you will receive a warning pop-up, after which you can Proceed:
These PN_H00427 warnings can be caught by adding an
Answers block:
{
"filter": {
"Description": {
"eq": "DEMO reservation"
}
},
"answers": {
"warnings": [
{
"code": "PN_H00427"
}
]
}
}
The response shows no records, as the reservation with that name is no longer there:
{
"records": []
}