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

Parameters: resolve_booking
NameTypeDescription
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
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"}'
Python
result = client.call("resource-guru", "resolve_booking", {"booking_id":48213107,"resolution":"declined","resource_ids":[18214],"reason":"Over daily limit"})
Node.js
const result = await cotlet.call('resource-guru', 'resolve_booking', {"booking_id":48213107,"resolution":"declined","resource_ids":[18214],"reason":"Over daily limit"});
CLI
cotlet call resource-guru resolve_booking --data '{"booking_id":48213107,"resolution":"declined","resource_ids":[18214],"reason":"Over daily limit"}'

Example response

JSON

{
  "booking_id": 48213107,
  "resolution": "declined",
  "resource_ids": [
    18214
  ],
  "reason": "Over daily limit"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.