Approve or decline booking
Approve or decline a pending booking for the people you approve.
POST https://cotlet.dev/api/v1/resource-guru/bookings/{booking_id}/resolve
write Confirm
Needs the Approval Workflow, which is part of the Master plan, and an account that is an approver for these people. Resource Guru emails the booker after the decision. A declined booking stops taking up availability. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| booking_id integer required | integer | Booking ID from list_bookings. |
| resolution string required | string | approved or declined. |
| resource_ids integer[] required | integer[] | The booked people this decision applies to, from list_bookings. |
| reason string | string | Why you declined. Resource Guru puts it in the email to the booker. |
Request
curl -X POST https://cotlet.dev/api/v1/resource-guru/bookings/48213107/resolve \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"resolution":"declined","resource_ids":[18214],"reason":"Over daily limit"}' result = client.call("resource-guru", "resolve_booking", {"booking_id":48213107,"resolution":"declined","resource_ids":[18214],"reason":"Over daily limit"}) const result = await cotlet.call('resource-guru', 'resolve_booking', {"booking_id":48213107,"resolution":"declined","resource_ids":[18214],"reason":"Over daily limit"}); cotlet call resource-guru resolve_booking --data '{"booking_id":48213107,"resolution":"declined","resource_ids":[18214],"reason":"Over daily limit"}' Example response
{
"booking_id": 48213107,
"resolution": "declined",
"resource_ids": [
18214
],
"reason": "Over daily limit"
}