Invalid Payload When Update / Patch Bookings

I have this error :
{
“code”: “ycbm_api_http_invalid_payload”,
“errors”: [
{
“code”: “ycbm_api_http_invalid_payload”,
“field”: “actions[0].id”,
“message”: “Expected value not provided”,
“object”: “Booking”
},
{
“code”: “ycbm_api_http_invalid_payload”,
“field”: “actions[0].anchor”,
“message”: “Read only”,
“object”: “Booking”
}
],
“httpCode”: 400,
“httpStatusCode”: 400,
“message”: “Invalid payload”,
“status”: “BAD_REQUEST”,
“type”: “YcbmApiException”
}

PATCH https://api.youcanbook.me/v1/bookings/868a757b-c2d1-464d-9444-436983a8ccec

I tried executed this at postman, and this is the payload :
{
“actions”: [
{
“accountId”: “af6a6c3b-9b1a-4782-aa16-99fe2aa6f2c2”,
“anchor”: “cancelled”,
“timeZone”: “Asia/Jakarta”
}
],
“cancellationReason”: “Go to other city”,
“cancelled”: true,
“cancelledAt”: “2023-10-11T14:45:00.00Z”,
“cancelledBy”: “BOOKER”
}

I assumed this is minimum payload but maybe something still missing. Please help

@val sorry you hit an error. Actions are going to be more for notifications that are sent out and are only adjusted at the booking page level not at the bookings endpoint.

Are you looking to cancel a booking on behalf of your booker? Or have them trigger things from a different app?

You should be able to PATCH in the following to the endpoint:
{“cancelled” : true,
“cancellationReason”: “Go to other city”,
“cancelledBy” : “BOOKER”}