---
title: "Add methods to a plan"
method: POST
path: "/provider/plans/{planId}/methods"
tags: ["Provider"]
---

# Add methods to a plan

`POST /provider/plans/{planId}/methods`

Appends RPC method rows (1-500) to one of the authenticated provider's plans. The plan must be owned by the caller's provider (otherwise 404).

## Path parameters

- `planId` integer, required

## Request body

- ProviderPlanMethodsInput
  - `methods` ProviderPlanMethodInput[], required
    - `method` string, required
    - `vm` string, required
    - `node_target_type` string, required
    - `cost` integer, required
    - `rate_limit` integer
    - `rate_limit_interval_sec` integer
    - `chain_id` string, nullable

## Response `201`

Plan methods inserted. Returns a plain-text success message.

## Other responses

- `400` — Invalid plan id, request body, or validation failure
- `401` — Unauthorized
- `403` — Provider not resolved
- `404` — Plan not found (or not owned by the caller's provider)
- `500` — Internal server error

## Changes

- **2026-09-01** `9afeec0a1706` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/routemesh/apis/routemesh-api/changes/provider/plans/:planId/methods/post.md)

---

[API](https://skmtc.dev/routemesh/apis/routemesh-api.md) · [All operations](https://skmtc.dev/routemesh/apis/routemesh-api/llms.txt) · [OpenAPI document](https://skmtc.dev/routemesh/apis/routemesh-api/revisions/c3b583616868?raw)
