Resource Guru ACTION
Update Booking
Update a specific booking identified by Id. See the documentation
- Action
- Writes data
- Destructive
- OAuth
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Resource Guru account once, then configure and run Update Booking from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "resource_guru-update-booking",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
resource_guru: { authProvisionId: "apn_xxxxxxx" },
bookingId: 10,
affects: "Affects",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "resource_guru-update-booking",
"configured_props": {
"resource_guru": { "authProvisionId": "apn_xxxxxxx" },
"bookingId": 10,
"affects": "Affects"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "resource_guru",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "resource_guru-update-booking",
arguments: {
bookingId: 10,
affects: "Affects",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
bookingId Booking Id | integer | The unique identifier of the booking. Required Dynamic |
affects Affects | string | Specify how the operation affects other occurrences of a repeat booking. Required |
resourceIds Resource Ids | string[] | The unique identifier of all booked resources. Optional Dynamic |
startDate Start Date | string | First date of the booking in YYYY-MM-DD format, for example 2023-12-20 Optional |
endDate End Date | string | Last date of the booking in YYYY-MM-DD format, for example 2023-12-20 Optional |
duration Duration | integer | The length of each booking in minutes. Optional |
startTime Start Time | string | The time the booking starts. Format HH:MM Optional |
details Details | string | Extra details for the booking. Optional |
bookerId Booker Id | integer | The unique identifier of the user that this event is booked by, defaults to the authenticated User. Optional Dynamic |
billable Billable | boolean | Indicates whether this booking is billable or non-billable. If null, it defaults to the assigned project's billable setting, or false if no project is assigned. Optional |
projectId Project Id | integer | Unique identifier of the Project this Booking is for. Optional Dynamic |
clientId Client Id | integer | Unique identifier of the Client this Booking is for. Optional Dynamic |
rrule Recurrence Rule | string | A recurrence rule defines a rule or repeating pattern for recurring events in JSON string. For example, {"weekly": {"interval": 1, "weekday": 6, "ends": {"type": "count", "count": 1}}}. See API documentation for more information. Optional |
timezone Timezone | string | Specified timezone for the booking, or null/empty string for the local resource's timezones. Optional |
tentative Tentative | boolean | When true this is a tentative booking. Tentative bookings do not take up availability. Optional |
clashResolution Clash Resolution | string | How to resolve the booking clash if present. The option add_to_waiting_list moves the clashing booking to the waiting list. The option book_with_overtime adds additional overtime to the resource and increases availability to accommodate the booking. The option increase_availability only increases availability and does not add overtime to the resource. Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- resource_guru-update-booking
- Version
- 0.0.2
- App
- Resource Guru
- Authentication
- OAuth
- Read-only
- No
- Destructive
- Yes
- Open world
- Yes
- Source
- View on GitHub ↗