resetPassword
    • PDF

    resetPassword

    • PDF

    記事の要約

    VPC環境で利用できます。

    Data Forestアカウントのパスワードを初期化します。

    リクエスト

    リクエストパラメータ

    パラメータ名要否タイプ制約事項説明
    idYESString最大22文字まで入力アカウント識別子 UUID(base62)
    idは Accountsの getList APIを通じて取得可能
    passwordYESString8文字以上20文字以下のアルファベット大文字小文字/特殊文字/数字を各1文字以上入力して設定Data Forestアカウントパスワード

    リクエストヘッダ

    共通ガイド参照

    リクエストボディ

    • JSON

      {
        "id": "string",
        "password": "string"
      } 
      
    • XML

      <?xml version="1.0" encoding="UTF-8"?>
      <ResetAccountPasswordRequest>
        <id>string</id>
        <password>string</password>
      </ResetAccountPasswordRequest>
      

    レスポンス

    レスポンスボディ

    • JSON

      {
        "id": "string",
        "success": true
      }
      
    • XML

      <?xml version="1.0" encoding="UTF-8"?>
      <ResetAccountPasswordResponse>
        <id>string</id>
        <success>true</success>
      </ResetAccountPasswordResponse>
      

    エラーコード

    DataForest概要参照

    リクエスト例

    • HTTP
      POST https://df.apigw.ntruss.com/api/v2/accounts/resetPassword
      HOST: df.apigw.ntruss.com
      Content-Type: application/json
      x-ncp-apigw-timestamp: 1505290625682
      x-ncp-iam-access-key: D78BB444D6D3C84CA38A
      x-ncp-apigw-signature-v2: WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=
      
      {
        "id": "20nAZnjbUNFdc7RsILlC3A",
        "password": "**********"
      }
      
    • BASH
      curl -X POST "https://df.apigw.ntruss.com/api/v2/accounts/resetPassword" \
      -H "accept: application/json" \
      -H "Content-Type: application/json" \
      -H "x-ncp-apigw-timestamp:1505290625682" \
      -H "x-ncp-iam-access-key:D78BB444D6D3C84CA38A" \
      -H "x-ncp-apigw-signature-v2:WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=" \
      -d "{ \"id\": \"20nAZnjbUNFdc7RsILlC3A\", \"password\": \"**********\"}" \
      

    レスポンス例

    • HTTP

      HTTP StatusDescription
      200OK
    • BASH

      {
        "success": true,
        "id": "20nAZnjbUNFdc7RsILlC3A"
      }
      

    エラーコードの例

    • HTTP

      HTTP StatusDescription
      400invalid request parameters
    • BASH

        {
            "message": "invalid request parameter (password, 'qazQAZ1'). 
            Please enter a valid password, which must be at least 8 characters in length and contain a combination of at least three types of the following: lowercase letters, uppercase letters, special characters and numbers.",
            "success": false
        }
      

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

    What's Next
    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.