--- title: "Authorizerの変更" slug: "apigateway-authorizer-change" updated: 2026-09-17T09:57:24Z published: 2026-09-17T09:57:24Z canonical: "api.ncloud-docs.com/apigateway-authorizer-change" --- > ## 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. # Authorizerの変更 Classic/VPC環境で利用できます。 Authorizer設定を変更します。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | PUT | /api/v1/authorizers/{authorizer-id} | ### リクエストヘッダ API Gatewayで共通して使用されるヘッダの詳細は、[API Gatewayのリクエストヘッダ](/docs/ja/ai-application-service-apigateway#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)をご参照ください。 ### リクエストパスパラメータ リクエストパスパラメータの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `authorizer-id` | String | Required | 変更対象 Authorizerの ID | ### リクエスト構文 リクエスト構文は次の通りです。 ``` { "authorizerName" : "authorizerName", "authorizerConfig" : { "functionId" : "functionId", "payload" : [ { "in" : "HEADER", "name" : "name" } ], "region" : "region" }, "authorizerType" : "CLOUD_FUNCTIONS", "authorizerDescription" : "authorizerDescription" } ``` ### リクエストボディ リクエストボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `authorizerName` | String | Required | Authorizer名 - 英数字、記号の「-」、「_」を組み合わせて1~20文字以内で入力 | | `authorizerConfig` | Object | Required | Authorizerの構成情報 | | `authorizerConfig.functionId` | String | Required | Authorizerがサポートするサービス(タイプ)の Function名 - <例> Cloud Functionsサービスの Action名 | | `authorizerConfig.payload` | Array | Required | 認証処理のために Authorizerに渡すためのリクエストタイプ(ヘッダまたはクエリ文字列)を選択し、変数名を入力: [payload](/docs/ja/apigateway-authorizer-change#payload) | | `authorizerConfig.region` | String | Required | Authorizerのサポートサービス(タイプ)である Cloud Functionのリージョンコード - `KR` \| `JPN` \| `SGN` - nullは不可 | | `authorizerType` | String | Required | Authorizerのサポートサービス(タイプ) - `CLOUD_FUNCTIONS` | | `authorizerDescription` | String | Optional | 作成する Authorizerの説明 - 0~300文字 | #### `payload` `payload`の説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `in` | String | Required | Payloadのタイプ - `HEADER` \| `QUERY STRING` - `HEADER`: ヘッダ - `QUERY STRING`: クエリ文字列 | | `name` | String | Required | Payload変数名 | ### リクエスト例 リクエストのサンプルコードは次の通りです。 ``` curl -X PUT 'https://apigateway.apigw.ntruss.com/api/v1/authorizers' \ --header 'Content-Type: application/json' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \ --data '{ "authorizerName" : "authorizer-***", "authorizerConfig" : { "functionId" : "functionId", "payload" : [ { "in" : "HEADER", "name" : "payload-***" } ], "region" : "region" }, "authorizerType" : "CLOUD_FUNCTIONS", "authorizerDescription" : "authorizer-*** Description" }' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンスステータスコード 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)をご参照ください。