Back to the list of all defined endpoints
/api/eperson/epersons
/api/eperson/epersons/<:uuid>
EPerson metadata can be modified as described in Modifying metadata via Patch.
Additional properties can be modified via Patch as described below.
The replace operation allows to replace existent information with new one. Attempt to use the replace operation to set not yet initialized information must return an error. See general errors on PATCH requests
To replace the certificate required value, curl -X PATCH http://${dspace.url}/api/eperson/epersons/<:id-eperson> -H "Content-Type: application/json" -d '[{ "op": "replace", "path": "/certificate", "value": "true|false"]'. The operation also requires an Authorization header.
For example, starting with the following eperson field data:
"requireCerticate": true,the replace operation [{ "op": "replace", "path": "/certificate", "value": "false"] will result in :
"requireCerticate": false,To replace the canLogin value, curl -X PATCH http://${dspace.url}/api/eperson/epersons/<:id-eperson> -H "Content-Type: application/json" -d '[{ "op": "replace", "path": "/canLogin", "value": "true|false"]'. The operation also requires an Authorization header.
For example, starting with the following eperson field data:
"canLogIn": true,the replace operation [{ "op": "replace", "path": "/canLogin", "value": "false" will result in :
"canLogIn": false,To replace the netid value, curl -X PATCH http://${dspace.url}/api/eperson/epersons/<:id-eperson> -H "Content-Type: application/json" -d '[{ "op": "replace", "path": "/netid", "value": "newNetId"]'. The operation also requires an Authorization header.
For example, starting with the following eperson field data:
"netid": "oldNetId",the replace operation [{ "op": "replace", "path": "/netid", "value": "newNetId"] will result in :
"netid": "newNetId",To replace the email value, curl -X PATCH http://${dspace.url}/api/eperson/epersons/<:id-eperson> -H "Content-Type: application/json" -d '[{ "op": "replace", "path": "/email", "value": "new@email"]'. The operation also requires an Authorization header.
For example, starting with the following eperson field data:
"email": "old@email",the replace operation [{ "op": "replace", "path": "/email", "value": "new@email"] will result in :
"email": "new@email",To replace the password value, curl -X PATCH http://${dspace.url}/api/eperson/epersons/<:id-eperson> -H "Content-Type: application/json" -d '[{ "op": "replace", "path": "/password", "value": "newpassword"]'. The operation also requires an Authorization header.
For example, starting with the following eperson field data:
"password": "oldpassword",the replace operation [{ "op": "replace", "path": "/password", "value": "newpassword"] will result in :
"password": "newpassword",NOTE: The new password is currently returned after an update but this could be revisited later, see #30