MENU
      Productの変更

        Productの変更


        記事の要約

        Classic/VPC環境で利用できます。

        ユーザーが指定した条件に基づいて Productの情報を変更します。

        リクエスト

        リクエスト形式を説明します。リクエスト形式は次の通りです。

        メソッドURI
        PATCH/products/{product-id}

        リクエストヘッダ

        API Gatewayで共通して使用されるヘッダの詳細は、API Gatewayのリクエストヘッダをご参照ください。

        リクエストパスパラメータ

        パラメータの説明は次の通りです。

        フィールドタイプ必須の有無説明
        product-idStringRequired変更対象の Product ID

        リクエスト構文

        リクエスト構文は次の通りです。

        {
            "subscriptionCode" : "PROTECTED",
            "description" : "description",
            "productName" : "productName"
        }
        JSON

        リクエストボディ

        リクエストボディの説明は次の通りです。

        フィールドタイプ必須の有無説明
        subscriptionCodeStringRequired変更対象のサブスクリプション方法
        • PUBLIC | PROTECTED
          • PUBLIC: APIを承認なしで誰でも使用可能
          • PROTECTED: APIを使用するには、公開者の承認が必要
        descriptionStringOptional変更後の Productの説明
        • 0~300文字
        productNameStringRequired変更後の Product名
        • 0~100文字
        • 変更しない場合、既存の Product名を入力

        リクエスト例

        リクエストのサンプルコードは次の通りです。

        curl --location --request PATCH 'https://apigateway.apigw.ntruss.com/api/v1/products/***681e***' \
        --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 '{
            "subscriptionCode" : "PUBLIC",
            "description" : "product002",
            "productName" : "product002"
        }'
        Curl

        レスポンス

        レスポンス形式を説明します。

        レスポンスステータスコード

        API Gatewayで共通して使用されるレスポンスステータスコードの詳細は、API Gatewayのレスポンスステータスコードをご参照ください。


        この記事は役に立ちましたか?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.