Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version r0642

...

Use the following endpoint to generate a password reset code for the specified user (accountId). 

Info

NOTE: An email is sent to the listed email address only if an SMTP email server has been configured for the

D s platform
to use. See Enable SMTP Email Server Integration.

Endpointhttp://www.example.com:3005/v4/passwordresetrequest
AuthenticationRequired
MethodPOST
Request Body
Code Block
{
  "accountId": 6,
  "email": "joe@example.com",
  "orginURL": "http://loginpage.example.com:3005/"
}
Response Status Code201 - Created
Response Body
Code Block
{
    "code": "<AccountResetURL><AccountResetCode>",
    "email": "joe@example.com"
}

The above must be built into a URL in the following format:

Code Block
<http|https>://<host_name>:<port_number>/password-reset?email=<user_id>&code=<AccountResetCode>
URL elementExample valueDescription
<http|https>
httpHTTP protocol type
<host_name>
loginpage.example.com

Host of the

D s webapp

<port_number>
3005

Port number used to login to the

D s webapp

<user_id>
joe@example.comUser ID (email address) of the user whose password is to be reset
<AccountResetCode>
CD44232791Password reset code


Reference Docs:

API Password Reset Request Create v4

...

 

Endpointhttp://www.example.com:3005/v4/people/7/assetTransfer/4
AuthenticationRequired
MethodPATCH
Request Body

None.

Response Status Code201 - Created
Response Body
Code Block
[
    [
        1,
        [
            0,
            [
                {
                    "connectionId": 7,
                    "personId": 7,
                    "role": "owner",
                    "createdAt": "2019-02-21T19:52:22.993Z",
                    "updatedAt": "2019-02-21T19:52:22.993Z"
                }
            ]
        ]
    ]
]
Info

NOTE: Please verify that you have received a response similar to the above before you delete the user. You should also verify that the receiving user has the assets accessible in the application.

 

Delete user:

After assets have been transferred, users can be deleted by userId (4).

...