Unlocks the account of a database user so that they can log in again.
Request
POST https://www.activityinfo.org/resources/databases/{databaseId}/users/{userId}/unlock
Response
Status Code | Error Code | Description |
---|---|---|
200 | OK | The user's account was successfully unlocked. |
400 | DATABASE_ |
The database was deleted and no longer exists. |
400 | DATABASE_ |
A database with this id could not be found. |
400 | USER_ |
A user with this id could not be found in the database. |
401 | AUTHENTICATION_ |
The request must be authenticated |
403 | CANNOT_ |
You cannot unlock your own account. |
403 | MANAGE_ |
You do not have the permission to manage users in this database. |
403 | TRIAL_ |
Administrators of trial databases cannot unlock user accounts. |
Example
curl -X POST https://www.activityinfo.org/resources/databases/ck8oykh8m5/users/432201/unlock \
-u anything:APITOKEN