MENU
      プレイヤーコピー
        • PDF

        プレイヤーコピー

        • PDF

        記事の要約

        従来のプレイヤーを削除する方法は、以下の通りです。

        リクエスト

        POST {API_URL}/players/{player_no}/clone
        HTTP

        リクエストパラメータ

        フィールド名要否タイプ制約事項説明
        player_noYIntegerPath Parameterプレイヤー番号
        nameYStringアルファベット、数字で最小3文字、最大30文字。作成するプレイヤー名
        「プレイヤー名検証」 APIを通じて検証可能
        versionYStringdefault最新バージョンSDKバージョンリスト照会 APIにて確認できる
        auto_updateNStringdefault "N"自動アップデートの要否(Y / N )

        成功コード

        HttpStatusCodeCodeMessage
        200200ok

        エラーコード

        HttpStatusCodeCodeMessageDescription
        2004100No version information.
        2004601Query string player_no is missing.
        2004801No player information.
        2004802This player already exists.
        2004803The number of players exceeded the limit.無料の場合は1個に制限
        2004805The player name already exists.

        リクエスト例

        POST /api/v1/player
        HOST: vpe.apigw.ntruss.com
        Content-Type: application/json
        x-ncp-apigw-timestamp:1521787414578
        x-ncp-iam-access-key:6uxz1nKkcYwUjWRG5Q1V7NsW0i5jErlu2NjBXXgy
        x-ncp-apigw-signature-v2:iJFK773KH0WwQ79PasqJ+ZGixtpDQ/abS57WGQdld2M=
        x-ncp-region_code:KR
        
        Request body
        {
          "auto_update": "N",
          "name": "testVPE",
          "version": "1.0.0"
        }
        HTTP

        レスポンス例

        HTTP/1.1 200 OK
        Date: Fri, 26 Feb 2021 09:53:32 GMT
        Content-Type: application/json;charset=utf-8
        Connection: keep-alive
        Access-Control-Allow-Origin: *
        x-ncp-trace-id: 36c9k60om4p3238cpmc9gm4cj4
        
        // 成功時
        {
          "code": "200",
          "message": "ok"
        }
        
        // 失敗時
        "error": {
            "errorCode": "4802",
            "message": "This player already exists."
          }
        }
        HTTP

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

        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.