--- title: "Stageメソッド設定を上書きする" slug: "apigateway-stageresource-patchmethod" updated: 2026-09-17T09:57:26Z published: 2026-09-17T09:57:26Z canonical: "api.ncloud-docs.com/apigateway-stageresource-patchmethod" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # Stageメソッド設定を上書きする Classic/VPC環境で利用できます。 指定した Stageのメソッド設定を新たに指定したメソッド設定で上書きします。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | PATCH | /api/v1/products/{product-id}/apis/{api-id}/stages/{stage-id}/deployments/{deployment-no}/resources/{resource-id}/methods/{method-name} | ### リクエストヘッダ API Gatewayで共通して使用されるヘッダの詳細は、[API Gatewayのリクエストヘッダ](/docs/ja/ai-application-service-apigateway#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)をご参照ください。 ### リクエストパスパラメータ リクエストパスパラメータの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `product-id` | String | Required | Product ID - 0~10文字 - [Productリストの照会](/docs/ja/apigateway-product-getproductlist)を参照 | | `api-id` | String | Required | API ID - 0~10文字 - [APIの照会](/docs/ja/apigateway-api-apis)を参照 | | `stage-id` | String | Required | Stage ID - 0~10文字 - [Stageリストの照会](/docs/ja/apigateway-stage-getstagelist)を参照 | | `deployment-no` | Long | Required | Deployment番号 - [Stageリストの照会](/docs/ja/apigateway-stage-getstagelist)を参照 | | `resource-id` | String | Required | Stageの Resource ID - 0~10文字 - [Resourceリストの照会](/docs/ja/apigateway-resource-getresourcelist)を参照 | | `method-name` | String | Required | 設定を上書きする対象のメソッド - `ANY` \| `GET` \| `POST` \| `PUT` \| `DELETE` \| `PATCH` \| `OPTIONS` \| `HEAD` | ### リクエスト構文 リクエスト構文は次の通りです。 ``` { "cacheTtlSec" : 0, "throttleRps" : 6, "isInherit" : true, "endpointDomain" : "endpointDomain" } ``` ### リクエストボディ リクエストボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `cacheTtlSec` | Integer | Optional | APIキャッシュ TTL - 0~3600秒 | | `throttleRps` | Integer | Optional | メソッド別1秒当たりのリクエスト数の限度 - 0~2,147,483,647 | | `isInherit` | Boolean | Required | Stage基本設定を遵守するかどうか - `true` \| `false` - `true`: 遵守する - `false`: 遵守しない | | `endpointDomain` | String | Optional | エンドポイントドメイン | ### リクエスト例 リクエストのサンプルコードは次の通りです。 ``` curl --location --request PATCH 'https://apigateway.apigw.ntruss.com/api/v1/products/***3kew***/apis/***hhdy***/stages/***sd32***/deployments/250***/resources/***uku7***/methods/GET' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \ --header 'Content-Type: application/json' \ --data '{ "cacheTtlSec" : 0, "throttleRps" : 6, "isInherit" : true, "endpointDomain" : "https://test.****" }' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンス構文 レスポンス構文は次の通りです。 ``` { "stageMethod" : { "resourceId" : "resourceId", "endpointCode" : "endpointCode", "resourcePath" : "resourcePath", "methodName" : "ANY", "isInherit" : true, "methodCode" : "methodCode", "endpointDomain" : "endpointDomain", "cacheTtlSec" : 0, "restUrl" : "restUrl", "throttleRps" : 1, "endpointActionId" : "endpointActionId", "invokeUrl" : "invokeUrl", "stageDeploymentNo" : 6, "endpointConfigJson" : "endpointConfigJson" } } ``` ### レスポンスステータスコード API Gatewayで共通して使用されるレスポンスステータスコードの詳細は、[API Gatewayのレスポンスステータスコード](/docs/ja/ai-application-service-apigateway#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)をご参照ください。 ### レスポンス例 レスポンスのサンプルコードは次の通りです。 ``` { "stageMethod": { "stageDeploymentNo": 256366, "methodName": "PUT", "methodCode": "0003", "resourceId": "1lynl7fvad", "invokeUrl": "https://rl5qpeuk8w.apigw.ntruss.com/new_api/test/", "restUrl": "test - PUT /", "endpointCode": "0007", "endpointConfigJson": "{\"httpStatus\":200,\"response\":\"\",\"headers\":{}}", "isInherit": true } } ```