From 2bcd7cd25b89ce6e41af99cc163de0e24670cd97 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Fri, 16 Feb 2018 11:18:41 +0100 Subject: [PATCH] docs: status code changes for Team API --- docs/sources/http_api/team.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/sources/http_api/team.md b/docs/sources/http_api/team.md index 1aed5fec395..94ea4108481 100644 --- a/docs/sources/http_api/team.md +++ b/docs/sources/http_api/team.md @@ -67,6 +67,7 @@ Status Codes: - **200** - Ok - **401** - Unauthorized - **403** - Permission denied +- **404** - Team not found (if searching by name) ## Get Team By Id @@ -169,6 +170,14 @@ Content-Type: application/json {"message":"Team updated"} ``` +Status Codes: + +- **200** - Ok +- **401** - Unauthorized +- **403** - Permission denied +- **404** - Team not found +- **409** - Team name is taken + ## Delete Team By Id `DELETE /api/teams/:id` @@ -275,7 +284,7 @@ Status Codes: - **400** - User is already added to this team - **401** - Unauthorized - **403** - Permission denied -- **500** - Failed to add Member to Team +- **404** - Team not found ## Remove Member From Team @@ -304,3 +313,4 @@ Status Codes: - **200** - Ok - **401** - Unauthorized - **403** - Permission denied +- **404** - Team not found/Team member not found