Users - lokenx/plex-requests GitHub Wiki
/users
GET: Summary
Returns an array of users.
Parameters
None
Returned JSON
{
statusCode: 200,
data: [
{
"username": "plexuser",
"email": "[email protected]",
"created": "2016-01-07T01:06:03.860Z",
"_id": "V9hCBdxw0fTECjvx"
}
]
meta: {}
}
/users/{user}
DELETE: Summary
Removes a user from Plex Requests. This requires authenticating with an admin user JWT.
Parameters
None
Returned JSON
{
"statusCode": 200,
"data": {
"message": "Removed the user plexuser"
},
"meta": {}
}
/users/{user}
PUT: Summary
Updates a single user object. All fields can be updated. This requires authenticating with an admin user JWT or the use whose object is being updated.
Parameters
user object should be provided in the body, JSON encoded.
{
"email": "[email protected]"
}
Returned JSON
{
"statusCode": 200,
"data": {
"username": "plexuser",
"email": "[email protected]",
"created": "2016-01-07T01:06:03.860Z",
"_id": "V9hCBdxw0fTECjvx"
},
"meta": {}
}