Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ This type of endpoint interacts with a group (or collection) of resources (objec
- `POST` -
Creates a new resource (object) and adds it to the group. Any required data (i.e. attributes) for the new object _must be included_ in the request body. An empty request body is not allowed, unless you are creating an empty object with no attributes.
- Related or additional information (such as required associations to other objects) may be passed as querystring parameters in the request, _if it is required to create the object._
- A successful JSON creation returns `201 Created` with a `Location` response header containing the absolute URI of the created resource.
```
# For example, creating a Collection *requires* linking it to a parent Community
# In this scenario, we must have a querystring param to specify the parent Community UUID
Expand Down
3 changes: 3 additions & 0 deletions epersons.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ To create a new EPerson, perform a post with the JSON below to the epersons endp
}
```

A successful response includes a `Location` header with the canonical URI of the created EPerson:
Comment thread
pratyushsinghal7 marked this conversation as resolved.
`${dspace.url}/api/eperson/epersons/<:uuid>`.

Status codes:
* 201 Created - if the operation succeed
* 401 Unauthorized - if you are not authenticated
Expand Down