View as Markdown
Ramp icon

Ramp ACTION

Update Limit

Update an existing Ramp spend limit — rename it and/or set its spending restriction. Run the List Limits action to find the limit ID. This is a partial update: fields you omit are left unchanged. Pass Display Name alone to simply rename a limit. To set a spending cap you must provide both an Amount (in minor units, e.g. 50000 for $500.00) and an Interval (e.g. MONTHLY); currency defaults to USD. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Ramp account once, then configure and run Update Limit 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: "ramp-update-limit",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ramp: { authProvisionId: "apn_xxxxxxx" },
    limitId: "Limit ID",
    displayName: "Display Name",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Update Limit inputs
Property Type Description
limitId Limit ID string
The ID of the spend limit to update — a UUID, e.g. dcd0f7a8-557d-4dc5-bb12-49297c3abfdd. Run the List Limits action to find this value.
Required
displayName Display Name string
New display name for the limit. Pass this alone to simply rename the limit.
Optional
amount Limit Amount integer
Maximum spend per interval, in minor units (cents) — e.g. 50000 for $500.00. Must be set together with Interval; currency defaults to USD.
Optional
currencyCode Currency Code string
ISO 4217 currency code for the limit amount, e.g. USD (the default when omitted).
Optional
interval Interval string
Spending interval for the restriction (e.g. MONTHLY). Must be set together with Limit Amount.
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
ramp-update-limit
Version
0.0.3
App
Ramp
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes