プレイヤー修正
    • PDF

    プレイヤー修正

    • PDF

    記事の要約

    コンソールでのプレイヤーの修正は、develop環境と、production環境でのデプロイの2つを提供します。OPEN APIでプレイヤーを修正する際は、production環境でデプロイされます。
    プレイヤーを修正する方法は次の通りです。

    リクエスト

    PUT {API_URL}/players/{player_no}
    

    リクエストパラメータ

    フィールド名必須の有無タイプ制限事項説明
    player_noYIntegerPath Parameterプレイヤー番号
    domainsYArrayドメインリスト
    domains.typeYStringweb / ios / aos3つの中から選択
    domains.domainYStringURL / パッケージ ID

    成功コード

    HttpStatusCodeCodeMessage
    200200ok

    エラーコード

    HttpStatusCodeCodeMessageDescription
    2004707Body (JSON) pricing is missing or invalid.
    2004702Body (JSON) domains is missing.
    2004703Some domains in Body (JSON) domains are invalid. (if type is web)
    2004705Some types in Body (JSON) domains are invalid.
    2004708There are duplicate domains in Body (JSON) domains.
    2004709Up to 5 domains can be added to Body (JSON) domains.
    2004711Only 1 Body (JSON) app per OS can be added.
    2004712At least 1 Body (JSON) web domain must be added.
    2004713Body (JSON) name or web domains cannot be edited.
    2004799Enter an option value for Body (JSON).

    リクエスト例

    PUT {API_URL}/player/1
    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
    {
        "domains": [{
            "type":"web", 
            "domain":"http://domain.com"
        }, 
        {
            "type":"ios", 
            "domain":"com.test.demo"
        }, 
        {
            "type":"aos",
            "domain":"com.aos.demo"
        }]
    }
    

    レスポンス例

    HTTP/1.1 200 OK
    Server: nginx
    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"
    }
    

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

    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.