specify user deletion

[ci skip]
pull/2325/head
Jan Sandbrink 10 years ago
parent c1c1dcab83
commit ff2921d50d
  1. 49
      doc/apiv3-documentation.apib

@ -1693,6 +1693,55 @@ but are also limited to the projects that the current user is allowed to see.
[User][] [User][]
+ Response 404 (application/hal+json)
Returned if the user does not exist.
+ Body
{
"_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:NotFound",
"message": "The specified user does not exist."
}
## Delete user [DELETE]
Permanently deletes the specified user account.
+ Parameters
+ id (required, integer, `1`) ... User id
+ Response 204
Returned if the account was deleted successfully.
+ Response 403 (application/hal+json)
Returned if the client does not have sufficient permissions or if deletion of users was disabled in the instance wide settings.
**Required permission:** Administrators only (exception: users might be able to delete their own accounts)
+ Body
{
"_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:MissingPermission",
"message": "You are not allowed to delete the account of this user."
}
+ Response 404 (application/hal+json)
Returned if the user does not exist.
+ Body
{
"_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:NotFound",
"message": "The specified user does not exist."
}
# Group Versions # Group Versions
## Linked Properties: ## Linked Properties:

Loading…
Cancel
Save