resetPassword
- Print
- PDF
resetPassword
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Password of Data Forest account is initialized.
Requests
Request Parameters
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
id | YES | String | Enter up to 22 characters. | Account identifier UUID (base62) Id can be obtained through getList API in Accounts |
password | YES | String | Set it by entering a combination of 8 to 20 characters, including at least one English upper and lowercase letter, special character, and number. | Data Forest account Password |
Request headers
Request Bodies
JSON
{ "id": "string", "password": "string" }
XML
<?xml version="1.0" encoding="UTF-8"?> <ResetAccountPasswordRequest> <id>string</id> <password>string</password> </ResetAccountPasswordRequest>
Responses
Response bodies
JSON
{ "id": "string", "success": true }
XML
<?xml version="1.0" encoding="UTF-8"?> <ResetAccountPasswordResponse> <id>string</id> <success>true</success> </ResetAccountPasswordResponse>
Errors
Examples
Request Examples
- 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\": \"**********\"}" \
Response examples
HTTP
HTTP Status Description 200 OK BASH
{ "success": true, "id": "20nAZnjbUNFdc7RsILlC3A" }
Errors examples
HTTP
HTTP Status Description 400 invalid 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 }
Was this article helpful?