Deletes a user from the database. They will be notified that their access has been revoked, and they will no longer be able to access the database.
Request
DELETE https://www.activityinfo.org/resources/databases/{databaseId}/users/{userId}
Response
Status Code | Error Code | Description |
---|---|---|
200 | OK | The user was successfully deleted from the database |
400 | DATABASE_ |
The database was deleted and no longer exists. |
400 | DATABASE_ |
A database with this id could not be found. |
400 | OWNER | The owner of the database cannot be deleted from the database. |
400 | USER_ |
A user with this id could not be found in the database. |
401 | AUTHENTICATION_ |
The request must be authenticated |
403 | DELETED_ |
The user with this id has permissions superior to yours and so you may not delete the user. |
403 | MANAGE_ |
You do not have the permission to manage users in this database. |
Example
curl -X DELETE -u anything:YOUR_API_TOKEN \
https://www.activityinfo.org/resources/databases/ck8oykh8m5/users/432201