Skip to content

Commit

Permalink
POST status codes
Browse files Browse the repository at this point in the history
  • Loading branch information
benbosman committed Feb 3, 2020
1 parent eeae209 commit 15ddef9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions epersongroups.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ To create a new EPerson Group, perform a post with the JSON below to the eperson
}
```

Status codes:
* 201 Created - if the operation succeed
* 401 Unauthorized - if you are not authenticated
* 403 Forbidden - if you are not logged in with sufficient permissions
* 422 Unprocessable Entity - if the dc.title was omitted or already exists

## Sub Groups in a single parent EPerson Group

### Get Sub Groups in a single parent EPerson Group
Expand Down
8 changes: 7 additions & 1 deletion epersons.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ To create a new EPerson, perform a post with the JSON below to the epersons endp
}
```

Status codes:
* 201 Created - if the operation succeed
* 401 Unauthorized - if you are not authenticated
* 403 Forbidden - if you are not logged in with sufficient permissions
* 422 Unprocessable Entity - if the email address was omitted or already exists

## Linked entities
### Groups
**GET /api/eperson/epersons/<:uuid>/groups**
Expand All @@ -181,4 +187,4 @@ It will search in:
* UUID (exact match)
* first name
* last name
* email address
* email address

0 comments on commit 15ddef9

Please sign in to comment.