Permalink
Browse files

clarify Grant Accesses endpoint response codes

  • Loading branch information...
1 parent a3fc6a7 commit 5c147b5f3c6b8f90be1d332c9fde4935d791ed94 @qrush qrush committed Apr 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 sections/accesses.md
View
@@ -41,12 +41,12 @@ Grant access
You can get the ids of existing people on the account from the [people API](https://github.com/37signals/bcx-api/blob/master/sections/people.md).
-This will return `204 No Content` if the access was granted successfully. If the user does not have access to grant further access to the project, `403 Forbidden` will be returned.
+This will return `204 No Content` if the access was granted successfully. If the authenticated user does not have access to this project, `404 Not Found` will be returned.
Revoke access
-------------
* `DELETE /projects/1/accesses/1.json` will revoke the access of the person who's id is mentioned in the URL. (Same goes for calendars with /calendars/ instead)
-This will return `204 No Content` if the revoke was a success. If the user does not have access to revoke access from the project, `403 Forbidden` will be returned.
+This will return `204 No Content` if the revoke was a success. If the user does not have access to revoke access from the project, `403 Forbidden` will be returned. If the authenticated user does not have access to this project, `404 Not Found` will be returned.

0 comments on commit 5c147b5

Please sign in to comment.